This is a list of interesting code snippets that I've created when dabbling in C#, Angular, and most recently Dart/Flutter.
- Sempahore - The same user data was "refreshed" when mobile users used a certain feature in our mobile app AND when administrators used a certain feature on their dashboard. This caused a race condition which resulted in duplicate entries in our database. This was one approach to stop the bleeding.
- MVC and API routing (one web project) - A requirement of this project was to only use one web project. It was part of a suite containing a mobile app and an angular administrative portal. I was on the fence with this decision - since separating the Angular front end (hosted via the MVC controllers) and the API would lend itself nicely to scaling the API if mobile usage increased. But this was part of a monolith and the overhead