2008-03-13

NetBeans 6.1, Maven, Spring 2.5 MVC, Quercus and Mercurial

I've been playing around with the NetBeans 6.1 beta, learning how the new Spring 2.5 MVC annotation-based controllers work combined with Quercus, and how to use Mercurial to source control the whole shebang.

My local Mercurial repository is at http://www.gueck.com/hg/, and this project at http://www.gueck.com/hg/p2j/.

The concrete objective I set myself is to think up a workable way for growing organizations to transition their applications from PHP to Java, without stopping the world.

Step 1: See whether you can run your PHP code completely on Quercus on the JVM, or whether you have to run some parts of the application off Apache and some off the JVM, using mod_rewrite.

Step 2: Transition your whole PHP codebase to run on Quercus on the JVM.

Step 3: Hire at least two senior Java developers to help your developers get to in terms with object-oriented development with virtual machines. Start the slow process of moving people's thinking from a prodecural model to a object-oriented model.

Step 4: Start writing business logic controllers in Java, and use Quercus/PHP for views.

Step 5: Together refactor the controllers which will inevitably still be written in the old procedural PHP model, no matter how smart your developers are, because changing how you think takes time.

Step 6: Profit! Maintainable code! Fewer security risks!

0 comments:

Post a Comment