Bookmark

Bookmarked Wordle to yaml
Post details
I’m playing Wordle. I love a word puzzle and like many have been hooked by the daily game. I wrote wordle-to-yaml-action to archive my Wordle games to a yaml file....

Recommended read: Wordle to yaml | Katy DeCorah https://katydecorah.com/code/wordle-to-yaml/

 Bookmark

Bookmarked API Warfare
Post details
API-first. "Headless" e-commerce. "Headless" BI. We've seen a resurgence of startups reimagine startups like Shopify and Wordpress, but built for developers and built for composability. The API is the product. There's three major risks to building on an API. (1) Requests and responses aren't always the full contract. What happens

Recommended read: API Warfare https://matt-rickard.com/api-warfare/

 Note

Has anything changed with the way that JSON Patch works in #Kubernetes recently? Seeing some failed interactions due to missing the /data/ in the path, and requiring it to be a list of operations. Not quite sure why my code has ever worked tbh 😅

 Bookmark

Bookmarked Avoid using else | freek.dev
Post details
Using else often encourages complexer code structure, makes code less readable. In most cases you can refactor it using early returns.

This is a good tip for any language!

Recommended read: Avoid using else - Freek Van der Herten's blog on PHP, Laravel and JavaScript https://freek.dev/2212-avoid-using-else

 Bookmark

Bookmarked Why does java.net.URL's hashcode resolve the host to an IP?
Post details
Is the idea after the first resolution it'll rely on OS caching? Still this seems inefficient and in cases of multiple domains resolving to the same IP, incorrect. What am I missing?

Recommended read: Why does java.net.URL's hashcode resolve the host to an IP? - Stack Overflow https://stackoverflow.com/questions/2348399/why-does-java-net-urls-hashcode-resolve-the-host-to-an-ip

 Note

After several years of almost doing the migration process, I'm finally shutting down a Scaleway instance (from November 2016!!) and migrating it over to Hetzner, which has already shown a very positive performance increase. I'm sure if I kept it in Scaleway, their new instances would be better, but I've got a few other things in Hetzner, and it makes managing easier, as well as a better price point, too!

 Listen

Listened to Securing the open source supply chain with Feross Aboukhadijeh on the launch of Socket (The Changelog #482)
Post details
This week we’re joined by the “mad scientist” himself, Feross Aboukhadijeh…and we’re talking about the launch of Socket — the next big thing in the fight to secure and protect the open source supply chain. While working on the frontlines of open source, Feross and team have witnessed firsthand how supply chain attacks ...

 Bookmark

I've recently been doing similar with some of my utilities, albeit with an informal comparison between Ruby and Go versions, but would agree that for large, production critical scrips, this is a great way to do it

Recommended read: Rewriting Bash scripts in Go using black box testing https://stackoverflow.blog/2022/03/09/rewriting-bash-scripts-in-go-using-black-box-testing/

 Bookmark

I've been bitten by pinning to latest versions before and definitely agree that where possible we should make sure that things are pinned exactly.

Then we can use tools like Whitesource Renovate / Dependabot to manage updates automatically.

Recommended read: Just say no to `:latest` - Platformers https://platformers.dev/log/2022-03-02-latest-literally-kills-puppies/