“Cheat” your code as often as you can

From time to time I’m trying to take a look over some source code from open source projects guided by curiosity or by trying to understand some unclear things regarding that particular project. Everyone knows that scanning code created by others is a good practice, especially if it is a good quality code on which are based projects which are used on a large scale in production environments. For example yesterday I was looking over some SignalR source code and beside the fact that I solved my problem regarding some misunderstandings, I discovered some new stuff (at least for me) like volatile and checked C# keywords, or when should we pay attention to object allocation regarding small object heap and large object heap. I've seen other approaches to the problems which I've encounter in the past and in generally another way of doing and organizing things. Accidentally I discovered a small coding bug which I will report today, in this way I will make a small contribution to the project quality, and the list of benefits can go on and on.

Basically the idea I’m trying to emphasize is: if you want to become a better programmer, you should take a break from your code and spend some time (to cheat) with code created by others.

OpenSource C#
Posted by: Ion Sapoval
Last revised: 31 May, 2013 09:41 AM

Comments

Your Comments

Used for your gravatar. Not required. Will not be public.
Posting code? Indent it by four spaces to make it look nice. Learn more about Markdown.

Preview