Загрузка...

What's my big beef with enums?

What's my big beef with enums?

I don't like a lot of the usage I see of enums. And it's nothing that's fundamentally wrong with them.

It boils down to a discrepancy in how easy it is to modify the enum itself and how potentially painful it can be to properly update all of the spots that consume the enum.

I *HIGHLY* recomment that you stick to fixed sets of values. No touchy after.

Check out the full video:
https://youtu.be/Z_V-c7fph1U

----
🔔 Follow for more software engineering and dotnet topics!
📨 Sign up for my email newsletter:
https://subscribe.devleader.ca
🎬 Check out Dev Leader on YouTube for multiple full-length videos weekly!
🗣️ Share with your network!

#csharp #dotnet #dotnetcore #csharpdevelopers

Видео What's my big beef with enums? канала Dev Leader
Яндекс.Метрика

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять