Archive for the ‘Opinions’ Category

Linux or Windows, Which is Best For Developers???

Posted on March 31st, 2009 in Linux, Opinions, Windows | No Comments »

When a programmer chooses his hardware, he doesn’t go around like most people. He has to greatly consider what he’s buying. Well, we’ll leave that aside for now, and we’ll look at software, more specifically the OS. The two most used operating systems in development have to be Windows and Linux; Mac OS X is a terrible platform, and hardly anyone develops for it, except major companies like Skype. When considering what platform to choose as a development environment consider these things. Which has a better API???, Which will more people use???, How much will this cost me (both in time and money), and What Compilers/IDEs are available???
Now we’re gonna look at all of those.

Which has a better API??? - OK, I’ve never programmed under Linux, but I think in some ways it would be easier than Windows. The Win32 API has to be the worlds most complex piece of crap ever written! I love Windows but it takes forever to learn as well as master(I know, I’ve tried; and I’m an OK Windows programmer). Now Linux is really Unix deep down inside, which is a system fewer are familiar with. However, if you can use Windows you could learn Unix. Its structure is a little more “system-like” if you will, but you can figure it out. The only problem with is that Linux doesn’t really have an API. I must state that I’ve never programmed under Linux, but from what I’ve heard, it’s application programming interfaces are truly messy and even surreal. You see, their are hundreds of Linux Distros, each written by different people, and the all include different things. Some have KDE, some GNOME, other XFCE. Some have GTK+ others QT. You see, there is no universal Linux, except for the Kernel. While Windows is more difficult, it’s stable. Sadly Linux lost this round because of it’s non-standards

Which will more people use??? - Let me start out simply by saying that if you want your software to be used by the masses, then it better be Windows. Microsoft ran a commercial the other day stating they had over 1,000,000,000 PC users!!!!! However, if your software is not meant for common user usage (like Server stuff), or is meant to be Open Source, then Linux is the way to Go. For this round, Windows definitively won.

How much will this cost me (both in time and money) - There are three factors that affect resources. Time, Money, and Development Team. Those three things in my opinion are the most important in software development. Now the third really isn’t affected by the OS your running, so we’ll look at the first two. Time! Time is of the essence! If you have to spend more time configuring a system than coding, then you my friend have a problem. Let’s look at Windows first. You buy a PC and it’s pretty much ready to go! You get rid of some of the software it brings, install an Antivirus/Firewall, your development tools, and maybe even Mozilla Firefox. The whole thing is done in an hour or two. Now look at Linux, you pop in the disk. It’s pretty much good to go, unless you encounter a problem!!!! If you were to let’s say be unable to get your wi-fi to run, you’d have to find the right driver; and with it’s low support that could take hours. Then there’s the configuration. Linux is not point and shoot, it’s point, Google, then shoot. I don’t wanna be to mean to Linux, but that OS can be a real time consumer. I spent hours with many failed attempt before getting it right, all in the name of Linux! Now, sometimes Windows takes a while to fix, or in that case reinstall, but the upkeep of Linux is a great disadvantage. Now for the second, money. Windows Vista Home Basic costs $99 bucks at the store; Debian free. Most free software for Windows is either a trial, express, or has a marketing strategy behind it. The exact oppisite is in Linux. Debian has over 20,000 free pieces of software (that_a_lot = true;).  So when it comes to money, Linux is champ. Now to illustrate this I think I’ll use one of those MasterCard Commercials

Example 1: Windows Vista Home Basic…99 Dollars, Extra Goodies…250 dollars, Getting a Wonderful, Rich, Development Environment…Priceless

Example 2: Debian 5.0 Sid…Free, Extra Goodies…Free, Getting a Platform Hardly Used, With no Solid API…Worthless

What Compilers/IDEs are available??? - This really depends on the language your using. For Java, the JDK is cross platform, but that’s not always the case. Why don’t we consider C++??? In Linux the main compiler/linker is g++. Now, I’m not saying the command line sucks, heck I love it, but creating an application through it is a pain. In Windows that kind of thing doesn’t exsist, well it does, but forget that for now. In Windows there are tons on IDEs available. The monsterous Visual C++, Borland C++ BuilderX, Code::Blocks, that’s just to name a few. Now what IDEs are in Linux??? Anjuta???? Well, if you like limited choice, then Linux it’s for you.

Well, in conclusion, consider this article, I’m bias to Windows, but what I’m saying is true. In my opinion Windows is the best platform in the world, but truly the choice is up to you. I gave you a few things to ponder upon and I hope you can make a great choice.

Until next time,

~This is Mike Signing off

I Think Java Coderz Are Just Lazy

Posted on March 30th, 2009 in C/C++, Java, Opinions | 2 Comments »

In the world of programming, if an application needs a GUI (what doesn’t these days) the first thing that comes to mind is “Java“; aren’t I right???? Seriously! It’s easy, cross compatible, and has great reviews. Java looks like an all around great deal!

Well I don’t want to rain on all you Java coderz parades, so I’m gonna pour and flood.

When it comes to application working, it doesn’t get any better that C++. Now I’m pretty bias, but let me explain. C++ can beat Java in the three things I mentioned above.

It’s Easy - Sure Java is easy. Things are based in a OOP kinda way. However, one must remember Java is just C++ deep down inside, really it is. The only difference between the two is that Java brings it’s API built in, while C++ relies on imported/exported libraries and interfaces. However, just include the file windows.h and you have the entire Win32 API at your finger tips. C++ is better than Java, you just got to find a good library or two.

It’s cross compatible - Well while we all would love “write once work on all toasters”, that’s beyond the point. C++ will work on any platform just like Java. Sure you’ll need separate libraries for different things, but how much does it matter. While you may have to recode the GUI, most of the internal code will remain untouched. If you use Java just because you don’t want to rewrite an interface, then you are just lazy (and my parents taught me that was bad. *Tisk Tisk*) Really how hard is it to rewrite it, unless we’re talking a “extremely” large application.

Java has great reviews - So does C++, as simple as that

Example
Now to help illustrate all of this, let me share a story if you will. I have a friend called Blake. He made a pretty simple instant messaging program in Java (with the server software in C++). Well, let me tell you the trouble he’s had. In my opinion it’s GUI sucked under Linux, it didn’t work in Mac OS X (so much for platform independent), and a lot of the time it froze.

Now I don’t want to criticize my good ol’ buddy, but if he had written it in C++, I’d bet a $100,000,032.67 that he would not have a single problem.

I hope that all of you will consider my opinions and look more to C++. I’m not saying Java is a terrible language, I’m saying C++ is better

Until next time,
~ mike