Never use the “continue” keyword!
I was looking through some questions on StackOverflow last week when I came across a curious answer. In it there was a link to a
I was looking through some questions on StackOverflow last week when I came across a curious answer. In it there was a link to a
Objects are created, live for a while, and then destroyed. While creation is fairly clear, the when and how of destruction is fairly language dependent.
A variable is is the most fundamental concept in programming. You can’t do anything without variables. Yet most languages let you gloss over what these
Casting in C++ is a confusing jumble of unclear and dangerous operations. It mixes unrelated concepts. It introduces ambiguities and redundancies. It’s an essential but
Efficient yet confused. Powerful but unsafe. So is the nature of C++ object allocation and instantiation.
C introduced it and C++ mastered it. The hellish world of implicit conversion and type promotion. A system which silently modifies, truncates, rounds, and otherwise
In the article on “How Polymorphism Works: Part 1” we learned how to create virtual functions. The method which we chose has at one significant
Polymorphism: the core of object oriented programming. Most modern languages have some concept of interfaces, virtual functions, and classes. Though each language differs in details,
In the world of new languages it seems like garbage collection is standard feature. A way for the runtime to locate unused bits of memory
We all know that operations in a computer happen one after the other. Having multiple CPUs and instruction reordering tends to obfuscate the issue. Technically