What all is Possible in JSP Bad Design
Recently, I came across a web based application with Struts, EJB and Stored Procedures. The project was outsourced from South Africa and client was a insurance department of Govt. of South Africa.
A part of the code was already written as the project had been running since 2001. At that time, Stored Procedures were written to write the business logic and MVC 1 model was used in the web application. This meant that the JSP's had all the processing and UI code written in scriptlets, declarations etc. I had a hard time to understand the existing code and then make changes as per the latest enhancements requested by the customer.
A single JSP page had CSS, JavaScript, HTML and of course Java code. Each JSP was running to 1500-2000 lines. Other clleagues who had visited client side in South Africa told me that writing such a code is a great achievement for developers in SA. The onsite co-ordinator told us that they like the work to be outsourced once it had been written by developers sitting at the client side.
Even worse, they were wanting to write the UML diagrams using Rational Rose for the code which is already running in the production environment. This was required to be shown during the internal/external project audits.
In the meantime, they also decided to introduce EJB's and I don't know why..The business logic was already written in Stored Procedures. The developer at that time (around July 2007) used session EJB's to call the stored procedures. The introduction of EJB's resulted in the use of JBOSS application server.
First I was happy that I have learnt how bad design works. I was also getting the opportunity to understand the application and write UML diagrams for the same but I was so frustrated with the application that I considered changing my employer at that time.
Recently, I came across a web based application with Struts, EJB and Stored Procedures. The project was outsourced from South Africa and client was a insurance department of Govt. of South Africa.
A part of the code was already written as the project had been running since 2001. At that time, Stored Procedures were written to write the business logic and MVC 1 model was used in the web application. This meant that the JSP's had all the processing and UI code written in scriptlets, declarations etc. I had a hard time to understand the existing code and then make changes as per the latest enhancements requested by the customer.
A single JSP page had CSS, JavaScript, HTML and of course Java code. Each JSP was running to 1500-2000 lines. Other clleagues who had visited client side in South Africa told me that writing such a code is a great achievement for developers in SA. The onsite co-ordinator told us that they like the work to be outsourced once it had been written by developers sitting at the client side.
Even worse, they were wanting to write the UML diagrams using Rational Rose for the code which is already running in the production environment. This was required to be shown during the internal/external project audits.
In the meantime, they also decided to introduce EJB's and I don't know why..The business logic was already written in Stored Procedures. The developer at that time (around July 2007) used session EJB's to call the stored procedures. The introduction of EJB's resulted in the use of JBOSS application server.
First I was happy that I have learnt how bad design works. I was also getting the opportunity to understand the application and write UML diagrams for the same but I was so frustrated with the application that I considered changing my employer at that time.
I can understand the pain when you got to work with such kind of scenario. the best thing you can probably asked your manager to send you to SA for knowledge transfer , that would have probably lessen the pain :)
ReplyDeleteJavin
SynchrnozedHashMap and ConcurrentHashMap