Menu

#OrderStatus

5 posts

Feed·
5 of 5 posts
Making Impossible States Unrepresentable: Finite State Machines & Event Sourcing in PHP 8.3
📰
0Read More

Making Impossible States Unrepresentable: Finite State Machines & Event Sourcing in PHP 8.3

DEV Community: php·Sherif Ramadan·7 days ago
#wStQWqei
#devto#dev#order#event#function

Kill boolean flag soup forever. Build a strict Finite State Machine, a zero-dependency SQLite Event...

15s
Duplicate refunds from scattered status checks: fixing it with the State pattern in C#
📰
0Read More

Duplicate refunds from scattered status checks: fixing it with the State pattern in C#

DEV Community: dotnet·Eduardo Teixeira·14 days ago
#2ggsYE9L
#devtodotnet#devto#dev#order#status

A returned order that can still be cancelled gets refunded twice. How scattered status ifs cause it and how the State pattern fixes it in C#.

15s
PHP Enum Methods to TypeScript: Why Discriminated Unions + namespace Beats class enums
📰
0Read More

PHP Enum Methods to TypeScript: Why Discriminated Unions + namespace Beats class enums

DEV Community·Gabriel Anhaia·7 months ago
#DhlWFxPT
#pattern#typescript#php#orderstatus#paid

PHP enum methods to TS: discriminated union plus a same-named namespace. Three patterns and why TS enum is the wrong reach in 2026.

15s