• boonhet@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days ago

    Also you can tell that a human didn’t put a lot of thought into some code (no comments, sloppy variable names)

    Why is your code so messy that it needs comments everywhere? Comments should pretty much be reserved for special cases anyway

    • SpaceCowboy@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 hours ago

      Would that be cases be where you’re doing something that might appear a little odd, but there is a reason for it to be that way? So if you see something that looks a little odd and there’s a comment explaining it, wouldn’t you be more likely assume that there’s a reason for that code to be that way and it’s probably intentional and not a bug?

      And “self documenting code” is just something we say because we don’t want to be bothered with writing comments, if we’re being honest.