---
title: "#enums articles | Hashnode"
description: "Explore 8 articles tagged #enums on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/enums"
---

Tag

# #enums

8 posts · 0 followers

[Muhammad Yafi Alhakim](https://hashnode.com/@yafialhakim) · [Apr 7](https://hashnode.com/posts/structs-enums-the-blueprint-and-state-machine/69d4dff317f859d321cffb70)

### [Structs & Enums: The "Blueprint" and "State Machine"](https://yafi.hashnode.dev/structs-enums-the-blueprint-and-state-machine?utm_source=hashnode&utm_medium=feed)

In JavaScript, you often use plain objects for everything. In Rust, we use Structs and Enums to model data with absolute precision. Think of it as the difference between a "Sketch" and an "Engineering Blueprint." 🏛️ 1. Structs: The "Blueprint" Cont...

2 min read · [yafi.hashnode.dev](https://yafi.hashnode.dev/structs-enums-the-blueprint-and-state-machine?utm_source=hashnode&utm_medium=feed)

[Nishil Bhave](https://hashnode.com/@nishilbhave) · [Mar 28](https://hashnode.com/posts/php-81-enums-backed-enums-and-laravel-eloquent-casts/69c849b97780190b9b62ae4f)

### [PHP 8.1 Enums: Backed Enums and Laravel Eloquent Casts](https://nishilbhave.hashnode.dev/php-81-enums-backed-enums-and-laravel-eloquent-casts?utm_source=hashnode&utm_medium=feed)

PHP 8.1 Enums: Backed Enums and Laravel Eloquent Casts PHP enums landed in version 8.1, and they've quietly become one of the most adopted features across the ecosystem. With 85.9% of Packagist users now running PHP 8.x (Stitcher.io, June 2026), ther...

17 min read · [nishilbhave.hashnode.dev](https://nishilbhave.hashnode.dev/php-81-enums-backed-enums-and-laravel-eloquent-casts?utm_source=hashnode&utm_medium=feed)

[Morteza Jangjoo](https://hashnode.com/@Jangjoo) · [Aug 11, 2025](https://hashnode.com/posts/mastering-the-flags-attribute-in-c-creating-powerful-bitwise-enums/689a25c4cea011a633405ee9)

### [Mastering the \[Flags\] Attribute in C#: Creating Powerful Bitwise Enums](https://jangjoo.hashnode.dev/mastering-the-flags-attribute-in-c-creating-powerful-bitwise-enums?utm_source=hashnode&utm_medium=feed)

The \[Flags\] attribute is applied to an enum to indicate that it should be treated as a bit field a set of flags that can be combined using bitwise operation

3 min read · [jangjoo.hashnode.dev](https://jangjoo.hashnode.dev/mastering-the-flags-attribute-in-c-creating-powerful-bitwise-enums?utm_source=hashnode&utm_medium=feed)

[Adam Boileau](https://hashnode.com/@AdamBoileau) · [Feb 15, 2025](https://hashnode.com/posts/enums-in-java/67afff2477a03dd76253e309)

### [Enums in Java: the key to cleaner, safer code](https://practical-dev-il.hashnode.dev/enums-in-java?utm_source=hashnode&utm_medium=feed)

Discover how Java enums provide cleaner, safer, and extensible code with real object capabilities, enhancing readability and security in programming

7 min read · [practical-dev-il.hashnode.dev](https://practical-dev-il.hashnode.dev/enums-in-java?utm_source=hashnode&utm_medium=feed)

[Asfia Aiman](https://hashnode.com/@asfiaaiman) · [Sep 17, 2024](https://hashnode.com/posts/mastering-enums-in-laravel-handling-enum-values-in-blade-templates/66e971761c0cb304c4869a0d)

### [Mastering Enums in Laravel: Handling Enum Values in Blade Templates](https://asfiaaiman.hashnode.dev/mastering-enums-in-laravel-handling-enum-values-in-blade-templates?utm_source=hashnode&utm_medium=feed)

Easily Handle Enum Values in Your Laravel Blade Views

4 min read · [asfiaaiman.hashnode.dev](https://asfiaaiman.hashnode.dev/mastering-enums-in-laravel-handling-enum-values-in-blade-templates?utm_source=hashnode&utm_medium=feed)

[Harsh Chandwani](https://hashnode.com/@harshchandwani) · [Aug 25, 2024](https://hashnode.com/posts/enums-in-typescript/66cad1a93efe4a6e7a90d96b)

### [Enums in TypeScript](https://harshchandwani.hashnode.dev/enums-in-typescript?utm_source=hashnode&utm_medium=feed)

Here is the typescript file where I have compared enums with types //Okay now lets do this //basically when want to have a function, that should only some particular values, and it will be string //one option is to create a if statment that can handl...

2 min read · [harshchandwani.hashnode.dev](https://harshchandwani.hashnode.dev/enums-in-typescript?utm_source=hashnode&utm_medium=feed)

[Prabhdeep Singh Basra](https://hashnode.com/@Prabs09) · [Jul 12, 2022](https://hashnode.com/posts/enums-in-java/62ccca6c0ba13ab923f69659)

### [Enums in Java](https://prabhdeep.hashnode.dev/enums-in-java?utm_source=hashnode&utm_medium=feed)

Enums in java are a special type of data type that lets a variable only have a set of predefined constants. The most common example are days in a week ( MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY ) or cards in a standard deck, seasons etc...

2 min read · [prabhdeep.hashnode.dev](https://prabhdeep.hashnode.dev/enums-in-java?utm_source=hashnode&utm_medium=feed)
