Oswaldo Jesús Marín Pagés (@ozzies_code) header
Oswaldo Jesús Marín Pagés (@ozzies_code) profile picture

💻 I help you build the technological solution that your case requires 🖱Digital Products and Services SOFTWARE ENGINEER | COMPUTER SCIENCE

Amsterdam, The Netherlands
Joined October 2020
Photo by Oswaldo Jesús Marín Pagés (@ozzies_code)Photo by Oswaldo Jesús Marín Pagés (@ozzies_code)Photo by Oswaldo Jesús Marín Pagés (@ozzies_code)Photo by Oswaldo Jesús Marín Pagés (@ozzies_code)Photo by Oswaldo Jesús Marín Pagés (@ozzies_code)Photo by Oswaldo Jesús Marín Pagés (@ozzies_code)Photo by Oswaldo Jesús Marín Pagés (@ozzies_code)Photo by Oswaldo Jesús Marín Pagés (@ozzies_code)Photo by Oswaldo Jesús Marín Pagés (@ozzies_code)Photo by Oswaldo Jesús Marín Pagés (@ozzies_code)
Oswaldo Jesús Marín Pagés retweeted
PHP sigue siendo insuperable. Cuando vemos tecnologias y artefactos de software que ensamblan toda una arquitectura de un proyecto y vemos que chocan unos contra otros y que usar dependencias genera conflictos confirman porque PHP sigue siendo lo que es. #php #web #html
1
1
21
Oswaldo Jesús Marín Pagés retweeted
I always prefer empty collections over null in C#. You will typically iterate over a collection in a loop. With null, the calling code must handle the null case and check for null before accessing any collection elements. We're introducing more responsibility to the caller. Why not make it easier? I do this instead (pick one): - C# 12 collection expressions → [] - Enumerable.Empty - Array.Empty - a new List() Makes life easier for everyone. P.S. Here are 8 more Clean Code tips: milanjovanovic.tech/blog/8-t…
16
27
3
210
9,836
Oswaldo Jesús Marín Pagés retweeted
In today's #dotNETConf session replay, we explore new .NET 9 features for combining AI/LLMs into your existing LOB. Drop in to discover new AI tricks for even the most mature dog and take your WinForms LOB apps to the next level! 🎥 msft.it/6017UrORx
4
21
4,854
Oswaldo Jesús Marín Pagés retweeted
You're a beginner and you are writing EF code. How to improve performance? Here are 4 tips ⬇️ 1. Avoid query operations in loops To avoid performing query operations in a loop, you can cache the query results in memory and then operate on the data in memory, which can improve performance. 2. Select only important columns Instead of loading entire entities, you select only the columns you need. You can achieve this using anonymous types or a DTO (Data Transfer Object). You only load the columns you need, reducing memory and bandwidth usage. 3. Use the NoTracking method When AsNoTracking is used, Entity Framework doesn’t track changes to the retrieved entities, which reduces overhead and increases performance, especially for read-only data. 4. Use SplitQuery to separate queries The SplitQuery option allows EF to execute separate queries for the main entity and its related entities, reducing the impact of large joins. Using AsSplitQuery can increase performance and reduce complexity in such scenarios. However, it also means multiple queries will be executed, so be sure to monitor the impact on database load. Read more: thecodeman.net/posts/4-entit… #dotnet
2
13
1
106
4,856
Oswaldo Jesús Marín Pagés retweeted
Testing your code is an essential part of creating quality software - but are you sure your tests are testing what you think they are? In today's #dotNET Foundation user group session, we get a live-coding demo on mutation testing in C# using Stryker. 🎥 msft.it/6015UTT8T
5
40
4,928
Oswaldo Jesús Marín Pagés retweeted
What should .NET Developers learn next? You can start with these 18 key areas: 01. Internet basics 02. .NET Essentials 03. ASP.NET Core Fundamentals 04. Web API 05. Version Control 06. Databases 07. Testing 08. Security 09. Deployment 10. Task Scheduling 11. Communication 12. Observability 13. Caching 14. DevOps 15. Design Principles 16. Design Patterns 17. Architectural Patterns 18. Essential Libraries This .NET Backend Developer Roadmap covers all those areas with 110+ topics that every .NET dev should know. And it's not a simple PDF. Every node in the roadmap is an interactive link to the best video or article on the Web about that topic. Steal it here while it remains FREE! 👇 juliocasal.com/roadmap
4
48
1
205
10,146
Oswaldo Jesús Marín Pagés retweeted
Use your .NET skills to become an AI engineer. With the #OpenAI library, #dotNET developers can quickly master critical AI skills and apply them to real world apps. Read the blog to learn more about the OpenAI library for .NET. msft.it/6019UTT3z
18
91
6,640
Oswaldo Jesús Marín Pagés retweeted
No Swagger in .NET 9? Here's what you can do about it. I'll walk you through three alternatives for OpenAPI user interfaces. - SwaggerUI - ReDoc - Scalar We'll also explore the new OpenAPI package added in .NET 9. Check it out: youtu.be/0qtwYT4n2CM
4
22
179
7,102
Oswaldo Jesús Marín Pagés retweeted
The .NET/C# ecosystem needs to work towards less overengineering for the sake of it. ✅ Instead of 8 layers of abstraction, I am starting with single file transaction scripts with Vertical Slice Architecture. What tactics are you using to ship more? #dotnet
28
7
3
177
17,980
Oswaldo Jesús Marín Pagés retweeted
I don't let exceptions crash production. Robust error handling is a priority in my applications. .NET makes it easy to succeed here. I use the IExceptionHandler interface to define my handler. You can handle one type of exception per handler. You can also have a global catch-all handler. What happens after catching the exception? - Log the exception details for debugging - Return Problem Details to the client with redacted info I don't want to leak sensitive information to the client. Here's how all this fits together: milanjovanovic.tech/blog/pro…
4
25
191
9,636
Oswaldo Jesús Marín Pagés retweeted
I never understood the hate MediatR attracts. It's one of the best libraries in the .NET ecosystem. Here are just some of the things I can do: - Organize my code around use cases with requests and handlers - Cross-cutting concerns with pipeline behaviors - Design highly-testable handlers - Make API endpoints/consumers thin You can extend and customize MediatR in so many ways. There is some overhead with how requests and handlers are connected. It's implemented at runtime, so you can't "step into" the handler. The argument is this makes debugging harder. But I just place everything related to one use case in the same folder. I can quickly find the relevant files, update, debug, and write tests. MediatR + Vertical Slice Architecture is the perfect combo. Learn more: milanjovanovic.tech/blog/ver… What's your take on MediatR?
21
18
3
198
16,970
Oswaldo Jesús Marín Pagés retweeted
What is an API Gateway? API Gateways are the "front door" to your backend services. API Gateways handle client requests and route them to their destinations. The client doesn't need to know about your backend architecture. Key characteristics: - Request routing - Authentication - Authorization - Load balancing - Rate limiting If you're looking for a good technology to build an API Gateway, check out YARP. Learn more: milanjovanovic.tech/blog/imp…
51
234
11,935
Oswaldo Jesús Marín Pagés retweeted
Did you know you can use .NET Aspire with AWS to build cloud-native applications? I'm excited to be presenting ".NET Aspire and AWS: a match made in heaven" at NDC London 2025 next week. If you're at the conference, please come by and visit us in the AWS booth. #dotnet #AWS
1
12
26
4,482
Oswaldo Jesús Marín Pagés retweeted
When you're coding in C#, you'll need to learn how to manage and organize data efficiently. And this involves choosing the right data structure for the task at hand. To help you out, @grantdotdev wrote this tutorial where he walks you through lists, arrays, dictionaries, and more with example code. freecodecamp.org/news/how-to…
1
21
1
127
12,126
Oswaldo Jesús Marín Pagés retweeted
How to use resource-based authorization in ASP .NET Core by @joydipkanjilal infoworld.com/article/380692… #aspnetcore
6
28
1,756
Oswaldo Jesús Marín Pagés retweeted
In today's #dotNETConf session replay, we explore the latest features released in WinUI and the Windows App SDK, its integration with .NET and Native AOT, and how you can get started using these technologies in your Win32 applications. 🎥 msft.it/6014UBZW2
7
25
6,218
Oswaldo Jesús Marín Pagés retweeted
Hey .NET Devs! Ready to level up? Microsoft Playwright Testing now supports NUnit. Run more tests in parallel, cover all OS-browser combos, troubleshoot with rich reports and artifacts. Here's how to speed up your builds and keep your code flawless. 📖 msft.it/6018UBZda
9
1
69
6,518
Oswaldo Jesús Marín Pagés retweeted
What do you use for lambda parameter names? - "x"? - abbreviations? - full name of the type?
Write LINQ queries vertically so they're easier to read. I call this "scannability". Make your LINQ scannable. Read from top to bottom. Quickly figure out what it's about.
53
10
1
94
15,731