#Dotnet
46 notas · última:
Microsoft Donates Mono To WineHQ
Microsoft donated Mono to WineHQ, which will steward the project upstream while Microsoft keeps a modern fork in dotnet/runtime and tells active users to move to .NET.
Introduction to F#: A Language for Functional Programming
F# is presented as a functional-first .NET language that combines functional, imperative, and object-oriented styles, with immutability, pattern matching, async support, and strong interoperability.
CQRS Pattern With MediatR
CQRS separates writes from reads so each side can be optimized independently. The text also shows how MediatR can model commands and queries with handlers and a request pipeline.
API Versioning in ASP.NET Core
The page explains how API versioning lets ASP.NET Core APIs evolve without breaking existing clients, and shows how to add it with Asp.Versioning, choose version readers, and manage controllers and Minimal APIs.
EP 66: Clean Code Tips for .NET Developers - Part I
The post argues that clean code in .NET comes from meaningful names, avoiding null returns, keeping classes focused, limiting method size, reusing existing tools, and enforcing shared rules with EditorConfig and project settings.
Why and How Marten is a Great Document Database
The post shows how Marten stores and loads C# objects as JSON in PostgreSQL, creates missing database objects on demand, and fits the .NET host model while keeping ACID transactions and rich document features.
Asynchronous Programming
The page collects guidance for writing asynchronous code in .NET and ASP.NET Core. It emphasizes that async should propagate through the call stack, and it warns against blocking patterns, fire-and-forget mistakes, and misuse of task and cancellation APIs.
Anatomy of the .NET dictionary
Explains how .NET Dictionary stores entries in buckets and arrays, handles collisions with chaining, reuses freed slots, and grows or trims capacity.
Why is F# code so robust and reliable?
The post argues that F# reduces bugs through immutability, exhaustive matching, no nulls by default, explicit errors, typed primitives, and explicit dependencies in functional code.
Performance Improvements in .NET 9
A release tour of .NET 9 performance work across the JIT, GC, runtime, libraries, and tooling, with benchmarked gains in casts, loops, bounds checks, vectorization, LINQ, regex, JSON, networking, and more.
Why I Use JetBrains Rider for .NET Development
The author says Rider improves day-to-day .NET development with performance, cross-platform support, integrated tools, and Copilot, although it has a cost and some limitations.
Boosting Performance With Sealed Classes in .NET
The article compares open and sealed classes in C# and shows gains in performance in method calls, casting, type checking, and arrays, with an exception for static methods. It also points out the cost for mocking in tests.
Dynamically Change the ServiceLifetime of a Registered Service in .NET
The article shows how to replace a registration in IServiceCollection with another one with a different ServiceLifetime, using Replace and extension methods to swap implementation and environment.
Why you can't be a good .NET developer
The post argues that developers leave .NET to escape teams and shops that choose tools and practices for the least capable members, which blocks progress and pushes people elsewhere.
Keeping cross-cutting concerns out of application code
Mark Seemann refactors a Polly-coupled API class into application code with zero third-party dependencies, moving fault tolerance into a Decorator at the Composition Root.
Avoiding Identity Obsession in .NET with Entity Framework Core
Peter Ritchie shows how to configure EF Core shadow properties so a database-required primary key never leaks into a Domain-Driven Design entity's own model.
3 Essential Techniques for Managing Transactions in EF Core
Compares three ways to wrap EF Core writes in a transaction: automatic per-call, manual begin/commit/rollback, and execution-strategy transactions that retry on transient failure.
C# 14 Extension Members: Extension Everything
C# 14 finally ships the long-requested 'extension everything' feature: static extension methods, static and instance extension properties, and eventually operators.
Replacing Exceptions-as-flow-control with the Result Pattern
Andrew Lock walks a C# service through three stages — exceptions for flow control, a basic Result<T>, and a safer Switch()-based Result<T> — showing why each trade-off matters.
Migrating Durable Functions to .NET 8 Isolated
A field guide to migrating Azure Durable Functions from .NET 6 in-process to .NET 8 isolated: project file changes, NuGet package renames, and API replacements across activities, entities, orchestrators, and clients.
Building High-Performance .NET Apps With C# Channels
A practical rundown of bounded vs. unbounded C# Channels, a bounded-channel background processor, and a write-back caching pattern for a shopping cart.
A step-by-step guide to modernizing .NET applications with GitHub Copilot agent mode
Microsoft's guide walks through GitHub Copilot app modernization in Visual Studio 2026: an agent that assesses a .NET codebase, drafts an editable upgrade plan, and applies changes in a fix-and-test loop.
A complete guide to async programming in C#: understand threading, non-blocking I/O, await behavior, and best practices with ConfigureAwait
Stalin walks through what async/await does under the hood in C#, from thread pooling and await's resume point to SynchronizationContext, ConfigureAwait(false), and CancellationToken.
The Many Deaths and Rebirths of .NET
.NET moved from a Windows-centered framework to a cross-platform runtime, with .NET Core, .NET Standard, and .NET 5+ marking a public reset, unification, and steady maturity.
C#
C# was designed by Anders Hejlsberg at Microsoft, first distributed in 2000 as part of the .NET platform. Hejlsberg had previously designed Turbo Pascal, Delphi, and Visual J++ — and flaws he…
Mastering the C# Dispose Pattern
The guide explains how .NET manages reference types with the GC, why unmanaged resources need manual cleanup, and how to apply simple, full, inherited, and async dispose patterns correctly.
The Best Way To Map Objects in .Net in 2024
The post compares manual object mapping with AutoMapper and Mapster in .NET, and argues that manual mapping with required properties is safer, clearer, faster, and easier to debug.
The Case for C# and .NET
The page argues that server-side JavaScript brings dependency sprawl, security risk, weaker performance, and productivity costs, while modern .NET and C# offer a more secure, faster, and lower-maintenance backend path.
The setup "trick" that .NET libraries use and you should too
Nick says the video shows a C# feature that is not obvious at first glance and is used widely by ASP.NET Core and other .NET libraries to simplify how configuration details and settings are provided.
Read and Write Excel Spreadsheets With C#
The post shows how ExcelMapper lets .NET developers read Excel rows into POCOs or records, edit the data, and save it back to a spreadsheet with a few lines of C# 9.
Handling Dependency Injection in Inherited Classes
The post shows that constructor injection in a base class becomes tedious when new shared dependencies are added to every subclass, and proposes a dependency aggregate to centralize them.
Evolving modular monoliths: 1. An architecture for .NET
The article introduces a modular monolith approach for .NET that keeps monolith simplicity while isolating features with bounded contexts, layered design, and rules that improve cohesion, testability, and changeability.
10 Blazor Features You Probably Didn't Know
The article lists Blazor capabilities that go beyond common assumptions, including HTML and CSS support, JavaScript interop, MVC integration, SignalR, gRPC, lazy loading, and reuse of existing .NET libraries.
Assembly Versioning and DLL Hell in C# .NET Framework: Problems and Solutions
The article explains how modern .NET version conflicts happen, why binding redirects are often enough, and when side-by-side loading or repacking assemblies becomes necessary.
Jumpstart Your Xamarin App Development
The article outlines how .NET developers can use Xamarin to build native cross-platform mobile apps, then lists IDEs, tools, open source resources, and UI options to get started.
UTF8Encoding.Default != Encoding.UTF8 (.NET C#)
The post explains that UTF8Encoding.Default does not return UTF-8. It returns the operating system’s default ANSI encoding, so explicit Encoding.UTF8 and similar properties should be used instead.
[dotnetarchitects] [OFF] - Utlização do .Net no mundo afora
Discussão sobre a presença do .NET fora do ambiente Microsoft, com contraste entre enterprise e startups, e argumentos sobre produtividade, especialização e escolha de stack conforme o problema.
Why Comments Are Stupid, a Real Example
The post argues that comments often signal unclear naming or oversized methods, and shows a .NET refactor where better names and structure remove comments without reducing clarity.
Backward compatibility pain
The post compares three .NET 4.6 compatibility changes: a broken OrderByDescending case, a TimeZoneInfo model change, and a PersianCalendar leap-year change, to show the tradeoffs between correctness and compatibility.
Introducing Essence#: A Smalltalk-based Language for .NET
The article presents Essence# as a Smalltalk-based .NET language built for trading plan scripts, with dynamic typing, DLR integration, namespaces as objects, object state architectures, and traits.
