🖼️00Read later0Read MorePHP Traits in TypeScript: 4 Idioms That Replace ThemDEV Community·Gabriel Anhaia·6 months ago#30t4Xbkm#idiom#typescript#php#javascript#class+6 more🧰Tag tools✨Add tagPHP traits share method bundles across classes. TypeScript has none. Four idioms cover 95% of the cases, and one of them is just a function.15s
🖼️00Read later0Read MoreFrom Java's Optional<T> to TypeScript: Three Idioms That Replace It CleanlyDEV Community·Gabriel Anhaia·6 months ago#6MnYpyFW#idiom#typescript#java#programming#undefined+4 more🧰Tag tools✨Add tagHow to translate Java's Optional into TypeScript: union with undefined, Result discriminated unions, and fp-ts/Effect Option.15s