↧
Announcing the TypeScript Cookbook
Oops, I did it again! I’m writing another book, and it’s again about TypeScript. I’m happy to announce The TypeScript Cookbook, to be published in 2023 by O’Reilly. You can check it out in Early...
View ArticleRefactoring in Rust: Abstraction with the Newtype Pattern
The following piece of code takes a PathBuf and extracts the file name, eventually converting it to an ownedString.
View ArticleRefactoring in Rust: Introducing Traits
In the same codebase as last time, we extract data from a HashMap<String, String> called headers, presumably dealing with something similar to HTTP headers.
View Article