Monthly Archives: September 2008

Visual Studio IDE Tips & tricks: ShortCuts for playing with blocks regions

How many times we get fed up of all the cluttered code? Best thing to do is put regions and collapse the regions to free up some space…

  • Fold/Unfold the current code block – Ctrl+M, Ctrl+M
  • Unfold all – Ctrl+M, Ctrl+L
  • Stop outlining – Ctrl+M, Ctrl+P
  • Fold all – Ctrl+M, Ctrl+O

Tags: , , , , , , ,

Funny !! Marc Faber’s comment on US Economy!!

Came across this comment from Marc Faber has gone back to the basics with his comment !!!

The federal government is sending each of us a $600 rebate.

If we spend that money at Wal-Mart, the money goes to China.
If we spend it on gasoline it goes to the Arabs.
If we buy a computer it will go to India.
If we purchase fruit and vegetables it will go to Mexico, Honduras and Guatemala.
If we purchase a good car it will go to Germany.
If we purchase useless crap it will go to Taiwan and none of it will help the American economy.

The only way to keep that money here at home is to spend it on prostitutes and beer, since these are the only products still produced in US.  I’ve been doing my part.

haha the funniest i think :))

to know more about Marc Faber visit his site:

Copyright © Shounak Pandit

Leave a comment

Posted by on September 23, 2008 in Bouncing Wall!!


Tags: , ,

Best frequency for code review… how to code review

Had an interesting discussion with a peer while coming back home..and it got me thinking..  he was complaining about the quality of code by his developers and was inquiring what approach I follow in my projects.

To tell you the truth I don’t follow a specific time frame or frequency for performing code review.

Just to give you some food for thought

The frequency of code review should be directly proportional to the number of developers working on the project.

More the number of developers on a project more should be the code review frequency.just to give you a rough idea How many lines of code do we write in an hour? or in an day? we write lots of lines of code… multiplied by the number of developers is the lines of code you will have to review !!!!!!!

He was arguing about the time a PL/TL gets to do code reviews. well yes indeed he was right in his argument, we as PL’s definitely do not get much time but who says we have to do code reviews every time till the release of the project?

The way the developers will write code in a project depends directly on the way they write code in the first couple of weeks of the start of the development phase.If you get them into the habbit of coding it right from the start of the project i guess we wont have to monitor much.

Of course that depends on the quality of the resource 🙂

The way i do code reviews is through automated tools & mentoring of good developers to perform code reviews on the team mates.

Naturally PL’s dont get much time to get deeper into the code review process but yes all they have to do is

  • Identify the good resource who has a good style + approach at coding and mentor him/her to get into your shoes of performing code reviews.
  • Dont completely rely on that resource you do your surprise random code reviews.
  • Encourage peer reviews amongst the team. This will in turn ensure small coding issues get addressed at your subordinate level.
  • Utilize automated tools for code reviews there are loads of them in the market
  • There also are some preventive code review tools which get integrated into the VS IDE as a plugin and correct you with regards to naming convention/ style to a certain extent while you are writing code.Makes sense doesn’t it? to be told what not to do while you are doing it rather than being told after you have already done it and moved on to the next piece of code.
  • Generate a check list for coding standards.

Copyright © Shounak Pandit

These are my views, my thoughts need not necassarily be the same as yours….. 🙂

Leave a comment

Posted by on September 19, 2008 in .NET, Management, Problem Solving


Tags: , , , ,

Effective Code review or How to execute a Succesful code review

Code Review…. The dreaded words for a newbie ears ..or in most of the cases even for the experienced developers!!!!

How to code review ?
Over the years of being the code reviewer or me being the reviewee have noticed a few things which i feel are worth mentioning for an effective and pain free code review to happen.

What exactly is a code review i guess everybody knows that , ill try and point out some of the things which should be taken care of for a productive and pain free code review to happen.

  • Objective: Make sure the objective behind the code review is well known to the developers involved: Developers need to understand that the code is being reviewed and not the developers ability to code.
  • Coding Standard: Make sure you have a predefined set of coding standards circulated with the team before coding. Developers wont have any clue as to what you as a reviewer feel is the right coding standard unless they know what needs to be followed before they start coding.
  • Dont Accuse:Code review shouldn’t be used to accuse the coder, but to point out the improvement areas in the code.
  • Ask / Discuss: Ask reasons for deviation that have happened than assuming: Its better to let the developers explain the reason for deviation rather than assuming.Lets face it many time there are some theoretically correct statements which cant be possible practically.Hence ask reasons for deviation, understand the developers thought process.
  • Listen: Remember the coding approach you use isn’t like the ten commandments.Just because you feel reaching point C is better by going via point A not necessarily everybody will think the same.Let the developer explain why he felt going via point X was better as per him.
  • Understand: Remember the code review is about the coding style not about you.: Dont get offended if there are any improvement areas in your coding.Keep one thing in mind the person reviewing your code has also gone through the same phase as you currently.and till the time one understands the improvement areas we wont be able to improve and do coding expected by a seasoned developer.
  • Contribute: The coding standards wont contain all the development situations we face under the sun Hence contribution from the developer is absolutely necessary.Just because the person reviewing your code is a TL or PL doesn’t mean he is right all the time.Express your view, understand the reasons why there are improvement areas.Keep one thing in mind we do those things best in which we believe in!!! hence if you do not understand why we are doing certain thing in a certain expected way you will never do it correctly so discuss and understand.
  • Appreciate: Code review isn’t just about finding improvement areas. Utilize it also to appreciate someones coding style/Approach.
    Lets face it whether we like it or not we have to go in for code reviews some because their leaders make it mandatory while some because they understand the importance of code review.As long as code review happens in the right manner and for the right reasons it is always healthy for the complete team.

    Have seen or rather experienced developers who would argue over coding standard violation with pointless reasoning.reasoning that would be treated as childish excuses.Listen and explain to them anyways try and make them understand.Ofcourse in many cases you as a TL/PL need to put your foot down or do a little booting to make the developer sunderstand that crappy excuses wont be tolerated.

    Also one good thing to do beyond the coding standards document of what to do is to create a coding standard checklist for developers to check against as when they are coding.

    Copyright © Shounak Pandit

    These are my views, my thoughts need not necassarily be the same as yours…..


Tags: , , , , ,

To Chrome or not to Chrome.. Google chrome features

Google has done it again… a product built on the problems of the browser users. 

To get a good idea about the features of the browser visit the features video site. The browser isn’t a complex browser Google  has stuck to its simplicity but effectiveness moto once again and delivered.

The Features list includes:

One of the best feature from the list above is the <Crash Control>. This was the most awaited should have been implemented feature to be implemented in a tabbed browser.
How many times has one gone through situation where one had a hell lot of tabs/sites open in a tabbed browser and one of the site crashed and took the complete browser along with all the other sites down with it. kinda frustrating isnt it? and if you are like me you will have too many windows to multi task..
Google promises it has taken care of this by creating seperate sandboxes for each tabs. people developing code in the .NET environment will know what this is and how useful and a life saver it is. inshort each tab has its own seperate process to handle and service the requests.
Hence if one site/tab crashes the process related to that tab only crashes and not the complete browser process.

Heil Google!!!!

Another great feature implemented is the way the new tab opens.. it will open a tab with the most visited sites icons in it. All one has to do is click on the one of th emost visited sites. else there is also links on  the right hand side in the new tab to click on the new bookmarks added.

A pretty good and well though of feature..usually we visit some sites again and again like our mails, homepage etc which is easily accessible in front of us once we open a new tab.
One more worth mentioning but not on the features list is the <Chromes very own task manager>
It displays the CPU usage / Memory per tab and gives you the power to get rid / kill a rogue tab taking up memory /cpu time and slowing your machine.
To understand the tech behind Google Chrome go through the site explaining the technical details behind Google Chrome Its worth a Read.

© Shounak Pandit
Leave a comment

Posted by on September 14, 2008 in Bouncing Wall!!


Tags: , ,

Google Chrome the new hottie in the market ..

Google chrome just another browser or the mother of all browsers?

Google has done it again..another product/service in the market that has caught all the attention… yeah there are some negative feedbacks especially by the German media on the same too but hey whats success without some criticism??

The argument they have setup is pretty much the old stuff… personal data going to google with respect to the auto suggest feature explained more in detail here

 Google did bend to the criticism and declared they will anonymise the data within 24 hrs of collecting it..but the speculations will always be there..don’t understand the logic behind it… guys its a open source just dig into the source and satisfy your speculative minds ( if you are upto it 🙂 )…. rather than just barking into the wind…

yeah its a bit risky giving a Beta to inexperience non techie users its like giving a child a Bazooka !! but am sure the Beta isn’t a actual Beta in the scientific terms its definitely a well tested and tried version of the product.we can trust google on this..


© Shounak Pandit

Leave a comment

Posted by on September 14, 2008 in Bouncing Wall!!, Problem Solving


Tags: , , , , , , ,

Code Review / Peer review…..

One wonders ….Why in the name of God would one want to spend (waste as some people say) time on performing a code review on any piece of code which we/peers have written and seems to be working properly and providing the functionality

I remember back then when i was an intern and i was assigned to a project in which my PM was a guy working in our US branch…people having worked with US bosses might be knowing thr are 2 types of techies our there… one who have less knowledge than you and the other lot who has so much knowledge than you that they make you feel like you are learning the alphabets of development while they are shooting out complex phrases after phrases of sentences….

man how i hated that guy i can still recall his words “Shounak, Dont even show me the functionality i dont care about it, first make sure you have it as per the coding standards” and i used to think what kind of a weirdo have i got as my boss ..he doesn’t even want to see if the requirement has been met but cares about some stupid code review…..and i used to laugh at his code review obsession…

but over the years as i grew into a techie…into what they call a seasoned developer ..i realised the importance of code review

Code review isnt a tool to find mistakes in others code…its a tool by which one ensures the code is going to meet the standards expected of a seasoned developer.

There are various technical ways of achieving our requirements…or rather let me put it this way there are abundant ways of screwing up the way you meet your requirement.and there are some ways in which you meet the requirement in one of the optimum ways…and code review is a tool that helps us walk on the optimum path or close to the optimum path…

for an example check my post on string builder usage vs string concat… at String Builder Vs String concat/

Code reviews are important for a developer to understand how to keep improving his coding style ..

there are various good tools used for having automated code checking one that i have used extensively in my development days is FxCop and one more that i can’t recall the name of…these were tools which would use the assembly n metadata as source and parse the assembly for any coding style /optimization errors

will try and write up about one of them soon


© Shounak Pandit

Leave a comment

Posted by on September 11, 2008 in .NET, Management, Problem Solving


Tags: , ,