Pages

Wednesday, February 17, 2010

Awk

Today we will work on AWK command line tool in Unix .This article helps you to have a basic understanding on how awk works and some of the internal structure of awk. Awk is a simple and elegant pattern scanning and processing language. It is created in the late 70’s.the name was composed from the initial letters of three original authors Alfred V. Aho, Brian W. Kernighan, and Peter J. Weinberger. It is commonly used as...
Read More

Friday, February 5, 2010

Java Performance Tips

Today's tip is about performance in Java. Here are a few things to watch out for. It is the little things that matter in the long run, so please pay attention: 1. Loops. Do not use nested loops as much as you can, unless you have to. Nested loops are VERY expensive. 2. For constant length number of items, use arrays instead of ArrayList. Only use ArrayList if you have a variable number of elements. 3. If you are using ArrayList,...
Read More

Wednesday, February 3, 2010

Java Tips

1. We have a options for instance initializers which look like this , @SuppressWarnings("serial") ArrayList simpleList=new ArrayList() {{ add("jagadesh"); add("proKarma"); add("software"); }}; You can initialize the arraylist while constructing it . 2. There is a faclilty in instanceOf keyword.this was implemented in such a way that there is no need to check for null , Consider If(someObject != null && someObject...
Read More