DEV Community

Discussion on: What is bad code?

Collapse
 
stereobooster profile image
stereobooster

is its all relative

👍

But this means that you can't just throw around this phrase without specifying what exactly you want to say. There is no single definition of bad code everybody agrees on...

all code is bad

The best code is no code.

Collapse
 
anwar_nairi profile image
Anwar

About your last link, this issue made me lmfao: github.com/kelseyhightower/nocode/.... Plenty more like this one in the issues!

Collapse
 
bootcode profile image
Robin Palotai

I agree that it's mostly relative and purpose-determined, though everyone develops some personal aesthetic sense over time.

Gerald Weinberg writes in his timeless piece The Psychology of Computer Programming that an objective question to ask is if the code lives up to the requirements.