Month: December 2012

Eclipse Tweak: Show more ‘recent workspaces’

Eclipse Tweak: Show more ‘recent workspaces’

I like to keep my projects categorized into various workspaces when working with eclipse. This help me keep my work organized and keeps eclipse from indexing all the stuff at once. Also, this way it takes less toll on my RAM. Problem Whenever you open eclipse, it greets you with a welcome screen, where you …

+ Read More

Setting Up Sonar

Setting Up Sonar

Even if we know everything about code quality, the human error factor will still persist. There is always a chance of making some error, as we are human after all. Some, if not all such errors can be brought to notice using some quality management tool. There are several such tools/plugin which can be integrated …

+ Read More

When are Custom Exceptions worth it?

When are Custom Exceptions worth it?

There is a common practice of making new custom exceptions which extend Exception class. These exceptions are given names in order to make the code readable. Although these make the code readable, but the overhead something one cannot be forgiven for. To cut the story short, these custom exceptions must be created only if they …

+ Read More

Returning From Finally Block

Returning From Finally Block

Here I am posting another very strange fact about java. I mentioned something about exit points in my short and sweet post http://lekhak.tumblr.com/post/38312047723/single-exit-point-funda In this post, I’ve stated that exceptions can be considered as exit points from a method. Well that is true, EXCEPT FOR ONE CASE. The only exception to this statement can be …

+ Read More

Modifying A Final Variable

Modifying A Final Variable

Have you ever tried to update a final variable? Or it always has been holy and heavenly enough to try and update? Well I came across this piece of information a few months ago, I so wanted to read the whole documentation of Java, hoping to invalidate my assumption that final variables couldn’t be touched. …

+ Read More

Wherez The Passion Programmers?

Wherez The Passion Programmers?

Something that I have felt for a long time was summed up beautifully in a single quote from an unknown author. It said If construction workers made as crappy houses as us programmers make crappy software, civilizations would’ve crumble overnight. Softwares are supposed to be the building blocks for a better tomorrow, the mirror of …

+ Read More

So You’ve Heard of ‘Static’

So You’ve Heard of ‘Static’

Statics must be judicially used. And that too very carefully. One must be very clear of the implementation and must have all the below mentioned points in mind. Reasons why one shouldn’t use statics- 1. They are a permanent resident of the memory stack. 2. They are initialized when the container class initializes. 3. Since …

+ Read More