Monthly Archives: May 2016

Servlet Best Practices

Oracle Java
Servlet-based technologies designed to make web application development easier and more effective. The first area of innovation has been happening at the presentation layer. Technologies such as Spring Framework, Struts, JavaServer Pages (JSP), WebMacro, and Velocity give us more productive alternatives. I advise you to consider using a framework and provide some helpful tips in this section on selecting the right framework.
Continue reading Servlet Best Practices

Theads Deadlock Example in Java

Deadlock describes a situation where two or more threads are blocked forever, waiting for each other. You know , order of execution of threads are non-deterministic, so sometimes very difficult to reproduced deadlock situation , sometimes very hard to come out of deadlock situation, so be careful while locking order on multiple object by multiple threads.

Continue reading Theads Deadlock Example in Java

Software Design Principles

What is design principle? it is basically a set of guidline which solve non-functional requirement or functional requirement.
According to Robert Martin there are 3 important characteristics of a bad design that should be avoided:

  • Rigidity: it is hard to change because every change affects too many other parts of the system.
  • Fragility: when you make a change, unexpected parts of the system break.
  • Immobility: Immobility is the inability to reuse software from other projects or from parts of the same project.

Continue reading Software Design Principles