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.
.NET 10
71–80 of 605 posts
Re: .NET 10
#72That'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.
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…
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
#74Re: .NET 10
#75Earlier 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 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
#76Earlier 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.
Re: .NET 10
#77Earlier 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.
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
#78For 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.
Re: .NET 10
#79Earlier 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.
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
#80Earlier 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.