Live data from Hacker News

.NET 8

devblogs.microsoft.com

261–270 of 374 posts

Re: .NET 8

#261

Earlier quoted context omitted.

I love .Net, but context is key. I may suggest .Net for new WebAPI development (minimalist or otherwise), typically with a deployment target of containers and or Linux. It is a strong web back-end language in a similar way to Java but with Linq support, async/await, and a better primary programming language (C#). It has strong integrations into corporate software and all popular DBMS. But, frankly, Linq is the magic…

Any tips or tutorials for a PHP dev who wants to pick .NET up after a couple decades of not using it? I looked at the project templates in Visual Studio 2022 just for web apps and the options made my head spin. My wife has worked QA for a number of .NET teams and it just seems like something I should at least keep my thumb on, but I've had nothing but frustration with it so far, even just trying to figure out what te…

I'd just create a Blazor project with individual authentication (and don't worry about interactivity). Then inside Components/Pages you'll find code that should look pretty boring. You'll see some HTML, you'll see things like `@page "/counter"` and `@currentCount` and it isn't that hard to understand that the at-symbol means "code thingy" and "oh, @page must be how I specify the URL", and at the bottom there will be an `@code` block. If you look at the authentication pages, you'll see how they handle forms and save things to the database.

There's always more than a comment can talk about, but that's the gist. One good thing is that Visual Studio should be able to help you with a lot of stuff. It's pretty good at keeping you on a good path in the code and pointing out how to fix things.

Re: .NET 8

#262

Adding spreading is neat, but curious why they chose to go the two dot route instead of three. It's been a while since I've worked in C#, so I can't remember if there are any reserved implications of three dots.

Hi there. I'm the language designer who created the 'Collection Expression' design/specification: https://github.com/dotnet/csharplang/issues/5354 You can see the entire history of the proposal there. To answer you specific question, we went with `..` because that's what the language already uses for the complimentary 'pattern matching deconstruction' form for collection patterns. In other words, you can already say…

That deconstruction pattern wouldn't be valid since it can only use `..` once per list. Very cool stuff though, thanks!

Re: .NET 8

#263

.NET 5, .NET Standard, .NET Framework, .NET Core, ... now .NET 8. It's so confusing still.

tl;dr:

- Open-source, portable, updated, default choice: .NET Core 1 2 3, .NET 5/6/7/8 - Included with Windows or Unity, frozen in time: .NET Framework 4 (don't use anything older) - Want to support both: .NET Standard (this is a subset that both can run)

Re: .NET 8

#264
Super stoked for a few things.

List expressions I'm overly excited about. Can't wait to use and of course dictionary expressions will be amazing in the future.

EF Core complex types. Also it'll be fantastic when these can be used to model composite keys.

The using enhancements. Hopefully I don't end up overusing tuples.

If Orleans had secretly been working on reminders v2 it'd be early Christmas.

Re: .NET 8

#266
post #252
post #204

Earlier quoted context omitted.

You might be interested in Orleans: https://learn.microsoft.com/en-us/dotnet/orleans/overview

Orleans is definitely interesting, but I have never looked into it much because it's my understanding that it is a cloud-only solution, in that it requires some Orleans or Azure service. Is that correct?

No, you can run in standard processes - there's even documentation [1] about hosting it in Kubernetes.

[1]: https://learn.microsoft.com/en-us/dotnet/orleans/deployment/...

Re: .NET 8

#267
post #182

Blazor actually looks compelling now that it has server side streaming and rendering, as well as component level interactivity. Once .NET is integrated with the new WasmGC features, it will get even better! (I don't think they mentioned WasmGC on the roadmap but I can bet anything they're going to do it).

I want to want to use it but have tons of questions would need to research.

Building a professional component lib is a pita. Last I checked there were a billion React component libs and like one OSS Blazor lib in progress. Plus the usual commercial libraries you typically see in the .Net ecosystem.

Accessibility is a pita and aria requires JavaScript. How does this work?

State management in a way that's extendible? I love Mobx but the only thing active is a fluxor lib(yuck). Can other JavaScript code even plug into this?

Extensibility in general. Can new functionality be added via dynamic loaded plugins?

I would end up needing to interop with a parallel JavaScript(Typescript) codebase. My msbuild foo is pretty strong these days but would be nice to have a straightforward project config accounting for this.

Re: .NET 8

#268
post #182

Blazor actually looks compelling now that it has server side streaming and rendering, as well as component level interactivity. Once .NET is integrated with the new WasmGC features, it will get even better! (I don't think they mentioned WasmGC on the roadmap but I can bet anything they're going to do it).

You can find .NET's position on the WasmGC spec here: https://github.com/dotnet/runtime/issues/94420.

Re: .NET 8

#269
post #67

Earlier quoted context omitted.

Kind of annoyed - I just spent the past week getting familiar with Dapr, and now there's Aspire which seems to have similar goals and is also funded by Microsoft: the Azure CTO even wrote the introduction to the Dapr for .NET Developers book! And of course the Aspire announcement makes no mention of Dapr - I wonder if the teams have even spoken to each other!

I was asking about Orleans integration. They are working on it ( https://twitter.com/reubenbond/status/1724463381686686075 ). I think it's a matter of time for Dapr stuff to be integrated. It is after all the first preview. edit: here's more info about Dapr and Aspire https://learn.microsoft.com/en-us/dotnet/aspire/reference/as...

Orleans seems to have stagnated greatly past year or two. Someone raised this issue over a year ago(that only like one person was working on it and seemingly part time) and they swore it was still going to be getting resources and continuing R&D.

Fast forward to now and it's only bug and compatibility fixes. A shame cause reminders v2 would have been an amazing addition.

Re: .NET 8

#270
post #6

Apart from the very welcome QoL features in C# 12 (collection literals, primary constructors for ordinary classes), the "Aspire" announcement is very interesting. Haven't decided yet if its a good thing or too much "magic".

I apparently need to set aside a solid 15 minutes to read the announcement fully. Couldn't figure out what exactly Aspire is just reading the intro and skimming. Thought it was just like a "blessed" set of libs to build with..
Post reply on HN