3 ms·
While I certainly agree with most of these, I feel that the Daphne & Celeste fallacy needs a bit of elaboration. Code readability is somewhat correlated to its
by kjax 11y ago
While I certainly agree with most of these, I feel that the Daphne & Celeste fallacy needs a bit of elaboration.
Code readability is somewhat correlated to its maintainability, all else being equal. If you're writing messy code that could be greatly clarified by extracting a variable or adding an extra line, experience has taught me that one should typically do so.
Of course there are always performance, style, and other concerns, but abstractions are a key component of software development, as they allow us to do things like extract or isolate necessarily "messy" bits of code. I like the WAI-ARIA example, as it clearly fits with the fallacy, but just using that css snippet as a supporting example reads a bit like a bifurcation fallacy. Ugly code is not necessarily poor code, but it can sometimes indicate a missed opportunity for abstraction or refactoring.