JavaScriptfromjsdevspace.substack.com6 days agoShrink TypeScript Code: Replace Enums with Const ObjectsUse const objects with type aliases instead of enums to keep type safety and IntelliSense while producing smaller JavaScript bundles.
PythonfromLuke Plant's home page3 months agoStatically checking Python dicts for completenessCreating a complete dictionary for enum states in Python can be ensured through a specific coding technique.
UX designfromInfoWorld4 months agoFive rules for coding with BooleansUsing enums over Booleans improves clarity and maintainability in code. Future expansions are easier to implement with enums.