News for hackers. Stuff that matters.
Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by tonyedgecombe on Friday July 16, 2021 @09:02AM (#27855783)
C# has grown quite large over that period however there are large areas of the language that you can safely ignore. Your code might not be as elegant but you won't get tripped up like you would if you don't know C++ well enough.
Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by pjmlp on Friday July 16, 2021 @09:42AM (#27856139)
In which C# version have the foreach variables changed their semantics?

Just an example of a possible C# pub quizz question, I have other possible ones.

Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by tonyedgecombe on Friday July 16, 2021 @09:59AM (#27856276)
I think it was 4.0 from memory.

I'm not arguing that you don't need to think about your code. The early behaviour was what I would have expected, the change was sensible but it's a long way from what you have to deal with in C++.

My experience with C++ was a lot of study and practice before I started my first project whereas with C# I was able to dive right in to a substantial piece of work and learn the language along the way.

Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by pjmlp on Friday July 16, 2021 @10:22AM (#27856491)
Another example on how learning the language along the way gets to unexpected results, memory leaks in event handlers, or how HTTPClient doesn't really handle connection pool the way it should in the .NET Framework variant.