DEV Community

Omer Rosenbaum
Omer Rosenbaum

Posted on

What's one piece of advice every dev should ignore? 🚩🚩🚩

We'll go first >

"Good code is self-documenting"

What would you add?

Oldest comments (29)

Collapse
 
diethrone profile image
Sagar Barapatre

I according to me this is the advice I often hear that I definitely ignore:

If your change is small enough there's no need to test.

Collapse
 
ben profile image
Ben Halpern

"Smallness" is definitely not the proper litmus test.

And if you don't want that small change to break later, a regression test couldn't possibly hurt, right?

Collapse
 
diethrone profile image
Sagar Barapatre

Yeah, absolutely!!

Collapse
 
unofficialdxnny profile image
Danial Ahmed

Yes same lol! for example if I'm making scripts in python and I change to add a print statement with colour I always run the program to make sure it works as I want it to.

Collapse
 
curiousdev profile image
CuriousDev

The "good code" can definitely be self-documenting to some extent. There can be exceptions of course.

Collapse
 
jamesthomson profile image
James Thomson

Seriously. I find most projects built with TS are pretty much self documenting. There are obviously more factors, but a well typed project will get you 90% of the way.

Collapse
 
ben profile image
Ben Halpern

Any super duper opinionated advice on which software to choose for a problem.

A good suggestion is always useful β€” but when it's approached with an outside amount of conviction, one should take that with a grain of salt. The advice often lacks context.

Collapse
 
ben profile image
Ben Halpern

Dogma which is complemented by dogmatic backlashes to the original dogma: A software story.

Collapse
 
sherrydays profile image
Sherry Day

"X is dead. You should probably find a hot new thing to learn."

Collapse
 
dinerdas profile image
Diner Das

Any advice about documentation that does not include ongoing structure and discipline.

Maintaining good docs is inherently pretty difficult, and there is no magical solution. Good documentation is a matter of a number of combinatory factors that can lead to success, there is no silver bullet.

 
ben profile image
Ben Halpern

frustrating

Collapse
 
techman09 profile image
TechMan09

Why don’t you code code it yourself instead of complaining about that library or whatever-the-heck you called it?

Uh, because complaining is fun, and it will take me an extra 100 years to code it myself…

Collapse
 
christiankozalla profile image
Christian Kozalla

Advice to ignore: "You should not use Dev.to like you use Twitter" ^^

Collapse
 
puddingontheritz profile image
Pudding

Most

Collapse
 
alaindet profile image
Alain D'Ettorre

"Learn X, it's faster and better than Y"

The missing part is that X is something of a hyped POC, with virtually no real project using it, with less DX than Y, while Y is battle-tested and there's no real reason to change it expect for hype and some weird scenarios.

Collapse
 
diethrone profile image
Sagar Barapatre

That's scary! 😨

Collapse
 
jasoncubic profile image
JasonCubic

If it works then don't touch it.

Collapse
 
leob profile image
leob

No - "Good code is self-documenting" is a basic truth, up to a point ... it's a useful guideline, if not taken too far (sometimes you do need to write comments).

Collapse
 
tamusjroyce profile image
tamusjroyce

Inheritance is for prototypes & interfaces. Encapsulation / pass through constructor or function, is great at decoupling code