Lessons:
1. Remember to write tests
2. Tests will lie to you if you're not careful
3. Code can look correct yet still be silently wrong
4. Silently-wrong code can be live for months or years with no one noticing
5. Computers were a mistake. I need a sailboat and a long break from everything.
Peak "how did this ever work" today in PHP land. I was debugging a method that was improperly returning an empty array. Dig into the code ... and found that it was hard-coded to do so.
But oh! Polymorphism meant a subclass had a non-empty-returning implementation.
Yet that was still improperly returning an empty array.
Ultimately, the very innermost method was returning an array with the wrong schema, which caused subsequent lookups to be blank.
A one-line fix got it working.
Ooh, this might be useful. "A new OAuth2 client for Javascript" https://evertpot.com/oauth2-javascript-client/
While digging through this obvious scam, I did manage to learn that OSM already has this. It's called "KartaView" (though as one point also had the more reasonable sounding name "OpenStreetView") https://wiki.openstreetmap.org/wiki/KartaView
Support OpenStreetMaps, do not support those sketch AF looking clowns with a crypto-mining-dash-cam.
... and while the internal jax library might be able to support cpu-bound rendering using the 'iree' variant rather than the 'cuda' one, it's refusing to install jaxlib, so I can't even try that out ...
Went on a bit of a domain purchasing spree yesterday, but in a wonderful twist on that old saw, I also actually built and shipped a webpage on one of them:
https://www.sailingcoops.com - a directory of cooperative and nonprofit sailing organizations.
Current status: Wondering if I'll have to ditch a database droplet on DigitalOcean and switch to a database cluster ... a 200% price increase - if it can even handle the same workload, otherwise I'd have to go to the larger cluster sizes (6x and 12x the current cost, respectively, for the larger sizes)
Hobby projects can get expensive, it seems.
i guess that's one way to avoid friday deploys #github #gha #hugops https://www.githubstatus.com/incidents/zhtplv7zd052
I wrote up a blog post about some of the issues I encountered with my recent Wordpress project. Includes some tips on how to make a "members-only" area for a club or organization website.
https://whateverthing.com/blog/2022/05/25/wordpress-setting-sail-without-a-clew/ #wordpress #php #sailing #SookeSailingCoOp
Ooh, #WordPress 6.0 is out. Tons of new stuff for managing blocks and styles, lots of writing improvements like selecting multiple paragraphs of text and typing [ [ to get a list of recent posts and pages, you can lock blocks, more template options, and lots of accessibility improvements. Nom nom.
WordPress 6 announcement: https://wordpress.org/news/2022/05/arturo/
WordPress 6 accessibility improvements: https://make.wordpress.org/core/2022/04/20/wordpress-6-0-accessibility-improvements/
Software developer. Photographer. Sailing enthusiast. Known on twitter as "beryllium9".