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

Going further, I'll take a 1000-line shitty code, over split-to-small-functions shitty code. In the long code, all I have to think about is the code. With the functions, I have to pay attention to what calls what, also also because the code is shitty, surely the function names also are, adding two things at the same time to the confusion mix.


Even better instead of a interrupt driven state machine implemented as a switch statement that linearly progresses. Do it using 20-25 small chained callbacks spread over a couple of files.

Bonus: Uncle Bob teaches us not to use comments.


This sounds like a nightmare. One that I've lived through.




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

Search: