Friday, May 27, 2005

Code compliance checker with AspectJ

My First application with AspectJ.. I developed a code compliance checker that checks for System.out.println in the code and reports itz usage. Can you believe that the following few lines of code did the magic, indeed they did!

public aspect Checker
{
pointcut sopReporter() :
call(void java.io.PrintStream.print*(..)) &&
within(com.trial03.*) && !within(Checker);


before() : sopReporter()
{
System.out.println("!!!!! STOP USINg System.out.println() !!!");
}

}

AspectJ is really cool and I'm lovin it !!!

Monday, May 23, 2005

My Initial Experience with AspectJ

I felt lucky when my manager told me that I need to design and develop a state-of-the art reporting framework for our product, while on my assignment in California. Upon protracted discussions with the product architect, we arrived at an architecture that required numerous patterns and AspectJ. I'm excited on listening AspectJ ;-). I downloaded the required libraries and plugins and started learning AspectJ. Itz fully fun filled experience. Keep watching my blogs as I surge ahead with AspectJ z :-)

Tuesday, May 17, 2005

An Amazing commons lib...

I came across this wonderful library from jakarta commons. It is called as the JXPath. This allows querying object graphs from the collection using a XPath Query syntax. Really amazing. I remeber writing a search component for a paginated list for which I had to cook up a custom query syntax. If I had used JXPath, my task would have been very simple.

Monday, May 16, 2005

My Eclipse is Heavy

Over time, I installed so many plugins that my Eclipse started cribbing despite a 1.2 GB RAM. Today I came across a code review plugin by name Jupiter. It is very good.

I also tried out the XMLHttpRequest object, itz cool.

Thursday, May 12, 2005

Demystified the Black-Scholes Model

A very interesting presentation on the financial services offered by my current employer, made me nostalgic of the Financial concepts I studied while pursuing MBA. I'm highly motivated to do something and decided to demystify the very famous Black-Scholes formula. I must admit, it wasn't a smooth sail. First, I had to brush my understanding of mathematics and relate it to understand the Black-Scholes formula, it was fun filled experience. Today, I learnt a valuable lesson - Technology is an enabler, when coupled with domain expertise, the combination has the maximum value. I've decided to dedicate some time everyday to gain domain expertise.

Tuesday, May 10, 2005

Will be an MS Excel guru soon

Oflate, I'm churning out more spreadsheets and documents than LOC. I've already gained enough expertise with MS Excel and using it for all my planning activities. Perhaps, I'm doing justice to my MBA degree. My professors will be delighted to know about this development. Again, to quench my thirst for coding, I developed a pagination component using Tiles. Anyone interested in trying out this component can mail me ravisk@gmail.com

Thursday, May 05, 2005

Change in Attitude

I was asked by a colleague for some help in implementing a feature of a product. Upon probing, we found that the feature doesn't exist in the product. If such a thing ever happened, I'd have immediately googled for the thing and tried some open source stuff. But now surprisingly I sat down to develop it myself. Change in attitude.. :-)

Monday, May 02, 2005

XDoclet is cool..

Today I tried my hands at the XDoclet using JBossIDE as Eclipse plugin. It has been a very smooth ride and I'm amazed at the calibre of XDoclet. Although, I have heard of XDoclet earlier, I didn't get a chance to work with it.

Sunday, May 01, 2005

My Fingers are itching for code...

Last week has been too boring for me with no major activity. I've been asked to estimate the effort required for customizing a feature for a well-known client. And believe me guys, coding is far better than better than going thru the requirements doc and churning scores of spread sheets. To quench my thirst for code, I developed a small scale web based xml navigator using struts, jdom and JS. Surprisingly, it became instantly popular among my colleagues. Anyone interested in trying this out can mail me at ravisk@gmail.com. Your suggestions/comments shall definitely add value to it.

I expect to do some interesting stuff this week..