Enums aren't evil. Conditionals everywhere are

Опубликовано: 29 Сентябрь 2024
на канале: CodeOpinion
17,500
657

Seeing the same conditional statements littered everywhere? There are different ways of handling that but a lot of it comes down to your context. Conditionals around type checking, extension methods, Inheritance and Polymorphism are all options.

🔗 EventStoreDB
https://eventsto.re/codeopinion

🔔 Subscribe:    / @codeopinion  

💥 Join this channel to get access to a private Discord Server and any source code in my videos.

🔥 Join via Patreon
  / codeopinion  

✔️ Join via YouTube
   / @codeopinion  

📝 Blog: https://codeopinion.com
👋 Twitter:   / codeopinion  
✨ LinkedIn:   / dcomartin  
📧 Weekly Updates: https://mailchi.mp/63c7a0b3ff38/codeo...