61
Code Smells Catalog (luzkan.github.io)
(page 2) 7 comments
sorted by: hot top controversial new old
[-] DrDeadCrash@programming.dev 10 points 1 week ago

I feel like if one tried to follow all of these "rules" at all times nothing would get done, at all.

[-] BradleyUffner@lemmy.world 11 points 1 week ago

A code smell isn't supposed to be automatically bad. A smell is an indication that something might be wrong. Sometimes using a smelly pattern is legitimately the only way to do something.

load more comments (1 replies)
[-] morrowind@lemmy.ml 5 points 1 week ago

half of these will make your code better lmao

[-] SwordInStone@lemmy.world 10 points 1 week ago
[-] shnizmuffin@lemmy.inbutts.lol 5 points 1 week ago

My code is exclusively Complicated Regular Expressions and it's screaming fast.

[-] morrowind@lemmy.ml 4 points 1 week ago

I'm not going through every one, but null checks, vertical separation, status variables and binary operator in name, are all things that often make your code better and more readable

load more comments (2 replies)
load more comments
view more: ‹ prev next ›
this post was submitted on 05 Jan 2025
61 points (90.7% liked)

Programming

17788 readers
173 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS