Desktop Programming

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

Sieve of Eratosthenes in Java / C#

Eratosthenes, what an egg head huh? I wonder if he could have coded his own algorithm in Java or C#. Would he have known what a class, helper method, and a delegate is? The ancient Greeks had the math world pretty much locked up for their time... except that whole world at the center of the universe thing and that the heavens were in perfectly circular orbits. Whoa were ...

Caught in Pascal’s Triangle

Earth has the Bermuda Triangle, Space has black holes, and humanity has my crazy mind. All of these things are largely unexplained phenomena and so I figured, why not throw out one for the programming world? If Bermuda can have a triangle, dangit we are going to have one too! Introducing Pascal's triangle.... on this episode of the Programmer's Underground! Pascal's triangle has been studied around the world for hundreds of ...

Tips on Converting from Console to GUI

One of the most daunting tasks for any beginner programmer is building a great console application and wanting to put it into a GUI, but don't know how. Even experts have trouble at times doing this because the design for the console application assumes output would go to one screen unless directed elsewhere. In this entry I provide a few tips on migrating that great console app over to something ...

Microsoft Should Take A Look at Java

I am sure some of us have stopped and thought "Is Microsoft really going in the right direction with its development languages?" and then you probably put your nose back into the compiler and continued coding, not giving it another thought. But wait a minute, perhaps you are right. Maybe we should take another look instead of just blindly following Microsoft's techies into their vision of what software should be ...

Understanding JTables

JTables... the Java swing component version of a datagrid used in .NET. It is often a misunderstood component by newbie Java programmers. In reality it is very easy to use once you understand the model behind it. Through the model you can manipulate the content of the JTable and make it bend to your will! Add that row! Delete that Row! Feel like a dictator after reading this entry.... on ...

Fines Double in Constructor / Destructor Zones

If your language is somewhat of a fully object oriented programming language then it probably has some form of constructors and destructors. But what good are they? How do you use them to your full advantage to keep your objects "valid"? What is this whole idea of a default constructor and why in the heck do I want to create my own constructor if the default constructor is there for ...