I'd typed statusConfig as { [key: string]: Config }, so misspelled "refundeded" returned undefined and the compiler never blinked.
Record<OrderStatus, Config> made the typo a compile error.
#TypeScript #WebDev
I'd typed statusConfig as { [key: string]: Config }, so misspelled "refundeded" returned undefined and the compiler never blinked.
Record<OrderStatus, Config> made the typo a compile error.
#TypeScript #WebDev
buff.ly/zEIkXAU
#Java
buff.ly/zEIkXAU
#Java
Whatever shape your data takes (a thirty-field DTO, a generic page of results, a Set three records down) 0.4.10 maps it, focuses it and traverses it with code your build compiles.
One parse, every bad field, one 422:
github.com/higher-kinde...
#Java #JVM
Whatever shape your data takes (a thirty-field DTO, a generic page of results, a Set three records down) 0.4.10 maps it, focuses it and traverses it with code your build compiles.
One parse, every bad field, one 422:
github.com/higher-kinde...
#Java #JVM
So with
```
OrderStatus {
Ordered = 0,
Paid = 100,
Confirmed = 200,
...etc
}
```
if status is 200, then 0 and 100 are also true, so I can check `if (thisStatus <= orderStatus)`
So with
```
OrderStatus {
Ordered = 0,
Paid = 100,
Confirmed = 200,
...etc
}
```
if status is 200, then 0 and 100 are also true, so I can check `if (thisStatus <= orderStatus)`
#epsteinweb #efta00489818
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta00489818
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta00360917
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta00360917
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta00360121
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta00360121
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02327245
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02327245
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02327200
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02327200
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02324740
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02324740
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02322598
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02322598
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02318427
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02318427
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02311925
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02311925
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02277074
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02277074
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02093141
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02093141
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02091734
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02091734
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
Result is already marked as must_use but other types can be too!
It's good to add #[must_use] when ignoring the return value of a function is almost always a bug.
Result is already marked as must_use but other types can be too!
It's good to add #[must_use] when ignoring the return value of a function is almost always a bug.
#TrackTemuOrder #NigerianShoppers #OrderTracking #TemuTips #EcommerceNigeria #OnlineShopping #ShopSmart #DeliveryTracking #TemuGuide #NigerianEcommerce #ShippingUpdates #DigitalShopping #OrderStatus #Customer
Once services accept Expressive objects, unit tests mean constructing a plain PHP object.
new Order(['status' => OrderStatus::Pending])
No database. No factories. No mocking Eloquent.
Once services accept Expressive objects, unit tests mean constructing a plain PHP object.
new Order(['status' => OrderStatus::Pending])
No database. No factories. No mocking Eloquent.
One trait on your Eloquent model. One artisan command to scaffold a typed class.
Your services receive public typed properties - OrderStatus $status, int $totalPence. Your IDE actually knows what they are.
One trait on your Eloquent model. One artisan command to scaffold a typed class.
Your services receive public typed properties - OrderStatus $status, int $totalPence. Your IDE actually knows what they are.