Articles by Tag #enums

Browse our collection of articles on various topics related to IT technologies. Dive in and explore something new!

Typescript enums: not magic, just objects⚡🧠

It was my usual 4am 🕓 psycho-dev 🧠 study session, and the topic at hand was TypeScript ⚡. After...

Learn More 6 5Dec 1 '24

🎯 Understanding Enums in Java — The Smart Way to Represent Constants

When you think of constants in Java, you might think of final static variables — but Java gives us...

Learn More 5 0Oct 11

Mastering Record in TypeScript: The Clean Way to Map Enums to Labels and Colors

“Have you ever needed to display user-friendly labels, icons, or colors for numeric enums in...

Learn More 3 2Aug 22

Swift Basics: Enums

An enumeration defines a common type for a group of related values and enables you to work with...

Learn More 1 0Jun 2

Mastering Clean Code: 4 Essential Techniques for Organizing Data in C#

Meta Description: Discover four essential techniques to organize data effectively in C#:...

Learn More 1 0Nov 15 '24

How to derive from an enum in Python?

Welcome to the next pikoTutorial! Recently I'm experimenting a lot with different ways of error...

Learn More 1 0Jul 22

The enigma of Python Enums

The basics of Enums are explained pretty well here. My goal here is to go over some specific pitfalls...

Learn More 0 0Oct 15

Cooking with TypeScript enums

Periodically I hear that something wrong with TypeScript enums. But if you understand how it works...

Learn More 0 0Mar 26

A Beginner's Guide to Enums and Error Sets in Zig

Enums and error sets in Zig offer powerful ways to model states and failures with clarity and...

Learn More 0 0May 10

Mastering the `[Flags]` Attribute in C#: Creating Powerful Bitwise Enums

Learn how to use the `[Flags]` attribute in C# to create bitwise enums for managing multiple states, permissions, or options in a single variable.

Learn More 0 0Aug 11

Enums in Java: The Key to Cleaner, Safer Code

Have you ever struggled with magic numbers or hardcoded strings in your Java projects? Enums provide...

Learn More 0 0Feb 11