The Fairway Technologies Blog

blog
September 12, 2018 | Paul D. Sheriff

Becoming a Web Developer

I am constantly asked by desktop developers how to make the transition to web development. Web applications are almost as powerful and as fast as desktop applications these days. There are no installation hassles as web applications reside in just one place: on your server. The user simply navigates to their application's starting point on their browser and can immediately start working. In this blog post, I provide you with guidance on how experienced developers can get started with web programming. I am not going to go in-depth into each technology and tool. Instead, I will introduce you to terms, technologies, and tools needed for web development, and provide you with links on where you can learn more about each.

March 23, 2012 | Ray Mitchell

Prefix vs. Postfix Increment and Decrement Operators in C++

Here is how most programmers new to C-based languages are taught to write for a loop:

for (int i = 0; i < someValue; i++) {
// Do something
}

Unfortunately this starts programmers off on the wrong foot by teaching them the bad habit of using i++ (postfix increment) as the default way to increment a value.  Using ++i (prefix increment) would work just as well since the result of the increment expression is not used by the containing expression (the for loop).  Here is the equivalent code using ++i1:

for (int i = 0; i < someValue; ++i) {
// Do something
}

It's preferable to use prefix increment when the result of the increment is not used by the containing expression.  To see why, let's first take a look at what the compiler generates when it encounters i++ and ++i.

New Call-to-action

Sign Up For Our Monthly Newsletter

New Call-to-action