Category Archives: C++

The difference between a function-like macro and a function in C, C++

I’ve been working my way through some of the open courseware computer science materials that MIT hosts. The past few nights, I’ve been reviewing the “Practical Programming in C” lecture notes and assignments. For the most part, the first few assignments were really easy for me – few new concepts. One bit that tripped me [...]

Also posted in C Programming Language | 2 Comments

Understanding Singletons

Why ANOTHER article about Singletons? If you search for ‘Singleton’ in Google or StackOverflow you get a bajillion and a half results.  That makes sense, because it’s one of the most commonly implemented design patterns in the history of software.  Some reasons for the popularity of the Singleton are: A.  It makes more intuitive sense [...]

Also posted in JavaScript, PHP, Programming | Leave a comment