Consider the two code segments below. Which one is better and Why? If you have any other idea, please do mention. Where can I find answers to coding p
Personally I prefer sample 2. It groups those items that will not result in the report being generated together.
As far as general coding guidelines, the book Code Complete (Amazon) is a good reference for coding style issues.