elliot1one Profile Banner
Elliot One Profile
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
Don't wanna be here? Send us removal request.
@elliot1one
Elliot One
7 hours
Stop sending confusing JSON to your API users 🚫 By default, .NET enums serialize as numbers like "status": 2 which is unclear and error-prone. ✅Use JsonStringEnumConverter to get it like "status": "Pending". Readable JSON = fewer bugs & better collaboration. #dotnet #tech
0
0
0
@elliot1one
Elliot One
1 day
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
@elliot1one
Elliot One
2 days
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
@elliot1one
Elliot One
3 days
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
@elliot1one
Elliot One
4 days
Every web connection should be secure. 🔒 ✅ HTTPS encrypts data & verifies your server. ✅ HSTS forces browsers to always use HTTPS, blocking downgrade attacks. In .NET use: 1. app.UseHttpsRedirection(); 2. app.UseHsts(); Small code, big security. 🚀 #dotnet #security #web
0
0
0
@elliot1one
Elliot One
5 days
🛑 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
@elliot1one
Elliot One
6 days
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
@elliot1one
Elliot One
7 days
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
@elliot1one
Elliot One
8 days
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
@elliot1one
Elliot One
9 days
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
@elliot1one
Elliot One
10 days
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
@elliot1one
Elliot One
11 days
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
@elliot1one
Elliot One
12 days
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
@elliot1one
Elliot One
13 days
.NET 10+ now fully supports OpenAPI 3.1: ✅JSON Schema 2020-12 ✅Nullable types improved ✅YAML docs generation ✅Richer response descriptions API docs just got smarter. Have you tried this yet? Let me know in the comments. #dotnet #openapi #api
0
0
4
@elliot1one
Elliot One
14 days
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
@elliot1one
Elliot One
15 days
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
@elliot1one
Elliot One
16 days
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
@elliot1one
Elliot One
17 days
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
@elliot1one
Elliot One
18 days
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
@elliot1one
Elliot One
19 days
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