markjgsmith

2023/12/01 #

Catching up on coding - I've been out of build minutes the past 5-6 days. The counter reset yesterday, so today I've been trying to get back into the coding mindset. I wrote quite a bit of code this past week but didn't have a way to test or deploy it. Now that I'm getting setup to test it all, it's become obvious that I need to refactor some of the plugins to have more tests, to lighten the burden on the website main project.

The thing I'm trying to avoid is running out of build minutes again. The website's npm module cache is great for normal time operation, it saves loads of build minutes, but when the plugins are changing, I effectively have to turn off the cache to get the updates into the website. It's a real hassle, error prone, and wastes loads of build minutes.

So I'm moving what tests I can from the main website repo into the plugin repos. I'm hoping that will make things easier to manage, and save on build minutes, because the plugins have less dependencies. I won't know for sure until it's done, but my huntch is that it will, and it will be better organised in any case.

Of course as I'm doing that I've found that the various plugins were all using their own test fixtures data. I had setup a seperate repo with test data but was only using it in the main website project. As part of the refactor then, I'm going to make sure all the repos use the test data from the same repo, rather than each having their own, possibily inconsistent data.

It takes a bit longer than you expected, which can be frustrating at times, especially when you've been waiting eagerly for what feels like ages to test your latest code. But I'm mostly used to it, and I can see that the setup will be way more robust once this little update is done.

It's the way things often happen with software. #

Today’s links:

  • Web Components Eliminate JavaScript Framework Lock-in - I wouldn't say that I perfectly understood all this, it's a lot to get through reading it on a small screen. Combine that with an unfamiliarity with react and web components syntax, and the fact there are several frameworks, and even vanilla javascript. Kind of tough. But...I got enough to see I really like it. I've been wondering what slots are for ages. Pretty cool. It's really well written because the example is simple, but not so simple that it doesn't do anything meaningful. Naturally since all my dev work at the minute is serverside, I now want this serverside :) jakelazaroff.com #

  • Building bridges - A Twitter thread from me about how people come together in difficult circumstances and build things that make a real difference to everyone. It's tough going, but little by little progress is made. And then hopefully things get easier. It's worth taking a moment every now and again to reflect, so you can remember how things used to be, and see more clearly how things can be in the future. twitter.com #

  • London’s famed black cabs will be listed on Uber’s app in big win for the ridehail company - "Next to New York’s yellow cabs, the black cabbies of London are arguably the most iconic taxis in the world" - The Londoner in me was immediately outraged by this statement! But on reflection, the yellow cabs have a bigger marketing department don't they, so I guess they probably are a bit more iconic worldwide. Still, there's nothing quite like piling into the back of a black cab on a night out. And that turning circle really is very impressive isn't it. Anyhow hope all the cabbies back home are doing alright. www.theverge.com #

For enquiries about my consulting, development, training and writing services, aswell as sponsorship opportunities contact me directly via email. More details about me here.