To Layer or not to Layer – part 2

I had a great response from my article last week on the pros and cons of architectural layering, and it prompted quite a heated discussion on TheServerSide.com (and as a result took quite a few hits on my server that day!)

I think some people missed the point entirely though. I would never suggest for one minute that we should abandon architectural layering in the development of a large enterprise system, and even for smaller systems, layer is still good practice. My main point (and some people did pick up on this), was that as software architects and developers we need to be thinking how we can increase productivity by removing or hiding the plumbing code and overhead introduced from developing applications with multiple layers. My example of Ruby on Rails is achieving exactly this, and I think we have lessons to be learnt from looking at this approach.

I noticed after I posted the article last week that there is a project on java.net called Trails, which is a Java-based project similar in goals to Ruby on Rails. I haven’t looked at it in detail yet, but this looks like a promising step in the right direction.

Windows disk recovery with CD-booting Linux

I made the ultimate mistake as a Windows user a few months ago… I moved a hard disk with XP already installed into a new machine, with a different motherboard and CPU. What a mistake. I can’t believe the trouble it caused with XP – it became so erratic and unusable that it was just that… unusable. Sure, it would boot up… in about 5 minutes, but even after it had booted it would take forever loading the anti-virus, firewall, etc etc.

Linux on the otherhand on the same drive (dual boot using Partition Magic/Boot Magic), couldn’t care less about begin moved to another machine, and booted just as it always has done… no problems what so ever. I think Microsoft need to rething their Product Activation, and restricting hardware changes etc, because it just adds pain to the user.

Anyway, after running many registry fixers, optimizers and anything else I could find, I ended up with a dead install of XP, and it would no longer boot. And on top of this at some point the drive diag software (it was a Quantum 40GB drive) starting reporting drive errors and I couldn’t reformat the primary partition so I couldn’t even reinstall XP.

This would normally have been the end of the road for whatever I had on this drive, but I was saved by being able to boot Linux from a CD (Knoppix, the STD distro), and copy any files from the good partitions to my USB hard drive.