Welcome to the New Site; same as the Old Site.

I’ve been meaning to consolidate my personal websites onto this domain for a long, long time. My original personal website, dflock.co.uk, started in the late nineties - and has been getting a bit long in the tooth of late.

Screenshot of the current version of the dflock.co.uk website homepage, at the time of publishing this post. It's kinda green and nineties looking.

Static text files - the gift that keeps on giving.

That site has been up, looking mostly like that, for ~15 years - with zero maintenance or downtime. Nice to know it’s still valid CSS 1.0 :)

When I created that site originally, the options were either Adobe PageMill, or hand editing HTML in a text editor. I’ve never been a fan of WYSIWYG editors - and the early ones were… not good, so I wrote all the HTML code by hand.

That site also has some data heavy pages, which are manually published from XML files using XSLT to output HTML, processed by Saxon, later XMLStarlet — again, all written and run by hand.

As far as I can remember, I did all that on a 486sx Windows ‘98 PC, using the TextPad text editor — which is apparently still available, unlike Adobe PageMill.

Baked, not Fried

Since then, I’ve been in the trenches doing web development, amongst other things. Along came CSS, then PHP, Dynamic Sites, MySQL, JavaScript (anyone remember DHTML?), AJAX, Web Apps, Websockets, Ruby, Python, Cloud Hosting, HTML5, etc, etc… things have got a lot more complex in the web development world over the last 15 years.

There are good reasons for most of these, obviously, but it unavoidably layers on a lot of complexity. Websites that were originally just a folder full of static files are now a complex cocktail of many different pieces of technology. A ‘simple blog’ nowadays might well combine PHP, MySQL, HTML, CSS & JavaScript — like WordPress does, for example. All of these moving parts have to work together to deliver the site — and they all have to be bulletproof to keep it secure.

But in the end, browsers still mostly just display HTML, CSS & JavaScript - which they load from the server. How you generate that in the first place is up to you. You can bake it in advance, or fry it up on each page request. The most recent spate of widely publicised WordPress security exploits might have tipped me over the edge - I decided that I wanted to simplify.

If I was going to update my old sites, I was going to do it Old School - static files, lean & clean.

So, here we are, full circle

I’m sitting writing this post in ReStructuredText - a simple, easy-to-read, what-you-see-is-what-you-get plaintext format. I’m using an amazing text editor - SublimeText - on a quad core, 8GB RAM, Linux box. Every time I hit CTRL+s, Pelican automatically pours my words into the site’s templates (written in Jinja) and bakes it all into static files in a folder. It’ll then upload it to my server if I want, or I can upload them myself.

Screenshot of the above paragraph being written in SublimeText.

Just write, save and a website appears, as if by magic.

Static text files - they really are the gift that keeps on giving.

That same, but different. The same, but better.

Related Posts