Sunday, January 18, 2009

Tips for a successful code review

Code review is a phase in the software development life cycle (SDLC) where the author(s) of the code, review team and possibly quality assurance (QA) come together to review code. Here are some tips for a successful code review

Mix of Three reviewers:

Who should review the code: A balanced code review team is a mix of:
  1. A hands-on software developer, typically a peer of the contributor
  2. An architect who is aware of the software' future direction
  3. A project lead who can weigh the compromises between time-to-market and the future needs of the software during the review process

Four instructions for the Review
  1. Set clear objective and perspective for the review. A focused review is an effective review. Spend time at the beginning to set clear objective for the review. One could set different objective to different reviewers to cover the review in all perspective. A set of reviewers can have an objective of reviewing the code from the architecture point of view while another set of reviewers can have an objective of reviewing the code from an optimization or scalability point of view.
  2. Set a time limit for your review. During your code review, one might find that the details become overwhelming, and may lose track of the higher-level details that you are looking for. Set a reasonable time limit on your review, and then optimize your review for this limit. If you find yourself spending too much time in any one area (especially if it is not a high-priority area or objective), flag it for later review and move on. Make sure adequate time is allocate for the review
  3. Use the question list. Use a question lists to help ask the right questions to identify problem. The question list is a listing of questions like : Are exceptions and error handling taken care?
    Is the code scalable?
    Are boundary conditions taken care?
    What will happen if the parameter is negative?
    What will happen if there is an over flow condition?
    Does it adhere to coding guidelines?
  4. Review incrementally and iteratively. Limit your reviews to small, manageable pieces of code. This allows you to finish quickly; stay focused, and find a larger number of issues in the code you are examining
Five rules for Reviewers:
  1. Code review should not be a fault finding operation - but is meant to highlight a better way of solving the problem
  2. Input for conceptual: Use Requirements document as an input for getting the conceptual picture of what the code is trying to accomplish
  3. Input for details: Use Design document as input for getting the specific details of what the code is meant to accomplish
  4. Input for coding guidelines: Use a set of coding guidelines. This is often lesser use to a human reviewer and of more use to a tool.
  5. Code review should focus on small chunks of code and should have the objective of assessing the overall solution.

Saturday, January 17, 2009

Still Life Sketch


Inspired by still life drawings by J. D. Hillberry, I tried a sketch of still life with charcoal.

I used Soft charcoal pencil from Camlin brand. I did not use Stomps. These are great accessories that give the artist to obtain a range of effects.

Check out other Camel accessories for charcoal drawing Camlin

Bangalore to Horsley Hills

This is a little known hill station in the southern state of Andra Pradesh. I think the location of this hill station makes it unknown. Its around 165Km Bangalore and makes it a good weekend getaway.


We started from banaglore at 11:30 AM. Took the Old Madras road towards Hoskote. From Hoskote there are two routes. One through Chintamani and another via national highway through Kolar. We decided to take the Kolar road as we had information from other travel blogs that Kolar road being a highway will be a smooth drive. That was wrong assumption. Well as we rode, we encountered pot holes and narrow alleys making our drive a bad experience. From Kolar take deviation towards Madanapalli. As we were carrying our lunch along, we stopped soon after Madanapalli and had a quick lunch. After Madanapalli on Anantpur route, need to take a left towards Horsley Hills. The turn very prominent with an arch with board clearly showing the direction. We were having a jolly time and very happily missed the turn. Nearly 8 km later we realized and had to take turn. Ascend of the hills is not so steep with only a couple of hairpin bends. May be some wouldn’t agree with me as my comparison was with the ascend of other hill stations like Yelagiri and Yercaud.
We reached the AP tourism guest house “Haritha” at 5 PM. Formerly it was called Punami guest house and still is better known as Punami than Haritha. It’s a well maintained and moderately priced guest house. Its safe to confirm the booking before you travel as there isn’t any other alternative accommodation available here. Booking can be done in any of the AP tourism Booking Office in your city. In Bangalore the office is located at Race Course road, above Mahesh Motors. The phone number is 080-41136373. You can check for availability by directly calling the guest house number 08571-279323



The AP tourism accommodation is very good as compared to other state. It caters to guests from moderate to luxury accommodation ranging from Rs 850 to 2000/-. These categories have very catchy names like Wild Winds, Whispering Winds, Wind whistles etc. The governor’s bunglow is located at the highest point and has beautiful view. The rooms are pretty spacious with a clean toilets and an airy balcony. The restaurant serves good south Indian and average north Indian food.

We rushed to the restaurant for some snacks and coffee. The onion Pakoda was awesome and the hot coffee was more than satisfied. Nights are chilly as temperature dipped steeply after 5 PM. Morning was misty even at 8 AM with some rays peeping out at 8:30AM. Breakfast is available till 10:30AM with a good blend of south Indian and North Indian at the buffet priced Rs 65/head.
There’s absolutely nothing to do here. But it has some good view points for Sunset and sunrise. One nearest is the spot behind the governor’s bungalow. Another is the last bend uphill on your way to Horsley hills. Apart from it there is a zoo with a handful of animals. There is a swimming pool and play area for kids. Unlike Kodaikanal, Ooty and Yercaud, Horsley hills its good for a lazy holiday with nothing much to see and do.

We spent the next day just roaming around the resort and taking rest. We then started at 11AM from Horsley hills and decided to go through Chintamani. The road was better than expected and we reached Bangalore at 2:30PM. Had lunch in a Chinese restaurant in Kasturinagar before we proceeded home.

Where to stay:
Haritha resort: 08571-279323
Book via AP tourism: 080-41136373
You will have to go to AP tourism office, pay cash and get the voucher for confirmation

How to Reach:
Bangalore->Hoskota->Chintamani->Madanapalli->Horsley Hills ( 165 KMs depending on from where you start in Bangalore)


View Larger Map

Saturday, January 10, 2009

Portrait of a Man with Indian Turban

His Turban!

The crown inherited from his ancestors
Exhibits the respect earned over generations
Epitomize his most revered tribe
In recognition to his deeds and service
Adorns his head with pride & dignity
His Turban!

In Hindi, a turban is called a pagr, Sikhs call it dastar while it called peta in other parts of the country. The color, size, type and style of the turban are very significant. In India the turban is not worn as a head gear for protection, but it symbolizes his identity like his faith, status in the society etc.

Sikh Turban: The turban is usually associated with Sikhs. They are required to wear a turban to manage their long hair as cutting their hair is forbidden.

Rajasthani Turban: Jats and Rajputs wear distinctive turbans. Rajputs traditionally wear coloured turbans whereas Jats wear sober white colored turbans. The Marwari clan wear light coloured turbans.

Maharastrian Pheta: The turban worn in the Indian state of maharastra is distinctive and is called Pheta. Peasants usually wear the white turbans whereas the saffron colored phetas are worn to mark the special occasions like wedding.

Mysore Peta: This is a special turban given to people in honor or recognition of their work as an award. Also its worn during some special occasions such as marriage.

This sketch was done with a 0.5 mm micro tip pen.

Tuesday, January 6, 2009

Portrait – Sketch with Charcoal

Portrait drawing with charcoal look very attractive as they are done using pitch black charcoal that produces a contrast picture with good depth
Here is one of my first few portraits done completely with a charcoal pencil.
Before starting the sketch make sure you have the following items handy:
  • Different grades of charcoal pencil – hard, medium and soft. Camlin pencils are commonly available ones
  • Charcoal eraser is different from a normal eraser that are used for graphite pencils
  • Fixative to avoid smudging after the sketch is complete
I sketched an outline before getting into the details of the portrait. Its important to sketch the outline of the eyes as they are most important part of a portrait. The spacing between the eyes is very important. After sketching the outline of the eye, I normally take a 2-3 minutes break and come back and take a re-look, make some adjustments in the position and size. Make sure they are propionate and spaced appropriately. Then proceed with sketching eyebrows which are the supporting feature of the eyes.

Mark the highlights so you can revisit while working on the details of the picture.
Start working on the details of the sketch. After adding the strokes, I started to blend the shading with a help of facial tissue. In some places, I used an ear bud to blend and get a smoother finish.

Some of the other tools that can be used for blending are felt pen, blending stump and papers.
I took around one hour to complete this sketch. After completing it, I took a break for 10-15 minutes. Take a re-look to make some finer adjustments before calling it complete.

Remember to spray the fixative after completing to avoid smudging!

If you are interested in trying out some serious charcoal and pencil drawing, try this book - Drawing Realistic Textures in Pencil by - J. D. Hillberry

A mini tutorial on Charcoal and Pencil drawings is available here by J. D. Hillberry

Wednesday, December 10, 2008

The Perfect Brainstorm

Ideas here are not “my own” but they are ideas which I strongly believe in!
Lessons in creativity from IDEO, America’s leading design firm.

The ideas below are inspired from the book The Art of Innovation – Tom Kelly with Jonathan Littman.

You can deliver more value, create more energy, and foster more innovative solutions through better brainstorming. If you want to keep in shape, you have to exercise your brainstorming muscle more often ( than once a month ).


The seven secrets of better brainstorming:


1. Sharpen the Focus:
Good brainstorming starts with a perfect statement of the problem. This can be as simple as a question. A brainstorming without a proper problem statement is like a company without a clear strategy. A good problem statement helps in getting the people back into track easily. It avoids wasting a lot of energy wandering aimlessly.


The problem should not be too open like “how can we make a better feature than a company X”. At the same time the problem should not be too narrow and already presume you know the answer like “how can we provide IM offline messages to mobile via SMS”.
“How can we accelerate the time-to-first result for customers search engine via dial-up modem” could uncover innovations that could potentially yield competitive edge on what you are looking for.


2. Playful rules
One of the worst things that can hamper a brainstorming session in criticizing and debating on ideas that comes up. This can break the energy of the session pretty quickly. The facilitator should be good in turning aside critiques without putting off the critiquers completely. Stick the walls of conference rooms with rules of brainstorming written prominently. The facilitator could ring bell when participants try to turn a brainstorming into a normal meeting


3. Number your ideas

Numbering the ideas that bubble up during brainstorming helps in two ways. First it motivates the participants before and during the brainstorming session. “Let’s try and get 100 ideas before we leave the room” as an example.
Second it’s a great way to jump back and forth from idea to idea without loosing the track of where you are.


4. Build and jump

High energy barnstormers often follow a series of steep “power” curves. The momentum builds slowly, then intensifies and then starts to flatten. The facilitator should nurture an emerging conversation with a light touch in the first phase and know enough to let ideas to flow when it intensifies. When energy fades, the facilitator should switch gears and try to get the next steep curve of energy by introducing small variations.


5. The space remembers

Write the flow of ideas in the medium visible to the whole group. This is not capturing meeting notes but capturing ideas so that the group can see the progression and return to those that seem worthy of more attention. The space should not be small so it makes you to erase ideas to make room for new ones. As you rapidly capture ideas, make a mental note of ones that are worth coming back to during the build and jump. When you return to the spot on the board/wall where the ideas are captured, spatial memory will help people to recall the mind-set they had when the ideas first emerged.


6. Stretch your mental muscles

Time is short and people are busy. It’s worthwhile to burn some time in warm-up. It helps in certain circumstances when the group has not worked together before, when the group has doe not brainstorm frequently or when the group seems distracted by pressure or an unrelated issue.
One type of warm-up is to do some content-related homework. Many a times it has proved that the group that did content-related homework before a brainstorm definitely out performed a group that came that comes to brainstorming session cold.


7. Get physical

Good brainstormings are extremely visual. They include sketching, mind mapping, diagrams and sticky figures. The best brainstorms are often physical. They move beyond the two dimension and push the three. Move around, get things to the table, and get competitive products, promising technologies that could be applied to the problem.


Try these 7 secrets and you will start seeing better results faster.
Follow them meticulously and you will be a “brainstorming” master!

Good luck!

Saturday, November 15, 2008

Bangalore to Pondicherry ( Puducherry)

The nomads again set out for another journey but this time it was a planned one!!!.
Well we have to do it as we have a little one.

Pondicherry was not a very preferred destination for me. We had planned to visit this place a couple of times before and always ended dropping the idea. We had a notion that Pondy (as its widely known) is haven for bachelors who would throng the place to enjoy a bay side drinking spree party. So we thought that it’s not an apt place for a couple or a family vacation. But my hubby was persistent that he has to visit it once. There was another point with which he was able to convince me that it’s a drivable 350 KM from Bangalore. So finally we set out for Pondy.

The routes to Pondy from Banagalore. :
Bangalore-Hosur-Krishnagiri-Chengam-Tiruvanamali-Ginge-Tindvanam-Pondicherry

View Larger Map
We started at morning 9 am. Reached Hosur at 10:30 am and stopped for breakfast. After a quick stop we proceeded on NH4 towards Krishnagiri. While we were close to Krishnagiri, we were watched out to take the turn to the road to Chennai. We had to take the immediate right turn to NH66. If you hit the toll station then it means you have missed the turn. Well, I know this as we very promptly missed to take NH66. If you happen to miss the route then you can go via Tirupattur and meet Tiruvanamali. This road is not that bad but we had to travel an extra 55KM for the mistake.

As we took the Tirupattur route we were completely lost, there were no sign boards and we didn’t know where we were heading to. Then to our rescue came our new Asus P750 with GPS. Just sent an SMS to enable the GPRS needed by the Google Navigator that we had installed just before we started our journey. We could then locate ourselves heading towards NH66. My gizmo freak husbands PDA phone was of great help and he was short of words glorifying the technology and the phone!! He tried Google Maps first which was not as good as the Google Navigator. The all India city map from Satguid that comes from with Asus P750 is of no help once you are outside city limits.

With this round around journey we reached Tirunamamali at 2pm. As my daughter was hungry and we stopped at a hotel for idlis. As idlis were not served at lunch time, we just packed meals and left. Half past two we drove down to a shady tree across the road to gulp the packed food. Arunachalam Temple was in our list but planned to visit it on the way back.
Close to 4pm we reached Gingee, the fort town. One cannot miss the scenic view of the ancient Gingee Fort as we get a view of them on either side of the highway as we enter the town. With a short photo shoot of the fort we headed towards Tindivanam.

We reached Pondicherry at 5:30 as planned. As we enter this French colony we can see high raised dividers on the road. Our booking at Lotus Comfort was confirmed at 12 noon. This is a new hotel on Sardar Vallabhai Patel Road. Its location is good as it’s a 5 mins walk to the promenade and French colony. The rooms are small but with all amenities and well maintained.

Places to visit in Pondicherry:
The next day we set out to see the promenade. The promenade at Pondicherry would be a disappointment for those who want to splurge into the bay and enjoy. The view of the waves relentlessly surging to reach the rocks is just spectacular. Every tide of the sea has a tale to say, but ebbs away shying away from the invading world. A drive across the promenade is memorable.



View Larger Map

Next we set out to Chunnambar Back Waters. This was a much awaited destination as my one year old daughter is extremely fond of playing in water. It’s around 8 km from the city, on the Cuddalore road.

View Larger Map
This is an interesting place as we had to take a boat ride to reach the sun kissed beautiful beach. Yo
u may not fine much of a crowd here. The sea here is very fierce and you can find few guards watching you!! Pranathi was so excited that we had a tough time putting her swim suite. This is surely one of the best Indian beaches I have visited. Clean and not too crowded, just the one you are looking for.
On the way back visited the Anglo French Textile. It’s a good place to shop for cotton material.
Aurobindo Ashram Auroville seem to be a good place to visit. We did not visit either of them. One is suppose to keep silence in the Ashram and kids are not allowed.
The Aurobindo Paper Mill is another interesting place. Its situated on SV Patel road a few feet after Hotel Lotus Comforts. You can find a variety of hand made paper of good quality. You can also pick up some simple gift items from this place, all paper work!!!.

Foodies:
The French area has a few good places to dine. The Promenade is the best place for fine dine. It offers b
uffet as well as ala carta. If you go for buffet don’t miss the special desserts on the shelf. It’s a hotel of Hidesign group.
Pizza Hut again in the French area is good. But don’t expect a French touch to your pizzas. Pi
zza hut pizzas taste the same everywhere!.
Anand Bhavan in the market area is a good place for south Indian breakfast and snacks.
The restaurant attached to the Executive Inn is also a good place for buffet breakfast. They also h
ave good rooms.

Places to visit around Pondicherry:
Chidambaram, the city of temples is 70 Kms from Pondy. But the more interested and fascinating
destination for lens men like my husband is Pichavaram. Pichavaram the second largest Mangrove forest in the world, near the temple town of Chidambaram , is one of the unique Eco-tourism spots in South India.



View Larger Map


It’s a natural 500+ years old mangrove forest. The boat ride across the mangrove needs to be booked at the counter. As a single boat needs minimum 7-11 members you may have to wait for sometime. However if you can shell out some extra money then even a group of 5 can be arranged. The trip in the mangrove is appr 30 mins where he could show you a few canals and brief you with geography and history of the place. Again extra bucks can give you a longer ride deeper into the canal giving you ample opportunity for photography.
The government restaurant at Pichavaram provides one of the best lunches. We had a sumptuous lunch here for just Rs 35.
At 4 PM the Chidambaram temple doors open. It’s not the right time to enter here as the main temple in this temple complex opens its door at 4:45PM, just keeping us waiting. I was really disappointed here not due to the wait hours but every pujari is upto making contacts. As this temple run privately every pujari is busy asking you, where do you come from, give me your address so that we can send you the Prasad every month at your door step. Give them the address then comes the surprise: Rs 50/month. You can pay for one month upto one year!
The booking for accommodation at Chidambaram needs to be early as there are a few ones. Hotel Saradharam is a good hotel to stay.

Mahabalipuram is another bay bait for weekenders from Chennai. The shore temples are enchanting. However we didn’t visit there as we had already visited during our Chennai trip. But it’s a better option to visit if Pichavaram doesn’t fascinate you.



Back to Bangalore.

We started back from pondy at 9:30am. We reached Tiruvanamalai at 12pm. Tiruvanamalai, famous for its Arunachalam Temple is on NH66 between Bangalore and Pondy. Its very nice temple to visit and worship. The hill at the backdrop of the temple is good to view. We were out of the temple at 2 pm and set out to Bangalore with no more stops!. We were done and very tired due to the scorching heat. We reached home at 5pm.

We took back tons of memories and photos and the last word we had about the trip was “We love PPT (Pondy, Pichavaram and Tiruvanamalai) and will visit it again”.