LRG

An LRG copypasta series

Software

Welcome to this selection of carefully crafted articles and essays.

A Commodore Vic20 and accessories, in a museum display
A Commodore Vic20 and accessories, in a museum display

Nah, I’m kidding, it’s just a bunch of chaotic thoughts, experiments, notes and stuff, barely organised into some kind of public blog. The image above is a Commodore Vic20, 1 the first computer I ever owned.


Failing at web components

I think I should know about Web Components™ I have no idea how this is going to work, but I have used Vue & React components in the past. I personally feel like Web Components should be the way forward, but my lazy self has not spent any serious time trying to get to grips with them

but here’s what I imagine a web component might look like. Absolute pseudo-code. I know nothing.

<script>
	// some JS goes in here to make things work
</script>
<template>
	<!-- some HTML goes in here -->
</template>
<style>
	/* some scoped CSS go in here */
</style>

This is probably a reflection of how much time I’ve spent in Vue.js recently, but it’s conceptually what I’m imagining is required to build something as a Web Component.

…Read more