this post was submitted on 09 Aug 2024
610 points (97.8% liked)

Programmer Humor

32580 readers
283 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

Those who know, know.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 17 points 3 months ago (1 children)

Working in Ruby did 10x more to help me write clean code than reading Clean Code ever did.

Many of the lessons drilled into me with Ruby (keep a consistent style, tests are cheap, keep your methods relatively small where possible, reduce nesting where possible) carry over nicely into other languages without needing to go through any OO bullshit.

IMO, the best lesson around Clean Code is this: you're not clever, write obvious code that works with as few tricks as possible.

[โ€“] [email protected] 5 points 3 months ago

I find this to be true for every new language I try out. Since every language has a different way of doing things and gives me a new perspective, in the long run they all end up improving my programming style as a whole. I always end up integrating the best parts of each into my next project when possible.

Experience will always be more valuable than any set of rules these kind of books tout as "the way things are meant to be done".