News for hackers. Stuff that matters.
Re:Ask HN: What do you consider as “bad” code? by glassprongs on Tuesday January 25, 2022 @07:29AM (#30071039)
These are some properties I see bad code having

  * insecure
  * doesn't work
  * lack of checks and validation leading to unhandled states
  * inconsistent style and method
  * difficult to understand for wrong reasons
  * spaghetti with too much coupling
  * poorly optimized and inefficient
Re:Ask HN: What do you consider as “bad” code? by JZN666 on Tuesday January 25, 2022 @07:40AM (#30071119)
These properties can be inherited from model/organization itself except "difficult to understand for wrong reasons" and "doesn't work" perhaps. So that's why I point to "respecting to model", a more generic take imho.