Charles Bastille
2 min readSep 26, 2021

--

I gave it 16 claps but mostly because I got a kick out of the fake interview. I'm not at all fluent in C++ so I can't speak to the efficacy of the snark, but to me it doesn't matter, I always enjoy that kind of stuff.

But let's take this article apart a bit so you can understand the annoyance of so many commenters.

Re: the switch statement: All that is happening there is that they are borrowing a few operators from the functional patterns we see so much of these days. It's elegant.

There are much stronger uses of the pattern in Java and even JavaScript these days. I haven't used C# in probably a decade but I suspect they are doing what Java is doing, and borrowing a bunch of functional patterns. The example you show in the switch statement is not that. It's just syntactic sugar.

I find the new, robust functional patterns very useful, especially when it comes to grouping and extracting data.

And I'm not sure about the resistance to the new() keyword, either. In fact, to me, it's intuitive. A little less typing always makes my aging fingers happy.

You also say "I don't know why you can't use a normal property". Java has introduced all kinds of things like this, some through annotations but in other ways, too, and frankly, I sometimes also resist because I'm in a hurry to get something done. So I go back to the familiar. So my question is, did C# 10 deprecate the older property idioms? I kind of doubt that. So just use them until you get familiar with the new stuff.

That's sort of Development 101, though, right? Ease into change you are uncomfortable with, but if you want to stay relevant, embrace change.

I'm in my 60s but I embrace language change not even so much because of the technical giddyups you get but because it's fun. I tried to semi-retire and keep getting pulled back in because I keep myself relevant and willing to not just embrace change but devour it.

If I had one piece of advice to younger developers and programmers it would be obvious to most people reading this but I'll repeat it: stay on top of changes to your area of expertise, and find new ones, too. Surprise yourself by taking on the unfamiliar with gusto.

Thanks for the article. Sorry so many commenters are so harsh, but hey, that's kinda how it is in this biz.

--

--

Charles Bastille
Charles Bastille

Written by Charles Bastille

Author of MagicLand & Psalm of Vampires. Join me on my Substack at https://www.ruminato.com/. All stories © 2020-24 by Charles Bastille

No responses yet