Loading video...

Video Failed to Load

Go Home

Morning, bathrobe rant: comments

67,194 views • 1 year ago •via X (Twitter)

11 Comments

Eric S. Raymond's profile picture
Eric S. Raymond1 year ago

That line about "every comment you write represents a failure" reminds me of one of my design principles. if anybody needs to write documentation for your user interface, you are a shitty interface designer and should be ashamed. Good UI explains itself - it makes easy things easy and supports progressive discovery of the complex things through the interface itself.

MBS's profile picture
MBS1 year ago

MBS - Tom’s Computer [OUT NOW!] Listen now: #music #edm #MBS #crypto #vibes

Jose Canciani's profile picture
Jose Canciani1 year ago

Explain in comments that that is not obvious in the code. There are a lot of valid reasons to be verbose in comments. Here are some I can think of: - Explaining Design Decisions ("This loop is necessary because the callback has an internal optimization that performs better with sorted data, even though the final result does not need to be sorted"). - Explain Assumptions or Constraints ("This regex has been created for Mysql identifiers and won't work for other db engines"). - Show pitfalls or side-effects ("Modifying this constant will invalidate existing cached items, producing longer startups when coming out of maintenance"). - Explain Business Rules, not obvious to a developer ("We store amounts with 4 decimals -2 more than shown to the user- to be able to follow what local legislation defines as valid round operations"). - TODOs (we know we will change something, so we left some breadcrumbs for other developers to understand and to guide them in the right direction).

rolandsaven's profile picture
rolandsaven1 year ago

honestly, I think devs learn more from these rants than books

Philipp Blum's profile picture
Philipp Blum1 year ago

//Workaround: Talk to Harald. He knows the details. Harald doesn't work here any more. ᵀʰᵒˢᵉ ʷʰᵒ ᵏⁿᵒʷ

Ali Khaleqi Yekta's profile picture
Ali Khaleqi Yekta1 year ago

Comment is for the WHY. Code is the WHAT. If by looking at the what, you can't immediately guess the why, then you need a comment.

Philipp Blum's profile picture
Philipp Blum1 year ago

//Fixme: 1999-10-02 Very important part that needs to be fixed. ᵀʰᵒˢᵉ ʷʰᵒ ᵏⁿᵒʷ

🐝🇬🇷's profile picture
🐝🇬🇷1 year ago

You should do bathrobe reviews

Citizen of Mars's profile picture
Citizen of Mars1 year ago

I am looking forward hearing a graphql rant! :)

rolandsaven's profile picture
rolandsaven1 year ago

u get this in a PR, what do you do?

Uncle Bob Martin's profile picture
Uncle Bob Martin1 year ago

delete the class and rename CountryProps to Country.

Related Videos