3 ms·
"Clever" developer limitation like this almost invariably cause developers to come up with even more convoluted solutions to problems than needed. Don't disagre
by dktoao 4y ago
"Clever" developer limitation like this almost invariably cause developers to come up with even more convoluted solutions to problems than needed. Don't disagree that long functions can be an indication that someone was copy pasting a bunch of stuff around in the codebase, but not always!
- avgcorrection 4y ago70 lines is generous compared to Clean Code dogma/opinion.
- _vvhw 4y agoJoran from the TigerBeetle team here. The limit of 70 lines is actually a slight increase beyond the 60 line limit imposed by NASA's Power of Ten Rules for Safety Critical Software. In my experience, in every instance where we've refactored an overlong function, the result has almost always been safer.