Member-only story
Build a blazingly fast API, step by step
There’s no hiding the fact that I’ve been a staunch advocate for C# for many years. It’s been my go to programming language for over a decade, and in recent years both the language itself and its peripheral frameworks have come a long way.
One of the less attractive aspects of C# is that it’s extremely verbose. Even to write a relatively small project, the amount of projects, files, and lines of code quickly explodes.
To keep things manageable, especially in larger projects, many patterns and best practices have emerged over the years. For most modern web projects in C#, dependency injection is the standard, databases are accessed through an ORM, and routing is handled by an elaborate framework.
This all tacks on complexity. To manage this complexity, architectures like the Onion Architecture are introduced, complicating things even further. You end up with a project where, even to make the most basic change, you’ll need a solid understanding of all of the concepts mentioned above.
I’ve been writing code for over fifteen years. And in those years, there’s one principle that I’ve truly come to consider one of the fundamental concepts of writing good code: in all code…