OK so that’s a bait headline but using Sonnet 4.6 for a simple test driven React application revealed some odd decisions. For example, attempting to scaffold code outside the current…
Tag: Coding
From code to container: Lean VPS deployment
Automating your deployments using GitHub Actions and the GitHub Container Registry (GHCR) is one of the most effective ways to stabilize your infrastructure. By building your Docker images on GitHub’s…
JSON
Following on from this post, I thought it might be good to think about JavaScript Object Notation (JSON). Despite its name, JSON has evolved to be agnostic and is arguably…
Interact with API in Python
Overview of REST Representational State Transfer (REST) is a client server communication pattern, which defines some constraints: Any service that adhere to this is known as a REST web service…
Code assistants
I’ve Co-pilot enabled while following a book, The Rust Programming Language (Klabnick and Nichols, 2023). Can’t help but notice that I get code recommendations that are identical to the book….
Multipass cloud-init
Multipass is pretty useful but what a pain this was to figure out, due to Ubuntu’s Node.js package not working with AWS-CDK. Multipass lets you manage VM in Ubuntu and…
Setup a Multipass CDK Environment
I want to be able to connect to the environment using Visual Studio Code, so first we need to create a SSH key: We need a configuration YAML, replace <generated…
Rust
Picked up a book, Programming Rust (2nd Edition) by Jim Blandy, and have been working through it over the holidays (non-stop party here). Published in late 2021, it’s surprising how…
Rainbows, decorators arguments & threads
Playing with Rainbow Hat I learned a few things about Python as a result I found out what a decorator is, the difference between args and kwargs and threads. I…
Python List Comprehension
I’ve been spending time with Python recently and am beginning to really like some of the language’s features. List comprehension creates a list by evaluating an expression on each item…