How to Use Enum in C#: Declaration, Values, and Best Practices
How to Use Enum in C#: Declaration, Values, and Best Practices
Magic numbers are a silent tax on every codebase that uses them. When you see if (role == 3) six months after writing it, you have to trace back through history to remember what 3 means. Using enum in C# eliminates that problem entirely -- it replaces numeric literals with meaningful names that read like prose.
This guide covers how to declare enums, assign explicit values, cast to and from integers, compare and iterate over members,...
Take me to this post.
April 27, 2026
Rhumb Studio: Small but Mighty, Shaped by Curiosity
A two-person studio working between Bristol and Paris, redefining web design by crafting immersive, spatial experiences that feel less like pages and more like places....
Take me to this post.
April 27, 2026
Looking at consequences of passing too few register parameters to a C function on various architectures
It's bad news no matter how you slice it, but Itanium makes it even worse.
The post Looking at consequences of passing too few register parameters to a C function on various architectures appeared first on The Old New Thing....
Take me to this post.
April 27, 2026
State vs Strategy Pattern in C#: Key Differences Explained
State vs Strategy Pattern in C#: Key Differences Explained
Both the state pattern and the strategy pattern are behavioral design patterns from the Gang of Four catalog, and they share a nearly identical class structure. Both encapsulate behavior behind an interface and delegate work to interchangeable implementations. From a UML diagram, they look the same. But when you examine state vs strategy pattern in C# closely, the behavioral differences are significant -- and choosing the wrong one leads...
Take me to this post.
April 27, 2026
CodeSOD: The JSON Template
We rip on PHP a lot, but I am willing to admit that the language and ecosystem have evolved over the years. What started as an ugly templating language is now just an ugly regular language.
But what happens when you still really want to do things with templates? Allison has inherited a Python-based, WSGI application which rejects any sort of formal routing or basic web development best practices. Their way of routing requests is simply long chains of "if condition then invokeA elif otherConditio...
Take me to this post.
April 27, 2026
AI Career Fears Are Evolving -- Here's What I'm Hearing - Dev Leader Weekly 137
TL; DR:
AI career anxiety is shifting from "replaced" to "left behind"
Tool usage gaps and product integration gaps are different problems
Your engineering fundamentals are more transferable than you think
I'm on-call this week -- no live stream. Sorry!
The AI Career Conversation Is Changing
If you spend any amount of time in developer communities, on social media, or just talking with engineers in your circles, you've probably noticed that the AI conversation has shifted. It's not the same c...
Take me to this post.
April 27, 2026
POV
Most people say the City watches us all the time: on the streets, at work, in the shower, while we sleep. Most people are childish and naive.I think He watches us.I think that’s what He built the City for.I don’t think every car crash is an accident or every medbed death unavoidable. I think He does it not to protect Himself or the City but because He likes to watch.The thought is a feverish flush I keep hidden. I know He knows but still when we are alone at home me and His cameras microphones a...
Take me to this post.
April 27, 2026
Humans, Keep the Initiative
Humans, Keep the Initiative...
Take me to this post.
April 27, 2026