588
you are viewing a single comment's thread
view the rest of the comments
[-] Prunebutt@slrpnk.net 29 points 2 months ago

I don't really get the hate he gets in the other comments. Are you all joking, or can someone elaborate? I always liked what I've read/heard of Bob.

[-] magic_lobster_party@kbin.run 68 points 2 months ago

I genuinely think his book is rubbish. I agree with some of his points. Most of the good points are common sense. For the most part I heavily disagree with the book.

Throughout the book he has examples of programs where he shows before and after he applies “clean code”, and in almost all examples it was better how it was before.

I can write a lot about why I don’t like his book. He doesn’t make many compelling arguments. It’s mostly based on what he feels is good. He often contradicts himself as well. If I remember correctly, he has a section about how side effects are bad. I agree with him on this part. Shortly after, he proudly shows an example of “clean” program - and it’s littered with awful side effects!

He also has this weird obsession of hiding the logic of the program. As a programmer, I want all relevant logic of a method to be neatly collected in one place - not scattered around deeply nested method calls.

I can go on and on. I hate this book with a passion.

[-] traches@sh.itjust.works 28 points 2 months ago* (last edited 2 months ago)

I think it’s telling that none of his talks even make it all the way through his SOLID acronym, he sorta just trails off when he’s out of time.

His ideas were real big in the ruby community back when I was learning it, and if I ever go back that code is such a pain to work with. Almost impossible to follow the logic, inheritance everywhere, and I even thought metaprogramming was a good idea. Tests are the only reason that code has any reliability at all.

Now most of my code is procedural or functional, favors composition over inheritance, and is colocated as much as possible.

[-] JackbyDev@programming.dev 8 points 2 months ago

Fucking Ruby... Nothing is more confusing to me than seeing an error about a method not existing but the problem being that something was null/missing.

[-] traches@sh.itjust.works 2 points 2 months ago

That exact error is why I only want to work in typed languages now

[-] JackbyDev@programming.dev 5 points 2 months ago

It's amusing to me that people will say "my code documents itself" while also using dynamic languages. It should be called GDD. Guess driven development.

[-] traches@sh.itjust.works 6 points 2 months ago

I love how parentheses on function calls in ruby are optional. Is it a variable? Is it a function? Where does it come from? Who the hell knows! Try to run it and find out, loser

load more comments (29 replies)
load more comments (39 replies)
this post was submitted on 10 Aug 2024
588 points (97.3% liked)

Programmer Humor

19414 readers
2 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS