Live data from Hacker News

.NET 10

devblogs.microsoft.com

71–80 of 605 posts

Re: .NET 10

#71
post #60
post #28

That's a lot of goodies in a new release! It seems it is outpacing the JVM's development...

Apart from [the equivalent of] records, I see nothing big. Except... this '''let! a = fetchA() and! b = fetchB()''' really puzzles me. Does C# have a high-level syntax for concurrency timing? [something that Java is strongly lacking, and that Typescript did solve with Promise.all(), which is an ugly syntax, from my perspective] Any elaboration on this is very welcome.

I think thats F# not C#

Re: .NET 10

#72
post #60
post #28

That's a lot of goodies in a new release! It seems it is outpacing the JVM's development...

Apart from [the equivalent of] records, I see nothing big. Except... this '''let! a = fetchA() and! b = fetchB()''' really puzzles me. Does C# have a high-level syntax for concurrency timing? [something that Java is strongly lacking, and that Typescript did solve with Promise.all(), which is an ugly syntax, from my perspective] Any elaboration on this is very welcome.

Here `a` and `b` can have different types:

    let! a = fetchA() and! b = fetchB()
Whereas `Promise.all` usually requires all promises to have the same type (returning a `List` or even a `List`) .

See https://learn.microsoft.com/en-us/dotnet/fsharp/whats-new/fs...

Re: .NET 10

#73

>I wish .NET was more popular among startups, if only C# could get rid of the "enterpisey" stigma. I love C# and .NET and I use them extensively but I dislike the fact that the framework still kind of forces you into OOP. If you like to have a more functional workflow you have to roll your own stuff or wrap objects in functional constructs. But .NET is excellent for startups because: -it is very fast to develop in -h…

There's F# if you want to go fully functional.

Why C# doesn't have first class functions and can't go fully functional (and likely never will): Scala tried and its compiler is slow, even after so many iterations and new novel compiler ideas.

I like the way it is, and hope it doesn't change. Unless they could make this possible without making the compile process extremely slow.

Re: .NET 10

#74
post #31

Earlier quoted context omitted.

I wish people stopped conflating web programming with the whole realm of software development.

If you ignore Android / iPhone, where language choice is limited, practically all other development is web.

Get out of your bubble.

Re: .NET 10

#75
post #31

Earlier quoted context omitted.

I wish people stopped conflating web programming with the whole realm of software development.

If you ignore Android / iPhone, where language choice is limited, practically all other development is web.

It's web in a (limited) sense that there's probably a web frontend somewhere, but this "somewhere" is usually pretty far away from where most of the code is developed.

Most of the backend logic is not related to serving data for the browsers, it's doing actual backend stuff - communicating to databases, APIs, etc.

Is Google search backend a web app? I think it's really stretching the term.

Re: .NET 10

#76

Earlier quoted context omitted.

If you ignore Android / iPhone, where language choice is limited, practically all other development is web.

> practically all Define “practically all”. I would accept “clear majority”. But practically all? Nah. I mean the hot new areas for funding right now are AI and robotics neither of which are web! I’m coming up on 20 years professional experience. Exactly none of it has been mobile or web! The programming field is so much bigger than HN likes to pretend.

The majority of software is probably Excel macros.

Re: .NET 10

#77

Earlier quoted context omitted.

If you ignore Android / iPhone, where language choice is limited, practically all other development is web.

> practically all Define “practically all”. I would accept “clear majority”. But practically all? Nah. I mean the hot new areas for funding right now are AI and robotics neither of which are web! I’m coming up on 20 years professional experience. Exactly none of it has been mobile or web! The programming field is so much bigger than HN likes to pretend.

>I mean the hot new areas for funding right now are AI and robotics

Most developers are not in such startups. There is a lot of boring software out there which is a website. Even for AI, the first company that comes to mind OpenAI is known for ChatGPT, a web product. Most of the AI companies are building web products.

Re: .NET 10

#78
post #2

For us, every .NET upgrade since .NET 5 has gone surprisingly smoothly and reduced CPU/RAM usage by 10–15%. We were even able to downgrade our cloud servers to smaller instances, literally. I wish .NET was more popular among startups, if only C# could get rid of the "enterpisey" stigma.

agree, but it lost the battle when windows was an exclusive platform for it, even when mono was rising in popularity

Re: .NET 10

#79
post #31

Earlier quoted context omitted.

I wish people stopped conflating web programming with the whole realm of software development.

If you ignore Android / iPhone, where language choice is limited, practically all other development is web.

Most of your electronic devices work with embedded software. Production lines, transport gates, cranes, computer hardware, ships, planes, rockets, cars, e-bikes, smart lights...

There is also scientific programming, that feeds research and analysis. Weather reports? Statistics, etc.

And there is gaming.

Devops, infrastructure? Databases? Tools for artists? Most of those aren't web. And yes I've heard of Figma.

There are probably tens of categories I'm missing.

Web is still bigger probably, but I have a problem with the saying "practically all other development is web".

Re: .NET 10

#80
post #18

Earlier quoted context omitted.

OpenAPI and client generators solve this issue easily.

No, that's not true. If you share code like this then you can do things like put the same validation code in the frontend and the backend: frontend to give a nice user experience, and backend to protect the endpoint.

OpenAPI does support patterns for fields and nullables/non-nullables - that already gets you very far regarding validation. A decently sophisticated generator (which don't exist IMHO) would generate the validation code for your respective language.
Post reply on HN