92

Code doesn't lie, comments do.

Comments
  • 2
    What about code that prints comments? Paradox?
  • 1
    @boylett
    Was the code commented??
  • 1
    @mmakali
    <!-- <script>document.write('<!-- Everything you know is wrong! -->')</script> -->
  • 1
    @boylett
    See, code doesn't lie, comments do...
  • 1
    Code make mistakes, comments don't
  • 0
    @Alice
    😂😂😂. But why
  • 1
    @maurocoredump Try to learn something by this rant.
  • 2
    Shittily written code decieves you, and their comments decieve you further -_-
  • 4
    Comments, variable names & methods lie. Coworkers and stakeholders lie, requirements and bug reports lie, documentation and APIs lie, advertisements do nothing but lie, probes and sensors lie, blogs and news sites lie, social networks are filled with lies, sometimes even our own senses tell us lies.

    We tell little lies to employers, to loved ones, even to ourselves.

    Code lies all the time, because humans don't perceive single truths in anything, and code is a reflection of human nature.

    We write methods within classes where they don't belong, we expose fields which should be protected, we edit state when we shouldn't. We over-engineer, we under-engineer, we abuse hacks because we're lazy or get lost in complexity because we're nitpicks.

    Embrace the lies in your code. Just aim for consistent lies.
  • 0
    @bittersweet Your argument can be summed up as:

    //err as a function to check for errors
    err => {
    if (err){
    res.send (err)
    }
    res.json({message: "Successful"});
    }
  • 0
    @mmakali of course the code is works but the comment is a lie...
  • 0
    @LastDigitOfPi iAmAnInt in js is always a lie.
  • 0
    Mines don't... Otherwise I would be lying to myself...
  • 1
    Everything is a lie.
  • 2
    Poorly written code doesn't clearly communicate it's intent; Comments clearly indicate intent/context/that which code doesn't explain.

    Code lacking comments is poor code. Don't be that guy who doesn't document their work.
  • 1
    Code can lie, too.

    As working for this company had made me acutely aware. 😞😧 ugh.
  • 1
    Me at 3 AM: "I'll put in some comments here so I know what this does."

    Me at 9 AM: "The fuck does that even mean?"
Add Comment