Profile avatar
allandeutsch.com
👨‍💻 Software craftsman 🎟️ Seattle tech event impresario Currently building 🐤 docduck.dev to help teams get useful developer docs feedback.
849 posts 267 followers 293 following
Getting Started
Active Commenter

Added a readme for `Optional`. It includes: - An explanation of why you might want to use `Optional` - an overview of the `Optional` interface - An example using `Optional` to simplify code Check it out and let me know what you think!

Tired of manually checking `if(value === null) {...}` before using a value? I made a better Option(al)! Instead of writing functions that return `Result | null`, wrap the result in an `Optional`. With an Optional it's possible to do things like `maybeString().map( s=>s.length ).value_or(0)`.

TIL that Mexico takes their elections seriously in a couple unique ways compared to the US: 1. They have their elections on a weekend so it is easier for everyone to vote 2. During election weekend, alcohol sales are banned (exception for tourist areas but require it be served with food)

The soundtrack for the moment: Bad DOGE No Biscuits

Potatoes are overrated and the other popular root vegetables are more delicious.

TIL the history of sort() and toSorted() in JS! It turns out sort came first and was in-place. When it came time to add a non-mutating sort, @ashley-c.bsky.social went with a separate method to be consistent with other langs (python, kotlin) and containers (Record, Tuple). The more you know 🧠

The highest pace of learning I had was building game engines. I went deep on so many topics - generic interfaces and API design, memory management, performance optimization, parallelism, data structures, etc. I even got involved in c++ standardization! Trying to improve the wheel is 🧠📈📈