14 votes

A Curated List of Falsehoods Programmers Believe In

2 comments

  1. [2]
    masochist
    Link
    If you read nothing else, read the falsehoods about time. So many people get it wrong in so many ways. Writing a leap year calculator (given a year x, is x a leap year?) is just about as good as...

    If you read nothing else, read the falsehoods about time. So many people get it wrong in so many ways. Writing a leap year calculator (given a year x, is x a leap year?) is just about as good as fizzbuzz for tripping up programmers who think they know better.

    2 votes
    1. [2]
      Comment deleted by author
      Link Parent
      1. masochist
        Link Parent
        You're ahead of most folks if you already knew a lot of that stuff. :) There absolutely are esoteric examples there, and I'll freely admit that wasn't why I suggested folks read that section. It...

        You're ahead of most folks if you already knew a lot of that stuff. :) There absolutely are esoteric examples there, and I'll freely admit that wasn't why I suggested folks read that section. It was more that there are a lot of common misconceptions (like the leap year example I gave) that are easy to avoid, for the most part, if you use existing, tested code.