Tag Archives: C#

Forcing indentation: yes, it is a good thing

At work I’m trying to get some of my colleagues to give Python a try. Every time I bring up the subject I have to hear things like but there are not brackets … and what’s up with the forced indentation?

Needless to say I always reply that indentation is good as the end result is usually code that is easier to read and that once you have blocks of code defined by their indentation level you don’t need brackets anymore. But no, they will have none of that.

C# scopes — am I missing something here?

Last time I checked, the scope of a variable drew the line after which it ceased to exist. For instance, in Java, when you defined a variable in a for loop, the minute the loop was over the variable ceased to exist…