Displaying articles with tag

THIS is how to do a major upgrade

Posted by admin, Mon Aug 28 10:11:40 UTC 2006

Maven – Guide to Moving From Maven 1.x to Maven 2.x

It is possible to establish parallel Maven builds, one using the old M1 settings, and a second using M2. The Maven 2 configuration file names and uses have been modified, so the two builds should not conflict.

A Maven 1.x build is configured with the following files:

  • [project.xml] Project Object Model (POM) definition
  • [maven.xml] Custom build scripts
  • [project.properties] general build settings
  • [build.properties] local build settings

    A Maven 2 build is configured with a different file set:

  • [pom.xml] POM definition
  • [settings.xml] local configuration

I was just going back over the Maven build that I put together almost one year ago. At the time, I picked the official release, so we used Maven 1.x. I knew we’d have an upgrade down the road, and since I looked into some of the Maven 1 to Maven 2 changes, I wasn’t really looking forward to it. But I see they have managed to put everything together in such a way that you can have both versions available to build without conflicting. Brilliant! I wish everyone that was putting together major new releases, with major changes, did such a good job of taking the pain out of the process.

Now I can install the new Maven 2, and upgrade pieces and parts of our build as I go, when I have the time. And when I’m done, I can just switch the continuous builder over to Maven 2 and I’ll be done. I like it.

0 comments | Filed Under: | Tags:

The wrong solution to deep nesting

Posted by admin, Wed Aug 23 05:49:15 UTC 2006


Krzysztof Kowalczyk weblog

The way to avoid deeply nesting is to do early exit as soon as possible. The trivial example could be rewritten as:
<br />if (!foo) return;      <br />if (!bar) return;      <br />if (!anotherVariable) return;      <br />… and this is the logic<br />



I violently disagree with this solution to the unreadability of deeply nested if’s. IMO, you are just trading one problem (poor readability) for another problem (really hard to debug). If you have deeply nested if’s, then you probably need to apply the state machine design pattern to your code.

0 comments | Filed Under: | Tags:

Good advice, absolutely depressing statistics.

Posted by admin, Tue Aug 22 14:02:24 UTC 2006

Coding Horror: Source Control: Anything But SourceSafe

The top 9 responses are reprinted here. I’m disheartened to see that Visual SourceSafe is still at the top of the list. If you are serious about the practice of software development, you should avoid SourceSafe.

I don’t know how many times this has to be said before developers start paying attention, but let’s try it one more time. Never, never, use SourceSafe.

0 comments | Filed Under: | Tags:

Unclear on the concept

Posted by admin, Tue Aug 22 04:45:41 UTC 2006

I keep seeing this sort of stuff from new applications, or new builds of old applications. These developers are unclear on the concept of what a “universal” binary actually is. If you really have a “universal” binary, there is no need for a PowerPC binary. And if you need the “PowerPC” part, then you probably don’t have a “universal” binary, you probably have an “Intel” binary.


Attachment Scanner Plugin for Mail.app

Installing the Plugin

1. Download the plugin: PowerPC [ source ]


But, I have to admit this is a very cool Mail.app plugin, so I guess I’ll forgive him. This time.

1 comment | Filed Under: | Tags:

Miguel's Zen Moment

Posted by admin, Thu Aug 03 15:58:14 UTC 2006

A J2EE Moment of Zen – Miguel de Icaza

Microsoft’s Avalon is the J2EE of GUI APIs

Interesting. Even more interesting is the plea for the “Rails of GUI”. Now that’s what I’m talking about. Rails is gaining popularity because it is “opinionated” software which favors convention over configuration. What this means for the programmer, is that the plumbing is just assumed to be there, and it works.

Why not a “Rails of GUI”? How hard could it be?

1 comment | Filed Under: | Tags:

MSDN Fails Sender ID

Posted by admin, Tue Aug 01 15:39:48 UTC 2006

I couldn’t resist posting this screenshot from Microsoft Windows Live Mail Beta.

MSDN fails Sender ID

The only reason I ever got a Hotmail account was to get a “passport”, so I could access my MSDN account online. Now, Microsoft is telling me that an MSDN email, sent from the microsoft.com domain, is failing the SenderID check. How embarrassing…

0 comments | Filed Under: | Tags:

But, but, but, what if I don't want it?

Posted by admin, Thu Jul 27 13:27:10 UTC 2006

The burning question I have is this… when it is delivered to my parents PC, who have been using Firefox for a couple of years now, will it obnoxiously take over as the default browser? Because if it does, they are going to go nuts.

Microsoft tags IE 7 ‘high priority’ update | CNET News.com

IE 7 will be delivered in the fourth quarter as a “high priority” update via Automatic Updates in Windows XP


As for me… well, as a web developer I am shuddering in horror. Guess it’s time to set up a new VM in Parallels and get the beta installed, so I can see how much damage I’ll have to repair.

0 comments | Filed Under: | Tags:

Pilgrim is no tech guru

Posted by admin, Fri Jun 23 07:41:12 UTC 2006

Any tech guru who doesn’t know how to back up or archive his data is no tech guru.  What an idiot.

Tech Gurus Say They’ll ‘Switch from Mac’

Pilgrim says he was bitten by this. He wrote that the databases behind Apple’s iPhoto and iTunes became corrupted, resulting in the loss of much of his data.

0 comments | Filed Under: | Tags:

Have you tried Google Browser Sync yet?

Posted by admin, Thu Jun 08 06:56:42 UTC 2006

Google Browser Sync

Google Browser Sync for Firefox is an extension that continuously synchronizes your browser settings – including bookmarks, history, persistent cookies, and saved passwords – across your computers. It also allows you to restore open tabs and windows across different machines and browser sessions.

I just installed this on Firefox on my iMac at work, and on my personal Powerbook. All I can say is… Cooolll!!!!!

One of the features that I almost overlooked was the syncing of “history”. How many times have you hunted through your browser history to find an elusive link, that you know you just looked at, only to remember that you actually looked at it at home, and now you are at work?

If you use Firefox on multiple computers, I think this plugin is going to be a must-have.

0 comments | Filed Under: | Tags: