My wife just started to learn programming for fun, so I told her to start with Java, because it’s simple and quite straight forward. After she managed her first “Hello World” she was disappointed as no application popped up but the message was printed in a terminal. Well, I told her that these are the basics and she should be patient for what’s to come.
So, today I thought of preparing a GUI “Hello World” for her: A nice Button saying “Hello World” and when you click it, the app will quit. Simple, though, but what UI toolkit should I show her: Swing or SWT? I decided to go for both. Well, and, being a fan of Qt for more than a decade, I couldn’t resist preparing a Qt Hello World too. To my surprise, now I’m a little worried about having told her to start with Java, but count the lines of code and judge for yourselves:
Alright, I didn’t need a header file yet, but still, it’s the implementation code that counts, don’t you think?