string or String? object or Object?
string is just an alias for System.String class which as we all know represent a sequence of characters. It is annoying for someone switching over
from the Java universe to have this confusion. It looks like Microsoft could not find a better way to differ and improvise on Java then come up with these
stupid aliases. Anyways Microsoft would probably call it "Syntactic Sugar". Poor old programmers might catch Programming Diabeties with too much of
stupid syntactic sugar.
There used to be a great debate on how use of Java in college curriculum was more productive, but, was aiding in creating poor programmers. I would love to see what these people have to say about C#. Microsoft which tried very hard to make their language as simplistic as possible, but its annoying at the very least.
Anyways best practices state to use String when referring to the System.String class and when dealing with objects of type String use "string". Some people will
argue about the convenience (that's all i could think of) of not being worried about holding the CTRL key to capitalize the ubiquitos "S" but it's just stupid. I am hoping someone can explain the reasoning to me.
override and new
Another syntactic sugar candy. As though programmers will have tough time figuring out if you are overriding or just hiding. In Java functions with same method signature in children classes automatically override the parent, but C# you can make it very obvious by putting an override keyword. This probably was needed because Java assumes all your methods to be virtual. The use of new and override might be handy in situations where the programmer doesn't know if he wanted to hide or override or inadvertently modifies the signature of the functions. C# would show a nice compile time warning or error depending on whether you tried to override or hide.
C# is more of a Microsoft way of implementing Java as per there standards. If we look at the initial specs for C# we would see how closely they were trying to imitate Java. I will crib about that in another blog.