John, I know you are probablyalready aware of tmost of this, I posted this for the general community so don't think I have underestimated you, please ...I know it's type safe and everything but it's the little things that seem to be getting at me for some odd reason. Like VAR (because you used it in your example Gile). I'd much rather write out something like:
Foo
<string> myFooInstance
= new Foo
<string>("blah");
instead of
var myFooInstance
= new Foo
<string>("blah");
I mean I understand what the compiler is doing with VAR and I know it's type safe but I just cringe when I see this kind of stuff for some reason but, I'll get over it.
I don't use
var a lot. This
SO post sums up my approach to
var, although I don't have a problem with your example. You get used to reading it fairly quickly. There's a
longer debate about it but the brief version sums it up well. Microsoft use
var a lot more than I do, I don't like it much because it's harder to read code in places like Github, here etc. where there is no Intellisense. It makes perfect sense for anonymous types though. If you don't like it, Resharper can automatically fix all the var in your code.
As far as Swift goes; Microsoft is building a compiler to compile Swift code. ...Swift code (apple stuff now) is a bit different then the MS ecosystem stuff; it's compiled and built with the Clang compiler (the compiler that puts all others to shame). It was the compiler that, I'm sure you've seen me post about, that sorta "understands" your code (think "intelliSense" but contextually). The IR code Clang produces is very, very "tidy" -e.g. You write C++ code and you can take the IR code from Clang and generate JavaScript code from it (there are backend code generators now which is very, very cool stuff). Basically, Swift is planned to be supported by Microsoft because of the plan to support a vast range of other stuff (namely: android & IOS).
Now, I have to get back to fighting with VS Community and unit tests. Later and thanks guys.
Swift compiler? Intersting. Seen
https://xamarin.com/studio ? The new Microsoft .NET does support Android, iOS etc and runs on Mac & Linux via DNX. I don't know enough about compilers to say anything meaningful other than to mention
Roslyn seems to b well received. Transpiling C++ to JavaScript is damn impressive.
As far as unit testing goes, Microsoft has gone for XUnit in all their big projects. The
ASP.NET Engineering guidelines are worth a look at to see what they are doing, both as guidance and also to see what you can expect in most of the code you will see from. Obviously you can take it or leave it but I, personally, tend to take guidance from the frameworks I am writing against so I am familiar with their style.
<snip>
FYI, John Skeet is the Tony Tanzillo of .NET (but much more polite), everything he does is advanced and brainsploding.
Tony is the Tony of .NET. ...I think you are trying to say that Jon is a good programmer (I understand that; I googled each of the authors before taking the class) but that was a very odd comparison.
BTW, what is your obsession with Tony's "politeness"? Almost every example I've ever seen Tony give was complete and concise; he spent time making sure his points are completely clear. You should see some of the threads in the Unix newsgroups; they are chalked full of truly genius programmers (the ones responsible for things like "how your computer connects to the internet" or "making sure your online banking is safe") who do not beat around any bushes whatsoever.
I never had a problem with Tony but you're right (on both counts), it's not relevant. And, yes, Linus Torvalds' demeanour is infamous and I am sure it is not uncommon. In a cruel irony (for Linux fanbois) I have found the .NET communities to be overwhelmingly civil.