Re:Overtaxed Working Memory Knocks the Brain Out of Sync: Study
by taneq on Monday June 11, 2018 @08:55PM
(#17289921)
I think the "functions should be small and do only one thing" maxim is important but needs to be paired with "things should be small and done in only one function." The more you split logic across multiple functions, the more likely that the bug won't be in any one function but in the way that you composed them.
[ Parent
| on HN ]
Re:Overtaxed Working Memory Knocks the Brain Out of Sync: Study
by rashkov on Wednesday June 13, 2018 @11:29AM
(#17304015)
This is one of the most astute criticisms that I've seen of coding style, along with your earlier post regarding locality of reference and duplication of statements vs duplication of intent. I think these are really great principles for writing clear and beautiful code. Are these ideas something that you've developed from experience? Is there a wider context and conversation around this kind of thing, that you know of?