The problem with the term "clean code" is it's used as both a generic term for code aesthetics and organization and as specific jargon for Robert Martin's highly idiosyncratic philosophy on code aesthetics, which he also calls "Clean Code".
-
Näytä tämä ketju
-
I don't know which use came first, but I suspect Martin was first with his book "Clean Code", and then the term became generic, much in the same way that band-aid is a brand name that's become a generic term. The problem is that bandaid ≈ bandaid, but Clean Code ≠ clean code
6 vastausta 2 uudelleentwiittausta 21 tykkäystäNäytä tämä ketju -
This allows Clean Coders to straw man people who dislike the extreme aesthetics of Clean Code. If you dislike `isLeastRelevantMultipleOfNextLargerPrimeFactor`, then you're OBVIOUSLY against any kind of code aesthetics, might as well name everything "x3 = f1(f2(x1), x2)"
6 vastausta 8 uudelleentwiittausta 32 tykkäystäNäytä tämä ketju -
(Yes, that method name is a real Clean Code method. See here: https://qntm.org/clean ) This also reduces further exploration of potential code aesthetics, as any discussion of clean code inevitably gets pulled towards Clean Code, like an epistemic black hole
1 vastaus 6 uudelleentwiittausta 31 tykkäystäNäytä tämä ketju -
Like, I can argue that OverlyVerboseNames hamper the skill ceiling because they're too verbose to internalize and take up too much horizontal space. Code is cleaner when identifiers are shorter. But this conflicts with central tenets of Clean Code, so people say its not clean
6 vastausta 4 uudelleentwiittausta 28 tykkäystäNäytä tämä ketju -
Vastauksena käyttäjälle @hillelogram
Are you familiar with the concept "Spartan programming"?https://blog.codinghorror.com/spartan-programming/ …
1 vastaus 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjälle @einarwh
I'm not! Unfortunately
@BretDevereaux has permanently ruined any positive connotations of "Spartan" for me, now I exclusively think of them as an overrated child murder culthttps://acoup.blog/category/collections/this-isnt-sparta/ …2 vastausta 0 uudelleentwiittausta 5 tykkäystä
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.