First Impressions: C♯
I will be learning C♯ over the next year or so, and since I am almost a week into learning it, I thought that I would post my first impressions here on this blog.
C♯ is a compiled language developed by Microsoft that looks a little bit javascript, and a little bit like Rust (If you haven't heard of rust yet, I have written up a first impressions post here). Like rust, it has a type system, so you can't set a variable with the type int
to a string
. This type system is not a confusing, though, since it only has a single type for strings
(rust has two - one that you can change and one that you can't) and you can convert between the different types quite easily (e.g. int.Parse()
converts a string to an int
).
The brackets syntax is almost identical to that of Javascript, except C♯ has class
es and namespace
es too (I don't really know what those do yet). Indentation also seems to be fairly important, which is perfectly fine by me since it improves the readability of your code.
Looking around on the internet, it seems that C♯ is tied in with Visual Studio quite closely. This might cause problems in the future, because I don't really want ot install visual studio (express) on my computer because of it's file size (the installer alone is > 600MB!). Hopefully I can continue to use the csc
C♯ compiler I found in the .NET 4.0
folder on my computer as my code becomes more complex.
All in all C♯ looks like a good introductory language to the world of compiled programming. The syntax is straight forward and easy to understand so far, and it is kind of similar to Javascript, which eases the learning process considerably.