Recently, I came across the following Stack Overflow question regarding state handling on refresh in a single page application (SPA). I found the approach OP was taking towards developing a SPA interesting: they wanted to avoid third party libraries and frameworks because they “prefer the simpler ways first”.
Here’s the question that sparkled this article:
I’ve made a simple proof of concept to illustrate how one could achieve what they were looking for, which can be seen here (or cloned from github).
In the uploaded version, I’m using the last URL parameter to determine what should be loaded. This is…
If you clicked this article for its title, I’m sorry to disappoint you: I’m not writing a Lord of the Rings spin-off based around the Middle-earth adventures of Smeagol’s hobbit cousins. What I am going to do is walk you through how I turned my github profile’s timeline into a working Game of Life that updates daily. So fill up your wizard pipe and join me on this programming adventure!
Here are screenshots of the first few iterations of the final product:
The first step on my journey was forging cligol (command-line interface Game of Life), a small C script…