Desktop Programming

Desktop programming related articles not related to .NET (Java, Python, Ruby etc)

A Review of Two Python Books

In today's blog post I am going to review two books on Python. I decided to do two because both of these books are essentially reference books from the Developer's Library series by Addison Wesley publishing. The first book I will be reviewing is titled "Python Essential Reference, Fourth Edition" by David M. Beazley. It is a bit of an oldie (2009) but I think is a great reference book ...

Transforming Shapes With Java AffineTransform

You, a retro gamer, are on a new quest to bring back a classic arcade hit to a whole new generation of space faring digital cosmonauts. But it is dangerous out there and you need to show these rookies the dangers of journeying their ships alone in the vastness of space. So you want to create your own game of Asteroids. For those unfamiliar with this game, and I can't ...

Can Tools Make Coding Too Easy?

I caught a wonderful article on Dzone today by Jonas Gauffin titled "How Resharper rocks my average work day". In this article Jonas talks about a tool he uses regularly called "Resharper" that makes common tasks a bit more automated when coding in C#. This article reminded me that we are continuously developing better and better tools that help us write code. But is there a point where we are ...

The Comma Operator in C++

When we think of the comma character we often think of it as a separator. It separates values in an CSV file, it separates items in lists, it may separate index values in multidimensional arrays (in other languages) and more. But in C++ an obscure way of using them was as an operator. The reason it never made it big as an operator and into the typical programming psyche is ...

5 Quick and Easy Refactoring Tips

You wouldn't believe how many programming questions I run across, on a daily basis, asking for help with programs that contain repetition, duplication and enough spaghetti code to feed half of Italy. Often times the person asking the question has a particular problem but they don't know exactly where the problem originates. So they plop down a bunch of code and say "It is somewhere in there... I think". Usually ...

Function Pointer Basics in C++

Beginners to C++ programming find the concept of pointers foreign to them. Pointers, and code that manipulates pointers (aka pointer arithmetic), can even be daunting to some of the most seasoned programmers. Pointers in C++ account for a fair share of bugs in programs due to the lack of understanding. So why even use them? Well, besides being the most problematic, they are also some of the most powerful features ...