logoalt Hacker News

I Am Behind on C# 14 Features, and I Can't Prove It but Does It Matter?

7 pointsby sukhpinder0804last Friday at 1:24 PM6 commentsview on HN

Comments

lol768today at 3:07 PM

If you have a decent IDE, it'll offer you the ability to swap between the "old" and newer way of doing things when you encounter code written in one of the styles.

I can't say I've had any issues getting code using the new syntax through code review though. C# 14 has been out long enough that the team is familiar with much of it, and the IDE is helpful at reminding you to consider adopting new syntax. That aside though, the collection expression syntax is pretty familiar for anyone who's ever written e.g. JavaScript.

francisofasciitoday at 3:17 PM

I like the new collection expression: var filters = ["active", "paid", ..premiumFilters, "export"];

As for the rest of the examples, I would rather stick with the old way. Sometimes new syntactic sugar techniques make code more confusing.

Insanitytoday at 3:17 PM

We're at an interesting time for programming language development. Typically, newer features made the developer experience better. Either a faster way of doing something, it being safer, or easier to read/understand. But if GenAI models end up writing most of your code, there's only marginal gain ('easier to understand'). Yet understanding comes from using the features, so if GenAI were to write code using new features, you might not even get that benefit anymore as _you_ don't understand them well enough.

However, there's a larger problem lurking here. GenAI models code based on what's represented in their training data. New language features are (mostly) absent from that. And if more and more slop is pushed to Github, that slop isn't using the new features either. Which ultimately results in fewer new language features seeing widespread adoption.

Maybe I'm too pessimistic, but I think it's a somewhat dark time for PL development. And to quote the article, I can't prove it matters..

show 1 reply
lloydatkinsontoday at 3:07 PM

Seems to be a fairly low effort slop article that a lot of Medium is full of

show 2 replies
sylwarelast Friday at 1:36 PM

When will you be tired of all that planned obsolescence?

show 1 reply