Home > Tech > Programming is fun!

Programming is fun!

December 12, 2006 Leave a comment Go to comments

Java 6 is out. I haven’t played with it yet, but I like Java, so I think it’ll be a decent step forward. The thing I’m kinda curious to see is how Swing’s emulation of XP’s “look and feel” has improved, which I read was supposed to be an improvement in this release. I know Java 5 is supposed to be good at it, but it just doesn’t look very good at all to me.

In other programming news, I’ve found that I really like Python. I’ve had license (sort of) to play with it at work, which resulted in a much shorter version of a Perl script I wrote (that’s probably because I’m not much of a Perl programmer) and a shorter and faster version of a simple C++ program. Both of those were a little surprising to me. Mostly the second one, but I think the cause is the C++ program uses its own CSV parser, which isn’t the greatest, while Python has a presumably faster library for that. Really though, I just think it’s fun to write in.

Categories: Tech
  1. December 13, 2006 at 12:02 am

    but I like Java

    boo hiss

  2. rob
    December 13, 2006 at 12:15 am

    Why don’t you just use SWT? Native look-and-feel, and much faster than ‘orrible Swing. SWT is what makes me not hate Java, I think.

    And yes, Python is absolutely cracking. A while back I started using it as a shell script replacement for anything above one or two-liners, and it’s lovely.

  3. December 13, 2006 at 1:04 pm

    It’s a shame Python doesn’t have more pull in the web apps world.

  4. December 13, 2006 at 6:08 pm

    Why don’t you just use SWT? Native look-and-feel, and much faster than ‘orrible Swing. SWT is what makes me not hate Java, I think.

    Eh, I don’t really understand the dislike of Swing. I thought it was easy to pick up and pretty powerful. Of course, I can’t say I have much experience with other graphics toolkits. I’m skeptical to some degree of the speed claims too, since it seems like a lot of people build Swing apps through some kind of tool, which seem to produce pretty poor code. My only problem with Swing is the XP native look and feel. It’s not a big problem since the standard Java look and feel looks alright to me and because I’m not using it to do anything important. I really should try out SWT, though.

  5. December 18, 2006 at 2:01 am

    Yeah? I really hate Swing’s layout managers. The gridbag is the only one that even comes close, but it still has some really odd behavious. Another limiting factor is the idea that you can not add on layout to another and each widget can only have one layout. You have to add the widgets to a panel with a layout and then add that panel as a widget to the parent widget.

    I really like QT. Great layouts and awesome portablity. Plus, you get to use C . While Java has made some leaps with the GUI, they are still considerably less responsive.

    On python, I am getting to spend about 30% of my time these days on python. It is much more structured than Perl, which appeals to the oop in me. Yes, I very much like it.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: