remys blog

Build free code & testing ES module imports

A bit of a mouthful of a post title, but I can assure my future self this post will be worthy of publishing because it’ll save future self many angry hours shouting at build tools.The goal: no build tools, which leads to no config, which leads to no waiting around.Let’s get the lie out of the wayThere’s a little config required, but I can assure you, future Remy, it’s a copy and paste job.Whilst I’m admitting things,...

remys blog

An fd trick

If you followed my CLI improved and I’m a fan of the fd command which I’m able to use for a mass git file rename.Doing a mass rename is typically simple in the command line (mv *.mjs *.js - though I'm not sure off the top of my head if this will recurse directories, probably not), but doing a mass rename with git is harder, especially as there's some kind of locking going on. This means that the mass git rename must be run...

remys blog

Buy the coffee

Having been asked my advice on starting a company (usually of one), my advice tends to start with: buy the coffee.Since running my own business I’ll always try to buy the coffee when meeting a client or customer. Meaning more that I’ll try to pick up the bill after our meeting.But, why?Partly because I (might) want their business and it’s my way of saying thank you for your time, I know that it’s valuable.It also avoids any...

remys blog

A thought: Privacy Pollution

This post is very much a stream of thought from a small handful of conversations and triggered by a tweet I saw today.Firefox have launched Track THIS — a “tool” that will launch 100 tabs depending on the persona you select — which I half suspect are based on the Spice Girls personas.The effect of launching the 100 tabs is that cookies are dropped by those site, which (in theory) allows you to see how advertisers track...

remys blog

Reduce spread and the path to unique

As modern JavaScript language features land more and more support I find myself using more and more of the semantic sugar.I’m a big fan of default arguments but I also really like the ...spread syntax. With that, I've found myself using spread syntax to get a list of unique elements, except until recently, I didn't understand what was under the hood.Required readingI’m always extremely wary of when I come across “X is an...

remys blog

Compiling binaries for Netlify

There’s the odd occasion that inside of a Netlify build (or maybe a lambda function) that I’ve wanted to execute a custom binary. Most recently for me, a C based program called goaccess. This is my “easy” method for compiling to run inside of Netlify.“Easy” because it’s the way that works for me in a repeatable fashion.Why is this difficult?Because I’m a moron, and I don’t have the patience to learn how it all...