Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Nothing says "easily maintainable" like a 298,000 line go file. Gitlab is struggling to render it for me.


This is of course generated code (output from the C to Go converter), so to "easily maintain" it, you'd edit the Tcl C source files and re-generate these. The generated Go code is committed to the repo so the person using the library doesn't need the C-to-Go converter tools.


Can't lose context if you never leave the file.


Can't have context if the file never loads.


Sounds like you need a better editor :)

But seriously, I would expect most editors to handle large files relatively gracefully, even if they aren’t as fast as vim for example. Browser based code viewers on the other hand, I grant you, aren’t generally up to the task.


That is just a compilation artifact, though. He only commits it for online importing.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: