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.
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.
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
, isx
a leap year?) is just about as good as fizzbuzz for tripping up programmers who think they know better.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.