SQL

Howto write Java Web Application Project

I am going to start a series of articles to create a java based web application. The goal would be to write good quality and maintainable code which can also be unit tested.

We should always think that technology is going to be outdated. The project requirement and even the author will keep changing. We should design an application keeping these points in mind, and write code as loosely coupled as possible. There should be many reusable components which can be easily exported or copy pasted to other projects with minimum hassles. When using a framework, follow its standard convention with minimal configuration (if necessary). Also if a new person sees the code, s/he should be able to easily understand it. Good documentation is also good, but in my experience nobody likes to go through (or even write) a manual. So a good inline documentation and standard code convention with descriptive variables is very helpful.

In this part, my first step would be write a bad web project where every thing is tightly coupled. Business logic, model and presentation layer are all mixed up. This way, we will know what are the disadvantages first hand ^_^

Syndicate content