DEV Community

Discussion on: Don’t comment your code

Collapse
 
nadaelokaily profile image
Nada Elokaily

I agree with you, I think it is a general rule of thumb that you shouldn't just take for granted what ever you read in a book no matter how good the book is.
These were the points that I agreed with Robert in this chapter, but no one should blindly follow them all the way.
Take whatever suits your project and makes it easier for your team

Collapse
 
codemouse92 profile image
Jason C. McDonald

The trouble is, you have to know what you're about before you can really "take what suits your project". There are too many young developers who read "Clean Code" on recommendation, see people quoting it like scripture, and then adopt it wholesale as the One True Way...only to walk headlong into the traps of bad practice that are intermingled with the good ideas.

One should always apply common sense, yes, but if a book is such a mixed bag that you have to heavily sift advice as a beginner to avoid taking up antipatterns...find another book. There ARE books that are generally reliable enough, and whose missteps are insignificant enough that you can rectify them with further learning without any major problems. "Clean Code" is not one of those books.

Thread Thread
 
ajxn profile image
Anders Jackson

So, you forgot one thing.

Recommend one or two you consider is Good.

But yes, I do agree with you.

Thread Thread
 
codemouse92 profile image
Jason C. McDonald

Trouble is, I don't have any on hand. I've picked it up from so many places over the years. If I find some specific examples, I'll share.