3 ms·
"... 30 LOC ..." followed by three or four more in the same logical chunk seems like the smell you should be worried about if fitting everything on one screen i
by al2o3cr 11y ago
"... 30 LOC ..." followed by three or four more in the same logical chunk seems like the smell you should be worried about if fitting everything on one screen is the concern.
- nine_k 11y agoIt's not about fitting things onto screen; it's about fitting things in brain. If ~25 years of doing programming for money taught me something, it's that the code is written to be read and maintained by humans, and having really short, clean, one-purpose, composable functions makes your life easier both long-term and short-term.
- Moru 11y agoAmen to that, friend :-) First thing on programming class in the eighties-nineties: "Fit all functions on one screen." At that time that was roughly 22 lines depending on editor used.