Posts Tagged "Java"

Quicksort Definitive (C++, C#, Java, VB.NET, PHP)

One of the funnest things about being fluent in multiple languages is porting code from one language to another or in my case, porting a piece of code to 6 or 7 languages and allowing any newbie the opportunity to learn algorithms despite their language. It also makes it great to see the differences between languages and some challenges (as we will see with our Java example). On this entry ...

Comparators in Java (Prepare to Compare)

Damn! I just can't get that linkedlist to sort! What did I ever do to deserve this? Why god why!!!!!!! Ok, maybe I am being a bit over dramatic and lets face it, I think I have only gotten to the point where God and I were sharing code frustrations only a few times in my entire life. When code is not cooperating and deadlines are looming, you and the ...

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 ...

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 ...

Inside the World of Ciphers

Ciphers, a great marvel of mathematics and secrecy. They are the very heart of encryption, but how do we bring this to the world of programming and make some kick ass stuff with them? I had gotten the idea of showing some ciphers through a recent question that had been brought up. So I thought I would throw out some code from the dark corners of encryption for today's blog ...