I think making code self-explanatory, without need for comments all around the place, is a big advantage. But could you suggest methods and techniques how to reduce the amount of code, make it more readable and understandable.
Also what do you think are the good techniques for reducing big if statements
and nested for loops
and other structures which sometimes are hard to understand at the first glance.
Here are few of the things I thought would my C# application more readable and self-explanatory:
- Converting
foreach
loops into LINQ statements. - Using anonymous function to reduce amount of event handlers.
Any suggestion and/or comments are very welcome. Also suggestions about the books which covers these topics would be appreciated.