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?

Latest comments (29)

Collapse
 
gjorgivarelov profile image
gjorgivarelov

"X is flexible, easy to install and use, and powerful". Which means it's neither.

Collapse
 
steveparrish profile image
SteveParrish

I would say that Don't do that what everyone else is doing.black magic to separate lovers

Collapse
 
markadel profile image
Mark Adel

Stop using if/else if

Collapse
 
eugenecp profile image
Eugene Paden

build it from scratch

Collapse
 
mxdpeep profile image
Filip Oščádal

and ofcourse > "If it works, don't fix it!"
(sometimes may be true, but the consequences may be also quite hard later)

Collapse
 
mxdpeep profile image
Filip Oščádal

1) don't learn PHP
2) don't do drugs :)
3) don't read manuals

Collapse
 
rosamund profile image
Rosamund

What’s wrong with good code is self-documenting?

Collapse
 
pauldubois777 profile image
Paul DuBois • Edited

Advice to ignore:

Don't ever ignore any advice, as you can always learn something from any advice you get, and also show respect to those who offer it, but consider the source.

Wrap your head around that one!

;)

Collapse
 
techman09 profile image
TechMan09

Wrap your head around that one!, I cannot!

Collapse
 
tamusjroyce profile image
tamusjroyce

Sorry for the two-parter:

do you know functional programming? Like closures and currying?

Note: all code that is reachable is functional. I mean, pure lambda functions or any set-based/tuple-calculus-based patterns are great. But they aren’t anymore “functional” than anything else.

Closures & currying is deprecated in favor of es6 classes. And they really amount to a complex way to do inheritance on the fly. 🤢🤮

Collapse
 
tamusjroyce profile image
tamusjroyce

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

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
 
jasoncubic profile image
JasonCubic

If it works then don't touch it.

Collapse
 
diethrone profile image
Sagar Barapatre

That's scary! 😨

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
 
puddingontheritz profile image
Pudding

Most