Dimensions/Units of Measure
I was playing around with the NewType pattern in Rust by coding a set of length quantity types. As usual, that means a set of similar crates wandered into my view:
I was playing around with the NewType pattern in Rust by coding a set of length quantity types. As usual, that means a set of similar crates wandered into my view:
A 4.5 year old tweet about serverless: https://twitter.com/kylerankin/status/1067576106352427008 It’s much easier to understand #serverless apps once you realize they are just CGI scripts from 20 years ago, but with proprietary interfaces so you are locked into one provider. #devops — Kyle Rankin
Following up on the different types of IDs from last time, it’s often useful to have an ID that can be sent in a URL. The unique ID may not be appropriate for many reasons. Many systems use something called a slug for this purpose. A slug must be unique, but can change under some… Read More »
Several times in my career, I’ve needed to deal with data structures that lasted more than a short period of time. Sometimes they were actual objects, sometimes just collections of data that belong together without any actual behavior. Many times these structures needed to be stored somewhere. When working on projects like that, I find… Read More »
Interesting article describing some patterns for defining errors in Rust. I had found myself slowly moving in that direction for some of my code. This puts some useful concepts in a cleaner form.
One approach for design trade-off is between: Until recently, I tended to treat the second and third as the same. With some more thought, I’ve convinced myself they are not.