Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"Bad code" is a completely subjective measure which everyone is sure they will know when they see it, but few agree on the actual definition.

Extreme examples will be floated, but in practice what people consider "bad code" are things that made decisions that aren't sustainable. For instance a complete lack of permissions. A lack of logging. A lack of multithreading if it's a CPU bound process. Locks. Dependencies. Etc.

Each person and team really does define bad code differently, and often in complete contrast with each other. There are people who considered DI heavy code bad code. Heavily abstracted and layered Java code is considered great code by some, horrendous code by others. And on and on.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: