zacharyc
This is the website of zachary cohen (zacharyc). For information on the author check out the About page.
This is the website of zachary cohen (zacharyc). For information on the author check out the About page.
The Standard Template Library in C++ is nice to provide us with a bunch of different container classes so we don’t have to re-invent the wheel every time we write new code. One of the classes is called “Vector”, if you aren’t familiar with it, you might not get too much out of this post. But basically, it is a dynamically growing array. Meaning it has contiguous memory and can be indexed like a regular array. It’s a great class and I use it all over the place, but for the second time in one week I find it lacking. ...
On December 31st, all 30GB Zune users woke up to their music players not working. In a rarity for Microsoft problems, the source for for the problem was found. There is a good explanation of the problem here. There are two lessons to be learned from this: 1) be careful of your looping conditions. 2) Try and write your code in small snippets that are testable, and write tests! A simple iteration through the total amount of days including a leap year would have caught this bug. ...
One of the best web apps I’ve ever used: Pastie is doing a casual donation. I’m going into the new year and am trying to really conserve my spending, but if you can afford to toss a few bucks this way, it’s a great cause