Today I found myself reading William Kahan’s homepage after having waded through An Interview with the Old Man of Floating-Point.
Category Archives: Programming
Two star programming
Was referred to this one by my mate bsandro about how to effectively use pointers to pointers: Two star programming.
Subnormal number
This came across my desk today: Subnormal number.
PoC || GTFO
lol. My new books arrived:
These are hilarious and fun. The content is available free online on archive.org. The supplementary files are in the same place. (Some of the PDF files are ZIP files!)
JSON object values into CSV with jq
Use console.log() like a pro
A good summary of the browser console facilities: Use console.log() like a pro.
Data inside the service and data outside the service
Pat Helland has been talking about data inside the service versus data outside the service since at least 2005. I realised back then when I read his paper that the way to model “data inside the service” in C# was to use value types (structs) which could enforce the format and range of its data in the constructor. In this way you could have a value type, say EmailAddress, which had a single string, an email address, and if you passed an EmailAddress to a function, you know you don’t need to revalidate the data, it’s known safe and “inside the service”. Data outside the service is simply a string until it’s brought inside during the construction of a value type for any given domain. The really neat thing about this is how cheap the value types are, they don’t add any overhead, the EmailAddress example above still has only a single string value, and nothing new or additional needs to be allocated on the heap.
Don’t fight the browser preload scanner
I probably should have read this one closer than I did: Don’t fight the browser preload scanner.
Write an audio visualizer from scratch with vanilla JavaScript
This is great: Write an audio visualizer from scratch with vanilla JavaScript.
Distributed Systems Shibboleths
This via r/programming today: Distributed Systems Shibboleths.