the corner office

a blog, by Colin Pretorius

# MyEclipse vs WTP

I've been using MyEclipse for a while, and it's a really powerful tool for Eclipse J2EE development. The dilemma MyEclipse faces is that the built-in tools will be built, or improve, to the point where it's not worth paying for a commercial add-on. With the blog done, I don't expect to do too much web-related development at home over the next year, and even when I do, my needs will be fairly humble. My MyEclipse subscription needs renewing, so I thought I'd take a squizz at Eclipse's Web Tools Platform (WTP) project and see if it could do what I needed.

Installing it is easy enough, but converting a MyEclipse web app to a WTP web app is not trivial. I managed to get a few web apps converted and working, but it didn't take long for me to wipe them, pull the old versions down from CVS and go back to MyEclipse.

There are a few reasons:

  • MyEclipse provides an umbrella J2EE library for classpath resolution during development. The library is generic, and part of the MyEclipse installation. WTP on the other hand, requires you to link directly to an app server runtime. I don't like this because I don't want to be tied to a specific server in this way. It is possible to create a generic J2EE runtime, but you're still responsible for finding and linking to the necessary jars. MyEclipse is just easier and cleaner.

  • Eclipse doesn't make it easy to convert projects between different types. The project's type is usually tied to a 'nature' in its .project file. Often, a bit of fiddling with the .project XML allows you to turn a plain project into a Java project, and so on. This doesn't seem to work with WTP. In addition to the natures and builders (and there are a few), it seems that some files in the project's .settings directory are also needed.

  • I almost always add .settings to cvsignore. It's not a biggie, but some settings can be workstation-specific and it can be quite annoying having conflicting .settings files being bounced back and forth between developers in a team. As I mentioned, it seems that WTP projects need some settings files shared just to preserve what sort of project it is.

  • I want my workspace projects to be my projects. I don't like polluting my workspace with the Servers project created by WTP. I know it makes it easier to share configurations and the like, but I prefer making do without it.

  • MyEclipse integrates with Tomcat cleanly and simply. It re-uses the server's config files, including the various app Context files. WTP gives you more options, but for all that, I couldn't get the server to see my existing Context files. Having to bundle everything, including database connection resources, into a single server.xml, just isn't workable.

  • Finally, linking my tco.util Java projects to my web application projects caused WTP to create .settings entries and MANIFEST files in the utility projects themselves! WTP has no business touching included projects if they're not being edited directly. That's just not on. MyEclipse does a fine job of placing dependencies into deployed web applications, without writing all over the included projects. If MyEclipse can do it, so should WTP.

I can't help but notice that many of the things I don't like are also features in Rational Application Developer, so I suspect they'll be rather entrenched in WTP, no matter how much it continues to mature. In fairness, some of them probably do make more sense in larger development teams. For now though, I'll gladly pay 32 bucks for another year's subscription to MyEclipse.

File under: java : {2007.03.25 - 22:47} : Comments (2)

# DST

This is my first experience of Daylight Savings Time, and I feel like I'm living a lie. I am living a lie. I'll settle in soon enough, but now I see the clock saying 12h30 and I know it's actually only 11h30. I feel like I've been cheated out of an hour of my life. I know I'll get it back at the end of summer, but still.

If you think of the amount of computational effort needed to handle daylight savings time in the modern world, you have to wonder whether it might've been better if, in the pre-computing days when DST was first concocted, someone had tried to be less clever and had just passed a law forcing organisations to open an hour earlier.

File under: personal : {2007.03.25 - 12:47} : Comments (0)

# What's next?

Time to stick to the quasi-resolution. Over and above some adminish distractions, it's time to pick a new programming project. There are a few things I'd like to do over the rest of the year. By the end of the year I'm keen to be doing things with a much more Unixey and C/C++ish flavour. It has nearly zero applicability to my day to day work, but that's kind of the point: it's fun and a way nerdy distraction.

Before doing that though, I'm going to spend some time doing something I've made far too many false starts at over the past few years. I first started mucking about with Eclipse RCP back in 2004, and at least once in 2005 and again in 2006 I started and got nearly nowhere. Time to get past the first few chapters of the manuals.

I spend a lot of time in Eclipse, and now in RAD, too. I think it could be quite useful getting a little more under the hood with them. Also, there are a few desktoppish apps I may get around to working on, why not kill a few birds with one stone and use Eclipse RCP?

So that's where I'm headed for the next while. Goals: get my head around plug-ins, perhaps build one or two, and then take that a step further to an RCP app, and whip up something simple, to see what it's like to use it all in real anger.

File under: techie : {2007.03.23 - 21:59} : Comments (2)

# Forwards and backwards

Today was a bit of an odd day, exciting and sad. The exciting part is we bought a car on the weekend, and I collected it this morning, and we're well chuffed. It's been remarkable that we've managed without a car for so long: we've been lucky to have my sister and brother in law helping out when we needed it, but for the most part, we've made do with buses and trains, and walking a few blocks to get whatever we need. I wouldn't have wanted to make do forever without a car, but it can be done, and that's not something my middle class South African mind could have grokked a year ago.

In fact, I really hope we don't allow the car to make us lazy. I love walking around our town, and there are whole swathes of Oxford I've yet to explore by foot. I enjoy the bus commute in the mornings and evenings, despite having to sit next to the occasional smelly slob. I spend the same amount of time commuting that I did in Joburg, but in Joburg I was sitting in traffic for 45 minutes twice a day, now I get to sit quietly and read for an hour and a half every day. I haven't read this avidly in years. Every now and then, I don't read, and just soak in the countryside for half an hour or so. It's great.

A car will change things, though. It gives us independence, and security with little one on the way, and the ability to broaden our horizons: do more, travel more, see more. In many respects it marked the final thing we needed to do, to really feel like we're settling in this country. I fetched Ronwen this afternoon, and we got cheerfully lost exploring villages and hamlets and winding country roads as we drove home from Oxford. Then we stopped in and got McDonalds drive-thru at Benson, just because we could. Things are going to be different.

The sad part of the day is that today marks 2 years since my mom passed away. A few years ago any exciting news, like today, would have seen me pick up the phone and share it with my mom. So much has happened over the past two years, and I often still get that near-subconscious urge to pick up the phone and report good news, but then I remember that I can't. I'm grateful for the family and loved ones I can still report good news to, but I still miss my mom.

File under: personal : {2007.03.21 - 21:51} : Comments (0)

# Ubuntucised

I decided to take another stab at the Ubuntu wireless thing this evening. I cleared a space in the spare room, perched the laptop on top of a box, contorted and got an ethernet cable plugged in. Not too long after, and I had wireless working. I still don't know exactly what I did, but following these instructions verbatim did the trick. I am now blogging from Ubuntu, and am a happy camper.

Except for one thing. Ubuntu has no black cursor theme by default. I dunno about now, but in the old days, as in the Mac OS 7 days, Macs had a black cursor. Early versions of Windows had white cursors, and ever since, my first act of defiance when setting up a new (Windows) machine is to switch to a black cursor. (The other thing is to move 'My Computer' to the top right of the desktop and the Recycle Bin to the bottom right). Now I see that Ubuntu has white cursor themes, and red cursor themes, but no black cursor theme.

Gonna have to fix that. And track down my old Glass-looking Gnome theme. And get decent fonts installed. And remember how I got my menus to use a 7 point font, and smaller icons. And and and...

But at least Ubuntu's running. I think I shall have some chocolate to celebrate.

File under: linux : {2007.03.20 - 23:11} : Comments (0)

# I almost switched to Ubuntu

It's not that I hate Windows XP, it's just that some parts of it really grate me. I'm sick of NAV freaking out because my virus definition subscription has expired. It's been over a week, gotta sort it out, I have a spare license somewhere here, but it's a mission to dig it up. I have Norton Protection Gulag blasting me with warnings every time I boot up because I choose to review Windows updates before installing them, and every time I shut down, some random Acer utility program won't close gracefully.

All of this means one thing: time for Linux again. I agonised a bit over Gentoo vs Ubuntu, but Ubuntu won. We'd used it on Ronwen's machine for a stretch last year, and it's nice and easy to set up and use, and I can do with easy right now.

I cleared a spare partition, and installed Edgy Eft this weekend (maybe I didn't hug enough bunnies as a kid, but I have to say it: Ubuntu's naming is naff). Anyway... I've never used Linux on a laptop, so I wasn't sure what to expect. Remarkably, the touchpad worked like a charm, even the fancy scrolling-down-the-side feature. The screen resolution is woozy but apparently there's a tool for that. The deal-breaker, though, is that my wireless card ain't working. Being a wireless newbie, more homework is needed. That, and an ethernet cable to my ADSL router. Since the router is behind a mountain of boxes in the spare room, that ain't going to happen for a while.

So I'm sticking with Windows for now. Bugger.

File under: linux : {2007.03.19 - 23:33} : Comments (0)

# Ian Murdock joins Sun

Interesting: Ian Murdock, once of Debian fame, is joining Sun. Quote:

The last several years have been hard for Sun, but the corner has been turned. As an outsider, I’ve watched as Sun has successfully embraced x86, pioneered energy efficiency as an essential computing feature, open sourced its software portfolio to maximize the network effects, championed transparency in corporate communications, and so many other great things.

I wonder how many people would agree that Sun's turning a corner. It must take a lot of guts to make a move like this.

File under: linux : {2007.03.19 - 21:47} : Comments (0)

# Absolutely nothing

absolutely nothing

If there's one thing that's magical about this island, it's the countryside. I have to share a link (via Aquila Online) to the Absolutely Nothing photoblog, which adds even more magic to some incredible scenery. Beautiful stuff.

File under: world : {2007.03.18 - 23:00} : Comments (2)

# It ain't the boot, it's just who's wearing it

The South African government finally spoke up about Morgan Tsvangirai's ordeal at the hands of Zimbabwean police:

"South Africa urges the Zimbabwean government to ensure that the rule of law including respect for rights of all Zimbabweans and opposition leaders is respected," Deputy Foreign Minister Aziz Pahad said.

Ooooh, Mad Bob's quivering in his boots now. Change the victim's name from Morgan Tsvangirai to Steve Biko and you get an idea of the levels of hypocrisy at play in South Africa's Zimbabwean policy.

File under: politiek : {2007.03.13 - 22:51} : Comments (0)

# The Youtube vortex

It's crazy, man. You have some free time, you start out at the PC all productive, getting things done, and then you decide to take a gander at Youtube, and the next thing you know, you've polished off three times more chocolate than you were planning to and it's an hour past your bedtime.

There are downsides to having 8MB uncapped ADSL connectivity, there really are.

File under: techie : {2007.03.13 - 00:24} : Comments (0)

Next »

meta

-home-
about
contact
disclaimer
articles
code
tech blog

style: [?]
[plain.dark.blue]

Categories

java
linux
music
notes/domino
personal
politiek
studies
techie
thee_blog
world

RSS Feeds

rssfeed all posts
rssfeed all cmts
rssfeed tech posts
rssfeed tech cmts

Archives

2010.09
2010.08
2010.07
2010.06
2010.05
2010.04
2010.03
2010.02
2010.01
2009.12
2009.11
2009.10
2009.09
2009.08
2009.07
2009.06
2009.05
2009.04
2009.03
2009.02
2009.01
2008.12
2008.11
2008.10
2008.09
2008.08
2008.07
2008.06
2008.05
2008.04
2008.03
2008.02
2008.01
2007.12
2007.11
2007.10
2007.09
2007.08
2007.07
2007.06
2007.05
2007.04
2007.03
2007.02
2007.01
2006.12
2006.11
2006.10
2006.09
2006.08
2006.07
2006.06
2006.05
2006.04
2006.03
2006.02
2006.01
2005.12
2005.11
2005.10
2005.09
2005.08
2005.07
2005.06
2005.05
2005.04
2005.03
2005.02
2005.01
2004.12
2004.11
2004.10
2004.09
2004.08
2004.07
2004.06
2004.05
2004.04
2004.03
2004.02
2004.01
2003.12
2003.11
2003.10
2003.09
2003.08
2003.07
2003.06

© Colin Pretorius