Re:C# 11 Preview Updates – Raw string literals, UTF-8 and more
by mikece on Sunday May 22, 2022 @07:57AM
(#31467163)
I have been working with .NET since the heady, early days when the web framework was being called ASP-NG (next gen) and C# had not yet been given it's official name. I've written millions of lines of C# but sometimes I think it would behoove me to start over with C# as though I had never seen it before because there are things that have been added to the language in the last few years that I had no clue were there. Is there a course or book or blog post series along the lines of "C# for people who are writing C# like it's 2010"?
[ Parent
| on HN ]
Re:C# 11 Preview Updates – Raw string literals, UTF-8 and more
by apetrovic on Sunday May 22, 2022 @08:31AM
(#31467420)
I was in a similar position, worked with C# from the beginning and recently switched to non-MS stacks. I found official documentation [1] easy enough to follow - I started with "What's new in C# 8.0" to the latest version.
[1] https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csh...
Re:C# 11 Preview Updates – Raw string literals, UTF-8 and more
by elorant on Sunday May 22, 2022 @08:36AM
(#31467467)
John Skeet's "C# In Depth" series presents how the language changes from one version to the next with code examples.
Re:C# 11 Preview Updates – Raw string literals, UTF-8 and more
by Aisen8010 on Sunday May 22, 2022 @09:36AM
(#31468037)
C# In Depth is indeed a good read. Unfortunately, the C# language is getting more and more complex, especially when you compare it to Java.
Re:C# 11 Preview Updates – Raw string literals, UTF-8 and more
by pjmlp on Sunday May 22, 2022 @10:44AM
(#31468721)
Java is catching up, and what appears easy at the language level, gets extra knobs at the runtime and lower APIs.
Re:C# 11 Preview Updates – Raw string literals, UTF-8 and more
by elorant on Sunday May 22, 2022 @10:26AM
(#31468505)
Sure, but it's backward compatible too. You can write C# 4 style code while in the latest version of .net/visual studio.
Re:C# 11 Preview Updates – Raw string literals, UTF-8 and more
by floucky on Sunday May 22, 2022 @10:28AM
(#31468526)
Resharper helps a lot with that, making useful suggestions.
Re:C# 11 Preview Updates – Raw string literals, UTF-8 and more
by mikece on Sunday May 22, 2022 @03:13PM
(#31471657)
I finally started using ReSharper for the first time and was blown away by the suggested refactorings/changes. I had no idea some of this stuff was even possible in C# -- and then more astonished to learn it had been there since 2012.
Re:C# 11 Preview Updates – Raw string literals, UTF-8 and more
by jbluepolarbear on Sunday May 22, 2022 @12:41PM
(#31470080)
I’ve been using C# for about 12 years. I look at the new features and think of places where it would clean things up or how I could build a new feature. An example: I used readonly structs to replace regular structs that were being passed in by reference (boxing) and the new ref for readonly is a one time cost, both speeding up the system and reducing garbage generated.
Re:C# 11 Preview Updates – Raw string literals, UTF-8 and more
by DaedPsyker on Sunday May 22, 2022 @08:44AM
(#31467535)
I don't know if they have videos beyond 8 (the highest available to me in unity) but I founds Mads Torgersen own walkthroughs very good and succinct.
https://m.youtube.com/watch?v=VdC0aoa7ung
Edit - sorry c#9 seems to be available in unity now