3 ms·
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 f
by npteljes 3y ago
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.
- Gibbon1 3y agoEven 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.
- andrewprock 3y agoThis sounds like a nightmare. One that I've lived through.