Collection expressions are a new feature in C# 12.
It's a new syntax to create common collection values.
You can even inline other collections into a new one using the spread `..` operator.
With collection expressions, you have a unified way of creating new collections. You don't have to consider the concrete collection type you assign a value to.
Collection expressions make refactoring easier.
You can switch from a List to an array.
And everything will still compile.
If you enjoyed this, you will love The .NET weekly newsletter. More than 33,000+ engineers already read it.
Subscribe here: https://t.co/xip45XpWuB
What do you think about C# 12 collection expressions?
Are they a useful new feature or syntactic sugar?
I'm a fan of the new approach, and I'll start using it in .NET 8 projects.
Introducing AccelerantGPT, an expert in Rust adept at explaining code and teaching you the language. You're welcome to try it out! https://t.co/Cx6LSJg9FD
Microsoft just revealed its secret project - .NET Aspire.
Here's everything you need to know. 👇
What is .NET Aspire?
.NET Aspire is an opinionated, cloud-ready stack for building observable, production-ready, distributed applications.
.NET Aspire helps with:
- Orchestration
- Components
- Tooling
Orchestration refers to coordinating and managing various elements within a cloud-native application.
.NET Aspire streamlines the configuration and interconnection of different parts of your cloud-native app.
It provides useful abstractions for managing:
- Service discovery
- Environment variables
- Container configurations
Without you having to handle low-level implementation details.
My favorite feature is the built-in Aspire dashboard.
You can use it to monitor:
- Containers
- Structured logs
- Applications traces
- Applications metrics
But there are even more fantastic things inside.
What about deploying an Aspire application?
NET Aspire applications are built with cloud-agnostic principles in mind.
This allows you to deploy Aspire apps across various platforms supporting .NET and containers.
With .NET Aspire (Preview 1), you can deploy to Azure Container Apps.
This is doable through a few simple commands using the Azure CLI.
I'm excited about the Aspire project and will create more content about it on my YouTube channel and newsletter.
If you enjoyed this, you will love The .NET weekly newsletter.
More than 32,000+ engineers already read it.
Subscribe here: https://t.co/xip45XpWuB
What's your first impression of .NET Aspire?
🔥 🔥 🔥 Ok, if yesterday's post about #AzureSQL made you happy, sit down *now*. Today we're announcing the ability to call *any* REST service from #AzureSQL! 🚀 Call @AzureFunctions, @PowerBI, #EventHub, and more: https://t.co/ZsMf5VbicG Can you imagine the possibilities? 😮
Azure Managed Grafana is now GA!
https://t.co/O8ZfQcn6RI
Learn how you can use built-in dashboards for @AzureApiMgmt, @AzContainerApp and more!
https://t.co/MhGr7mbngK
#azure#ops#grafana
The HashiCorp #Terraform AzureRM provider 3.0 is now live, bringing significant parity between the Azure provider for Terraform and Azure services currently available. Thanks to @msdev, @mspartner, and @openatMicrosoft for their support. https://t.co/rA65Uwd2Fy
I am launching a new series of short videos on Azure called #AzureSnacks! 🦝
The first 2 vidéos are about @AzureStaticApps but videos on Data, AI and more are coming 😉
See the playlist here: https://t.co/x4I0KMxWmH
With #dotnet turning on 20 years, I realized I've been using it for 19 years! First with SharpDevelop, then #visualstudio that leads me to #Avalon / WPF (thx @mitsufu), #Silverlight, #mvpaward (for 13 years), books and more! And it's still a pleasure to work with! #timeflies
Great breakdown of the recent @Azure container apps platform and some of the unique capabilities it provides around events and microservices that set it apart.
https://t.co/XYqvgWQDS3
After playing with #xamarinforms last time, now it was time to have fun with #SwiftUI to recreate #betclic app! A bit less polished (was new to it so needed to learn it but powerful!).
Love the fact that SwiftUI use the #MVVM pattern
https://t.co/tghttdqlnJ
Finally, I updated https://t.co/mXvMy9TsXm to support vs2022.
In addition, I updated how it searches for an assembly name from runtime/aspnetcore type name, so goto will work with https://t.co/AlB8imXtBB much better.
cc: @KirillOsenkov / @mkristensen / @shanselman / @davidfowl
Blogged: "Running Azure PaaS anywhere using Azure application services with Azure Arc"
This is a major step forward using Azure platform-as-a-service, regardless of where you are!
https://t.co/9M5MOjN9Ju
#azure#paas#hybrid#kubernetes#arc