Remix.run Logo
Codin' Dirty(htmx.org)
26 points by todsacerdoti 16 hours ago | 3 comments
tacitusarc 14 hours ago | parent | next [-]

What I love about this is how it demonstrates the impact the Clean Code advocates/movement have had on software. The post author refers to 200 line functions are feeling questionable. When Clean Code was first introduced, seeing functions that were thousands of lines was a regular occurrence, and there was no norm established that perhaps we should strive for more brevity.

Similarly, unit test have become accepted practice, and improved overall project quality, even if TDD is uncommon.

Clean Code is, IMO, too extreme in many respects, but it shifted the conversation and conventions in a much-needed direction.

The final point he makes is a major missing piece; using polymorphism and type systems well is difficult and requires up-front thought and design work that many programmers are both unaccustomed to, and uninterested in. So conditionals remain the norm. That is unfortunate, but also predictable.

senkora 16 hours ago | parent | prev | next [-]

Good post. Saved to cite the next time that someone in code review asks me to breakup a large function that is a series of linear steps that won’t be reused.

syndicatedjelly 14 hours ago | parent | prev [-]

Let’s call it “Gross Coding”