Elliot One
@elliot1one
Followers
115
Following
2K
Media
159
Statuses
264
AI & Modern Engineering Insights | Founder @ XANT & Monoversity | AI Engineer | Senior Full Stack Engineer
London, UK
Joined August 2023
Passing parameters correctly is key to building clean .NET APIs: Path / Query / Header / Body / Form / Cookies / Route / DI Use the right type for IDs, filters, authentication, files, sessions, and configuration. #dotnet #cleancode #tech
0
0
2
C# 14’s field keyword is a game-changer 💡 No more manual backing fields .cleaner, smarter properties with built-in backing logic. ✅ Less boilerplate ✅ Cleaner syntax ✅ Full control & readability Have you tried it? #dotnet #csharp #cleancode
0
0
0
Frontend can’t call your API? ⚠️ Browsers block cross-origin requests (CORS). In .NET: 1. Use AddCors to define allowed origins, headers, methods. 2. Apply with UseCors (global) or [EnableCors] (per controller). #cors #dotnet #webdev #coding #programming
0
1
1
🛑 Handle exceptions gracefully .NET with Global Exception Handling. Centralize logic, use IExceptionHandler + ProblemDetails, and keep users informed. Steps: 1. Implement IExceptionHandler 2. Define TryHandleAsync() 3. Register & use middleware #dotnet #csharp #codingtips
0
0
1
Filters handle cross-cutting concerns like caching and authorization, only within the MVC pipeline. Unlike middleware (runs on every request), filters run only for MVC actions. You can apply them globally, per controller, or per action. #dotnet #mvc #cleancode #webdevelopment
0
0
1
Keep Program.cs clean with feature-based DI. ✅Each module registers its own services. You'll get: 1. Cleaner startup 2. Encapsulated modules 3. Scalable & maintainable 4. Easier testing & updates ♻️ Share to spread the knowledge! #cleancode #modularmonolith #architecture
0
0
3
Dependency Inversion Principle (DIP) “D” in SOLID: High-level modules shouldn’t depend on low-level modules; both should rely on abstractions. ✅ Details depend on interfaces, not the other way around. Promotes loose coupling, flexibility & easier testing. #SOLID #CleanCode
0
0
2
Interface Segregation Principle (ISP) “I” in SOLID: Clients shouldn’t depend on methods they don’t use. ✅ Split large interfaces into smaller, specific ones. Keeps code modular, clear, and easy to maintain. #SOLID #CleanCode #OOP
0
0
0
Liskov Substitution Principle (LSP) 🔁 “L” in SOLID: Subclasses must be replaceable with their parent classes without breaking the program. ✅ Respect base class behavior. Ensures predictable polymorphism & stable design. #SOLID #CleanCode #OOP
0
0
2
Open/Closed Principle (OCP) from SOLID: Software entities should be open for extension but closed for modification. Add new functionality without altering existing, tested code, keeping your system stable, flexible, and easier to maintain over time. #SOLID #CleanCode
0
0
3
Single Responsibility Principle (SRP) from SOLID: A class or method should have only one reason to change. It should focus on a single responsibility. Keeping responsibilities isolated makes your code easier to test, maintain, and extend. #SOLID #CleanCode #SoftwareDesign
0
0
1
Juggling multiple implementations in .NET used to be messy: inject all, build factories, or use IServiceProvider. With Keyed Services, you now just register with a key and inject exactly what you need. Cleaner, simpler, no boilerplate. #dotnet #cleancode #microservices
0
0
1
Tired of juggling multiple implementations? Keyed Services fixes that for you. - Clean DI - No factories - No service locators Perfect for multi-tenant or provider-based apps. ♻️Share and help your network. #dotnet #cleancode #microservices
0
0
1
Your site might look fast, but is it really? Compressing responses reduces payload size, speeds up delivery, and saves bandwidth. In .NET, you can use Response Compression Middleware with Brotli and GZip. A small setup that can make a big difference! #dotnet #aspnetcore #tech
0
0
3
Hybrid Cache in .NET 9+ 🔥 Combines in-memory speed with distributed reliability. ✅ Unified API ✅ Stampede protection ✅ Flexible serialization (JSON, Protobuf, etc.) A game changer for high-performance apps. #dotnet #caching #performance #coding #technology
0
0
3
Distributed Caching in .NET 🚀 Great for multi-server setups with Redis or SQL Server. ✅ Scales horizontally ✅ Data persists across restarts ⚠️ Watch out for latency & serialization overhead Use TTLs to avoid stale data. #dotnet #redis #scalability #programming
0
0
2
In-Memory Caching in .NET ⚡ Fast, lightweight, perfect for single-server apps. ✅ Priority & Size control memory usage ⏱ Sliding & Absolute Expiration keep data fresh Best for small apps that need speed. #dotnet #caching #developers #programming
0
2
10