↓Skip to main content

Articles

Engineering notes, troubleshooting guides, and experiments. Browse by topic for a suggested reading path.

Connect to Bluetooth Low Energy devices using Golang
·7 mins
Using Golang and TinyGo's BLE library, learn how to connect to Bluetooth Low Energy devices. This introduction uses the AOJ-20A thermometer from Lepu but using other BLE enabled devices will work in a similar way.
WebAssembly: Go vs Rust vs AssemblyScript
·6 mins
A browser sorting benchmark comparing JavaScript, Go, TinyGo, Rust, and AssemblyScript, with source code and test conditions.
Go: Cross-Compilation Including Cgo
··4 mins
How to cross-compile applications for other platforms with Go and Cgo
Things to Follow
A personal reading list of software, business, and learning resources, including Patrick McKenzie and fast.ai.
Golang Errors With Stacktrace
·3 mins
Capture and inspect stack traces in Go with go-errors/errors to find where an error originated.
Golang Generic Option Type
·4 mins
Build a generic Option type in Go with Some, None, filtering, and fallback values using Go 1.18 generics.
React Performance Profiling
·3 mins
Use the React DevTools Profiler to find unnecessary renders, interpret flamegraphs, and investigate a slow component.
Go Goroutine Loop Variables: Before and After Go 1.22
··3 mins
Understand goroutine loop-variable capture before and after Go 1.22, including shared variables and safe argument passing.
Website Scraping - Part 2 - Parsing HTML with NodeJS and cheerio
·3 mins
Parse downloaded HTML with Cheerio and CSS selectors in the second part of this Node.js scraping tutorial.
Website Scraping - Part 1 - Fetching a website with NodeJS
·4 mins
Fetch a web page with Node.js as the first step in a two-part HTML scraping tutorial.