Nuances in C: Array of Function pointers

I was in a job interview the other day and someone asked me the following question, which I got wrong. Its not hard to remember, but I figure if I pass it on, and anyone out there who reads this blog for technical content might get a little refresher.The question was something like: write the declaration for an array of function pointers that take an integer and return a double in C. ...

December 13, 2007 · zacharyzacharyccom

Comments on Hash Tables

In a recent article at Coding Horror, the author discusses Hash Tables. This is a very strong post on hash tables and their hashing function. It is definitely worth the read, but there is one thing I want to comment on. In the post Jeff Atwood discusses hash tables and states the following: Key-value pairs are quite common in real world data, and hashtables are both reasonably efficient in storage and quite fast at lookups, offering O(1) performance in most cases. That’s why hashtables are the go-to data structure for many programmers. It may not be the optimal choice, but unlike so many things in computer science, it’s rarely a bad choice. ...

December 10, 2007 · zacharyzacharyccom

Villanova Basketball 2008 Season

Hello all you Villanova fans out there. If you are like me, and the further you get from graduation the less you remember about your old college basketball team, then this link is for you. Okay wait, what is this? It is a link to an iCal formatted subscription. iCal is also the name of Apple’s calendar app that ships with Mac OS X.

December 7, 2007 · zacharyzacharyccom

Vacation Trip Preview

I promise to write more on my vacation later, but I wanted to give a little preview. Here is a photo of my California friends. Just wanted to point out that three of us are relatively serious photographers. Why is the Sun behind us?

December 4, 2007 · zacharyzacharyccom

What I want to for the Holidays

I found the best gadget. Amazon just released the Kindle and this thing looks great. Its an ebook reader with some additional features that distinguish it from the rest. Firstly, this device has a EVDO built in. What does this mean? No need to find Wifi to download a book, Kindle connects like a cell phone to the amazon store to get your books. Actually, Amazon even opens up Wikipedia access so you can look up articles on the go. Secondly, this device is created by amazon. They are a company in the right position to see that a large quantity of their books make it to correct format for this device. One complaint, so far the price of the technology books is still prohibitively high. These books are still greater than 20 dollars, which I still see as a large amount to pay for an electronic document. Can’t wait to see this thing in action, though. Maybe that will change my perception of the cost. ...

November 20, 2007 · zacharyzacharyccom