2 ms·
“With fewer lines of code” is not the same thing as “simpler” - particularly, if it’s an abstraction that requires the user to understand the underlying mechani
by btown 4y ago
“With fewer lines of code” is not the same thing as “simpler” - particularly, if it’s an abstraction that requires the user to understand the underlying mechanics, the more verbose code may be significantly more self-evident.
If you’re writing even an internal API and this thought pops into your mind, put yourself in the shoes of a junior colleague and ask yourself - or ask one directly! - if a little bit of boilerplate is actually a good thing.
And, to the OP’s point, if you do decide to make these abstractions, using terms like “brevity” rather than “simplicity” can be a big part of gaining adoption.