Enums aren't evil. Conditionals everywhere are

HomeGames, Other ContentEnums aren't evil. Conditionals everywhere are
Enums aren't evil. Conditionals everywhere are
Enums aren't evil. Conditionals everywhere are
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: https://www.youtube.com/channel/UC3RKA4vunFAfrfxiJhPEplw?sub_confirmation1

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

Join via Patreon
https://www.patreon.com/codeopinion

️ Join via YouTube
https://www.youtube.com/channel/UC3RKA4vunFAfrfxiJhPEplw/join

Blog: https://codeopinion.com
Twitter: https://twitter.com/codeopinion
LinkedIn: https://www.linkedin.com/in/dcomartin/
Weekly Updates: https://mailchi.mp/63c7a0b3ff38/codeopinion

Take the opportunity to connect and share this video with your friends and family if you find it useful.

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *