SvelteScript

As I’ve been experimenting with Svelte, I wanted to hone my JavaScript skills. I’ve done some development in the past but it’s been a while and things have changed. I did some research to figure out what might be a good resource and ended up reading Modern JavaScript for the Impatient to get back up to speed. As it says on the tin, it’s all about modern JavaScript and skips much of the old and weird stuff that you really don’t need to know in favor of getting to the point for developers who know other languages.

Read More

Svelter - part III

I went through the rest of the Svelte tutorial to understand the basics. It’s a nicely structured tutorial and I was able to get the gist of the major features of Svelte by going through it. Svelte has a lot of power and the compilation process makes it simpler to deal with than some of the other modern frameworks. The proof is in the pudding though and I’ll need to actually build something to see how it all fits together.

Read More

Good news

If all you read are the headlines, you would think that the world is going to Hell in a coal-fired hand basket driven by Vladimir Putin. However, there is some good news out there. Future Crunch has a great article pointing out some of the good stuff that is happening in the world. It’s a much needed jolt of positivity as we enter into the winter darkness. My Top 10 are 1, 11, 12, 39, 41, 49, 69, 70, 82 and 87.

Read More

Maybe we don't need lasers...

I wrote a few weeks ago that we might be able to use fiber optics to monitor infrastructure. That’s pretty cool and all of that but wouldn’t it be much better if we could just roll across the bridges watching a TikTok and generate useful data to monitor infrastructure? Apparent, that might just be possible. It’ll take some time to become a reality, but someday maybe our bridges will be safeguarded by lasers and iPhones.

Read More

Stoller was right

When you’re right, you’re right: The amount of utopian bullshit and fake promises on a technology that doesn’t really work as anything but a speculative bubble and money laundering device should be a big red flag. Crypto is a movement based on the theory that the existing nation-state is a system rigged by billionaires, and the right response is to create a different and more corrupt order rigged by different billionaires, money launderers, and dictators.

Read More

Svelter - part II

The next interesting bit about Svelte is the reactive functions. Often code needs to do something in response to a variable change. Svelte makes that easy by automatically rendering the view when a variable is reassigned on the next browser paint. That’s nice but sometimes you need to react to a variable change inside of the script before it gets rendered. For example, if you need to get new data from the backend on the change of a variable.

Read More

Svelter

I’ve been doing some more digging on Svelte and have learned some interesting stuff. A basic thing is the way that Svelte just uses {brackets} to demarcate dynamic content. Everything that is inside the brackets is just JavaScript. Another very basic thing is how the control flow works. It’s very much as expected and supports {if} with multiple {:else if} branches all closed with a final {/if} as well as {#each} for iterating through a list.

Read More

YAJSF

Yet Another JavaScript Framework has caught my attention. This time, it’s Svelte. I don’t build web pages often, but it’s good to know how to use a framework to be able to build the simple stuff I do. I’ve experimented a bit with the mainstream ones (Vue and React) but they are a little much. I need something simple and it looks like Svelte fits the bill. I heard of Svelte in a newsletter from The Economist where they described how they produce some of their interactive web presentations and mentioned the Svelte framework (among a few other things).

Read More

Bit Rot

I noticed the other day that the search function on this blog had somehow been broken. I’m not sure how as I’ve not changed anything recently in the layout or functionality. In any event, it wasn’t working and I wanted to fix it. After a quick look at the harbor theme README.md indicated that I needed to have a search.md file in the content directory. I didn’t have it so I created the very simple file and added it.

Read More

Rusty Linux

I’m intrigued that the Linux kernel is moving beyond C and allowing Rust in the 6.1 kernel. It seems like a 30 year run of using C is long enough. Times change and the kernel has to change as well. I don’t know much about Rust, but this makes me interested in taking a deeper look. Writing really solid C code is notoriously hard even using modern techniques to avoid buffer overflows and the like.

Read More