3 ms·
I generally liked APoSD. I liked its notion of symptoms of complex code. I liked its framing of complexity as related to dependencies involved in calling some
by rgoulter 4y ago
I generally liked APoSD.
I liked its notion of symptoms of complex code.
I liked its framing of complexity as related to dependencies involved in calling some function. -- If a function has more parameters than it really needs (too many dependencies), or a function has fewer parameters than it actually needs, then it's more complicated to work with than it needs to be (its actual dependencies are obscure). -- I liked its emphasis on "interface" is "what you need to know to use the code", as opposed to implementation details.
I liked the suggestion of "writing documentation before the implementation" as a way of coming up with a clean interface; although I found it bizarre that this logic didn't carry across to "write some tests before the implementation".