Hello reader! I'm Sami Fayoumi, a Software Engineer based out of London, Ontario. I'll be sharing content related to programming, urban planning, and anything else that catches my interest.
I have recently been building a system with a web frontend that runs on Fly. Maintaining a local web development environment had been cumbersome and required maintaining mock APIs or running test versions of the APIs locally. With Fly's wireguard integration and some Openresty Lua scripting, I was able to avoid this trouble by serving my local web development server through staging and development environments on Fly.
I write most of my backend code in Go, with PostgreSQL as my primary database. Queries are written in Go strings, and have no SQL syntax highlighting. I never considered trying to apply syntax highlighting to SQL strings, but Neovim and Tree-sitter made this too easy to ignore.
In my research into Snowflake ID , I encountered a surprising limitation with JavaScript's number type. All was well when generating Snowflake IDs in my Go code, but there was a problem decoding IDs in the JS console.