Technoholic

Programming and Productivity tips and tricks

Code Review with ReviewBoard

February 06, 2021 — Vinayak Gadkari

reviewboard-icon

Why ReviewBoard

After having tried out various review methods like direct review, reviews over email, pair programming etc, I have found that a combination of tool-assisted code review and direct review (on an as needed basis) works out to be the best in terms of efforts spent and quality of the output. SmartNBear.com:Pros and Cons of Four Kinds of Code mentions the pros and cons of the various types of reviews.

Read more...

Tomcat: Class loaders mechanism

February 06, 2021 — Vinayak Gadkari

tomcat-webserver

Tomcat creates the class-loaders with the parent-child hierarchy as shown in the diagram. The class loading is fairly intuitive. However a pragmatic developer needs to understand it properly to avoid problem with class instantiation since it differs a bit from the typical Java class loading mechanism.

Read more...

Tomcat: Accessing web app classes from shared libraries

February 06, 2021 — Vinayak Gadkari

tomcat-webserver

It is not a recommended practise to have libraries placed in Tomcat’s lib directory to access classes in a web application. However, there are cases when you may want to flout this practise. Tomcat’s class loading mechanism will not allow you to do so since the web classes and the lib classes are loaded by different class loaders. The workaround in such a case is to use a custom bootstrap loader. This loader should be used to load all the application specific classes.

Read more...