Best of C#2025

  1. 1
    Article
    Avatar of dotnet.NET Blog·1y

    Why we built our startup in C#

    Tracebit chose C# for building their B2B SaaS security product due to its productivity, cross-platform capabilities, popularity, rich standard library, expressive language features, and excellent tooling. Despite its reputation as a stable language without much buzz in the startup community, C# provides advantages such as a large talent pool, quality libraries, robust documentation, and fewer unexpected roadblocks. Its performance and open-source nature further enhance value for startups looking for a solid development foundation.

  2. 2
    Article
    Avatar of hnHacker News·1y

    Migrating away from Rust.

    The development of Architect of Ruin initially began in Rust with the Bevy game engine due to personal preferences and the positive community around Bevy. However, challenges such as collaboration difficulties, abstraction issues, rapid iteration needs, migration pain, and modding limitations prompted a switch to Unity and C#. The team conducted an experiment evaluating core features implementation, leading to a full port decision. The switch resulted in faster development, better collaboration, and improved maintainability.

  3. 3
    Article
    Avatar of techworld-with-milanTech World With Milan·1y

    Recommended learning resources for C# and .NET in 2025.

    In 2025, the .NET ecosystem continues to grow with the release of .NET 9 and C#. This post offers a curated list of learning resources for various levels, from beginners to advanced, including courses, books, and YouTube channels. Key focus areas include C#, .NET, ASP.NET, and software engineering principles. Additionally, it mentions essential tools and guides for .NET developers looking to stay ahead in their careers.

  4. 4
    Article
    Avatar of hnHacker News·1y

    Making Video Games in 2025 (without an engine)

    The post discusses the advantages of creating video games without relying on large commercial engines like Unity and Unreal. It highlights personal experiences of using smaller frameworks and open-source libraries such as SDL3 for game development. The author prefers using C# for its performance, accessibility, and modern features, and stresses the importance of controlling the development stack for small indie teams. Tools for rendering, audio, and asset management are examined, with a nod to cross-platform capabilities and the transition to Linux for development.

  5. 5
    Article
    Avatar of techworld-with-milanTech World With Milan·1y

    Why C#?

    C#, a programming language developed by Microsoft, is known for its modern, multi-paradigm capabilities and has continuously evolved to include features like object-oriented programming, generics, lambdas, LINQ, and async/await. It benefits from a robust .NET ecosystem, excellent tooling like Visual Studio, and a vast library collection via NuGet. C# is suitable for developing cross-platform applications across web, mobile, desktop, and cloud environments, supported by extensive documentation and a vibrant community.

  6. 6
    Video
    Avatar of awesome-codingAwesome·50w

    C# is cool again and you can't avoid it anymore...

    C# has evolved significantly from its enterprise-focused origins into a modern, cross-platform language with features like records, pattern matching, nullable reference types, and async/await. The .NET ecosystem has been transformed with .NET Core (now simply .NET), offering cross-platform support, modular architecture, and excellent performance. Modern C# includes minimal APIs for quick web development, LINQ for database querying, source generators for compile-time code generation, and frameworks like Blazor for frontend development and MAUI for cross-platform mobile apps.

  7. 7
    Article
    Avatar of collectionsCollections·1y

    Creating a Simple MMO Game with Unity and SpacetimeDB

    Learn how to build a simple MMO game using Unity, C#, and SpacetimeDB with this step-by-step tutorial. It covers setting up a Unity project, developing server-client architecture, implementing real-time multiplayer mechanics, and introducing competitive game features. Designed for beginners with some experience in Unity or C#.

  8. 8
    Video
    Avatar of codemonkeyunityCode Monkey·51w

    Dev followed my FREE course, then made $150,000!

    A game development instructor shares success stories of students who learned from his free Unity courses and went on to create profitable games. The main example is Urban Jungle, a cozy home decoration game that generated approximately $150,000 in revenue after the developer started as a complete beginner and followed a 10-hour Unity tutorial. The post highlights multiple success stories and promotes various free programming courses, emphasizing how beginners can learn game development through structured tutorials and reverse engineering existing code.

  9. 9
    Video
    Avatar of codemonkeyunityCode Monkey·1y

    The 10 BEST Game Dev Beginner Projects to Make!

    Beginners in game development are encouraged to create multiple small projects to gain experience quickly. Examples include making games like Flappy Bird, Snake, Breakout, and Asteroids. Each project helps build essential skills like handling inputs, managing collisions, and implementing simple AI. Focusing on clean code practices and gradually increasing complexity is recommended.

  10. 10
    Video
    Avatar of nickchapsasNick Chapsas·33w

    Why Startups Don't Use .NET and C#

    Explores why startups favor JavaScript, TypeScript, and Python over .NET/C# despite modern improvements. Key factors include persistent stigma around .NET, faster MVP development with JS/Python ecosystems, easier hiring due to larger talent pools, and better AI tooling support. While .NET offers strong performance and complexity management for mature products, startups prioritize speed-to-market and product validation over code quality. The author, running a .NET-based startup, recommends choosing .NET only if teams already know it, as learning curves and hiring challenges outweigh benefits for early-stage companies. Microsoft's recent organizational shift placing .NET under AI platforms signals deeper AI integration coming to the ecosystem.

  11. 11
    Article
    Avatar of netguruNetguru·47w

    Golang vs C#: Backend Battle - What Top Companies Choose

    Go and C# represent different philosophies for backend development. Go offers superior memory efficiency (25MB vs 162MB), faster initial response times, and simpler deployment with 6MB container images. C# provides a mature ecosystem, comprehensive tooling, and better enterprise integration. Go excels in microservices and cloud-native applications, while C# dominates desktop applications and enterprise systems. Performance differences narrow under sustained load, with both languages suitable for production workloads. The choice depends on team expertise, infrastructure, and specific project requirements rather than absolute performance metrics.

  12. 12
    Article
    Avatar of devblogsDevBlogs·34w

    Announcing WinUI Gallery 2.7

    WinUI Gallery 2.7 introduces sample history and favorites functionality, new samples for TitleBar and ThemeShadow controls, upgraded StoragePicker APIs with Windows App SDK 1.8, fresh typography and button styles, and over 100 community-driven improvements including accessibility fixes and UI polish.

  13. 13
    Article
    Avatar of aspnetASP.NET Blog·30w

    Introducing Custom Agents for .NET Developers: C# Expert & WinForms Expert

    Microsoft released two experimental custom agents for GitHub Copilot targeting .NET developers: C# Expert and WinForms Expert. C# Expert provides guidance on modern C# best practices, code integrity, and testing workflows. WinForms Expert specializes in UI design patterns, event-driven programming, and protects designer.cs files from corruption. Both agents can be downloaded from the awesome-copilot repository and integrated into projects via the .github/agents folder, with support across Copilot Coding Agent, VS Code Insiders, and upcoming Visual Studio 2022 v17.14.21.

  14. 14
    Article
    Avatar of tilThis is Learning·1y

    C# to Typescript Cheatsheet

    A comprehensive cheatsheet to help developers transition between C# and TypeScript, covering basic data types, variables, constants, arrays, enums, objects, classes, getters/setters, methods, null handling, loops, async/await operations, exception handling, LINQ vs TypeScript array methods, dependency injection, generics, reflection, events, threading, decorators, pattern matching, working with JSON, and the fluent API pattern.

  15. 15
    Article
    Avatar of andrewlock.NET Escapades·24w

    Trying out the Zed editor on Windows for .NET and Markdown

    Zed editor on Windows offers impressive speed and smoothness compared to VS Code, with adequate support for .NET development through the OmniSharp extension. However, it falls short for Markdown editing, lacking key features like keyboard shortcuts for formatting, code folding, IntelliSense for links, and synchronized preview scrolling. While .NET editing works well (except for Razor files), the missing Markdown conveniences and intrusive autocomplete suggestions make it not yet ready to replace VS Code for writing documentation. The author remains optimistic about future improvements given Zed's rapid development pace.

  16. 16
    Article
    Avatar of medium_jsMedium·1y

    HTTP Client in C#: Best Practices for Experts

    This guide explores advanced best practices for using `HttpClient` in C#. It covers the creation of `HttpClient` instances using various methods like constructors, static instances, `IHttpClientFactory`, named, typed, and generated clients. The article also discusses middleware techniques, resilient handling of HTTP requests using timeout, retries, and circuit-breakers, and efficient ways to issue requests and handle responses while optimizing performance to avoid common pitfalls like port exhaustion and DNS changes.

  17. 17
    Article
    Avatar of devblogsDevBlogs·40w

    A C# Guide with Ollama

    GPT-OSS is OpenAI's first open-weight model since GPT-2, offering developers powerful AI capabilities without cloud dependency. The guide demonstrates how to build a local AI chat application using C# and Ollama, leveraging Microsoft.Extensions.AI libraries for unified abstractions. The 20B model runs on just 16GB of memory, making it accessible for local development. The tutorial covers setting up a console app, adding necessary NuGet packages, implementing streaming chat with conversation history, and preparing for advanced scenarios like function calling and agentic applications.

  18. 18
    Video
    Avatar of nickchapsasNick Chapsas·24w

    The New Cross Platform C# IDE is INSANE

    SharpIDE is a new open-source, cross-platform C# IDE built using C# and the Godot game engine with Photino Blazor for the UI. Created by Mark Parker, it runs on Windows, Linux, and Mac, offering features like syntax highlighting, debugging with Samsung debugger, NuGet package management, test explorer, and fast project loading. While very early in development and not production-ready, it demonstrates working code editing, building, running, and debugging capabilities. The project is fully open-source on GitHub, encouraging community contributions to add features and improvements.

  19. 19
    Article
    Avatar of csharpcornerC# Corner·27w

    Understanding the volatile Keyword in C# — With a Real-World Example

    The volatile keyword in C# ensures that shared variables are always read from and written to main memory, preventing threads from seeing stale cached values. While it guarantees visibility of changes across threads, it doesn't provide atomicity or replace locks for thread synchronization. A practical example demonstrates how volatile prevents redundant authentication calls in a multi-threaded background worker, though proper locking mechanisms are still needed for complete thread safety.

  20. 20
    Article
    Avatar of gzasiv4jjdtovk6orcp3xBarion·26w

    I have never seen good AI code (challenge)

    A developer challenges the community to prove that LLM-generated code can meet professional standards for production use. They're specifically looking for examples that demonstrate good balance between readability, maintainability, reusability, simplicity, and performance, with preference for immutable and declarative design patterns. The author uses AI daily but claims to have never encountered AI-generated code worthy of inclusion in long-term projects.

  21. 21
    Video
    Avatar of t3dotggTheo - t3․gg·33w

    Life after TypeScript

    Motion's engineering team shares their decision to migrate from TypeScript to C# after 5 years and 2.5 million lines of code. The move addresses persistent developer experience issues including slow TypeScript compilation, language server crashes, ORM limitations with Prisma/Drizzle, and React Native performance bottlenecks. While acknowledging TypeScript's strengths in enabling full-stack development and rapid iteration, the team chose C# for its mature ecosystem, Entity Framework's robust ORM capabilities, similarity to TypeScript syntax, and better AI code generation performance. The article emphasizes this isn't about runtime performance but rather codebase scaling and developer productivity at enterprise scale.

  22. 22
    Article
    Avatar of telerikTelerik·22w

    What’s New in .NET 10 for ASP.NET Core

    .NET 10 introduces file-based applications that run from a single .cs file without project files, C# 14 extension properties and the field keyword for simpler property definitions, built-in validation for Minimal APIs, and Entity Framework Core 10 enhancements including LeftJoin/RightJoin methods, JSON column updates with ExecuteUpdate, complex type mapping, and named query filters. These features aim to improve developer productivity through reduced boilerplate and more intuitive APIs.

  23. 23
    Article
    Avatar of dotnet.NET Blog·1y

    Build a Model Context Protocol (MCP) server in C#

    Learn how to build a Model Context Protocol (MCP) server using C#. The MCP facilitates communication between AI models and applications. Using the MCP C# SDK, developers can create both servers and clients. The guide includes steps for setting up a server, defining tools, integrating with existing APIs or data, and publishing the server as a container image.

  24. 24
    Article
    Avatar of telerikTelerik·21w

    What’s New with APIs in .NET 10: Real Improvements

    .NET 10 introduces built-in validation for Minimal APIs, eliminating the need for custom validation code. The release includes OpenAPI 3.1 support with improved JSON Schema handling, named query filters in Entity Framework Core 10 for selective filter disabling, and C# 14 features like field-backed properties, null-conditional assignment operators, and extension members. Additional improvements include native Server-Sent Events support for streaming updates. These enhancements focus on reducing boilerplate code and improving developer productivity for API development.

  25. 25
    Article
    Avatar of milanjovanovicMilan Jovanović·29w

    What's New in EF Core 10: LeftJoin and RightJoin Operators in LINQ

    .NET 10 introduces native LeftJoin and RightJoin methods to LINQ, eliminating the verbose GroupJoin + DefaultIfEmpty pattern previously required for left/right joins in Entity Framework Core. The new methods provide clearer intent, less code, and identical SQL output while making outer joins as straightforward as other LINQ operations. Developers can now write joins that directly express their meaning, keeping all rows from one side while matching optional rows from the other.