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

And here's John Carmack on the subject of 1000s of lines of code in a single function: http://number-none.com/blow/blog/programming/2014/09/26/carm...


Wow, that brings back memories! I remember reading this years ago, and it made me change my programming style a bit. The copy-paste errors he mentioned especially opened my eyes, I realised I was doing that too. For writing repetitive "0,1,2,3" or "x,y,z" code I switched to using Wolfram Mathematica's symbolic expansion and simplification followed by a C code generation step.




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

Search: