Trending

#enums

Latest posts tagged with #enums on Bluesky

Latest Top
Trending

Posts tagged #enums

Preview
How to Use Enums in TypeScript Step-by-Step Enums in TypeScript are a way to define a set of named constants that can be used to represent a collection of related values. They make code more readable and maintainable b...

How to Use Enums in TypeScript Step-by-Step #Typescript #Enums #Constants #Numeric #String #Heterogeneous #Values #Named #Switch #case #Use #Examples #Guide #Beginners #Code

1 0 0 0
Preview
Getting Started with TypeScript for Beginners TypeScript is a powerful superset of JavaScript that adds static typing and other advanced features to the language. It helps developers catch errors early, write cleaner cod...

Getting Started with TypeScript for Beginners #Typescript #Beginners #Tutorial #Javascript #Coding #Programming #Learning #Installation #Compile #Types #Functions #Classes #Interfaces #Enums

2 0 0 0
Post image

Ready to go beyond traditional C# enums? On June 17th, Pawel Gerr’s new article on Smart Enums in .NET drops! Learn how to add type-safety, extensibility & real logic to your code. Stay tuned!
#dotnet #CSharp #Enums

0 0 0 0
Post image

Traditional C# enums too limited? Pawel Gerr’s new article explores Smart Enums in .NET—encapsulate data & behavior for robust, type-safe code!
Read now: https://lnk.thinktecture.cloud/smart-enums-1
#dotnet #CSharp #Enums

0 0 0 0
Original post on accioly.social

For the gophers out there... Just a reminder: a bunch of consts + iota isn't an enum. Slugs aren’t enums. Interfaces, structs, and switch statements aren’t enums either.

Enums are enums.

Scala went through the same BS for what felt like a gazillion years.Just add a proper enum to the language […]

0 0 0 0
Post image

Ready to go beyond traditional C# enums? On June 17th, Pawel Gerr’s new article on Smart Enums in .NET drops! Learn how to add type-safety, extensibility & real logic to your code. Stay tuned!
#dotnet #CSharp #Enums

0 0 0 0
Post image

How to Use TypeScript Enums with Functions Imagine you work in a coffee shop and want to write a ...

pythonguides.com/use-typescript-enums-wit...

#Dictionary #TypeScript #Use #TypeScript #Enums #with #Functions

Result Details

0 0 0 0
A surprising enum size optimization in the Rust compiler · post by James Fennell Personal website of James Fennell

Neat:

“A Surprising Enum Size Optimization In The Rust Compiler”, James Fennell (jpfennell.com/posts/enum-t...).

Via Lobsters: lobste.rs/s/w3jjb2/sur...

On HN: news.ycombinator.com/item?id=4361...

#Rust #PLDI #Compilers #Optimization #Enums #TaggedUnions #Variant #Efficiency #Programming

1 0 0 0
Preview
GitHub - rbuckton/proposal-enum: Proposal for ECMAScript enums Proposal for ECMAScript enums. Contribute to rbuckton/proposal-enum development by creating an account on GitHub.

Fascinating that #TypeScript 's people are talking about getting rid of #enums (union types can handle most of the situations - someone recently wrote they consider TS enums a mistake), yet now we have #Javascript talking about putting them in JS using the TS syntax:

github.com/rbuckton/pro...

1 0 0 0
Preview
Desvendando o Poder das Flags em C# e ReactJS: Por Que Este Simples Truque Pode Mudar Tudo! (#csharp #dev #flags #dotnet #enums #reactjs #javascript #typescript) Aprenda como o atributo [Flags] em C# revoluciona seu código combinando eficientemente múltiplos valores de enum usando operações bitwise. Simplifique seu …

Desvendando o Poder das Flags em C# e ReactJS: Por Que Este Simples Truque Pode Mudar Tudo! (#csharp #dev #flags #dotnet #enums #reactjs #javascript #typescript)

5 1 0 0
Preview
Unleashing the Power of Flags in C# and ReactJS: Why This Simple Trick Changes Everything! (#csharp #dev #flags #dotnet #enums #reactjs #javascript #typescript) Learn how the [Flags] attribute in C# revolutionizes your code by efficiently combining multiple enum values using bitwise operations. Simplify your code, …

Unleashing the Power of Flags in C# and ReactJS: Why This Simple Trick Changes Everything! (#csharp #dev #flags #dotnet #enums #reactjs #javascript #typescript)

4 1 0 0
Post image

#Laravel's mapInto Method: Streamlined Array-to-Enum Conversion 🔄

🔹Laravel's Collection::mapInto method now provides first-class support for #PHP 8.1 #Enums
🔹 Elegantly transforms raw string values into proper enum instances with minimal code

🧵 👇

3 1 1 0
Preview
Wednesday Links - Edition 2025-02-19 Introducing the Model Context Protocol Java SDK (3...

Wednesday Links - Edition 2025-02-19
dev.to/0xkkocel/wed...
#java #jvm #mcp #jit #enums #generics #kotlin

1 1 0 0
IntelliJ IDEA x Scala: Using enums in pattern matching
IntelliJ IDEA x Scala: Using enums in pattern matching YouTube video by IntelliJ IDEA, a JetBrains IDE

youtube.com/shorts/GhdEG...

#scala #intellij #ij #enums #patternmatching

0 1 0 0

I read an article on LinkedIn arguing against using #enums in #Rails models, favoring simple strings instead. While I believe integer enums provide faster indexing, querying, and less storage use, I'm curious why strings would be preferred.

1 0 0 0
Two Overlooked Uses of Enums in Java Enums in Java are commonly used to represent a fixed set of constants. However, they offer more versatility than often realized. In this ar...

Two Overlooked Uses of Enums in Java

#enums #java

blog.vanillajava.blog/2...

2 1 0 0
https://www.youtube.com/watch?v=vjmDb8bSUv4
https://www.youtube.com/watch?v=vjmDb8bSUv4 https://www.youtube.com/watch?v=vjmDb8bSUv4

When using flag enums in CSharp, did you know...

#csharp #dotnet #enums #binary #learntocode

0 0 0 0
https://www.youtube.com/watch?v=q6NLUmtBXkY
https://www.youtube.com/watch?v=q6NLUmtBXkY https://www.youtube.com/watch?v=q6NLUmtBXkY

When's the last time that you used binary in CSharp?

#csharp #dotnet #enums #binary #learntocode

0 0 0 0