you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 9 months ago (1 child)

See also the closely related concept of code smells. These are things that aren't necessarily wrong like anti-patterns are because in certain niche cases or in limited amounts they're fine, but they're often an indicator that you're doing something wrong in your code. As a quick example I looked up some code smells in JS and a couple of the examples were using == instead of === and having deeply nested/indented code (E.G. have if blocks inside of if blocks inside of if blocks inside of a for loop).

  • source
  • parent
  • hideshow 1 child comment
  • load more comments (1 reply)