How Not To Write A Web Service in Rust

Posted on Sun 11 August 2024 in general • Tagged with software, rust, programming, webdev

When writing a web service in Rust you may be tempted to do careful research based on your use case, to tailor your code to fit the needs of a typed language with strict memory safety, and to take a pragmatic approach to development. Doing things this way might make …


Continue reading

Stacks for Simple Static Sites

Posted on Sat 17 February 2024 in general • Tagged with programming, productivity, webdev

Wouldn't it be great if you could type out an article on your computer, push a couple of buttons, and have it appear on the web? No clunky page builders, no admin logins, and no mandatory updates.

With the right setup for your website, this is possible.

I wrote about …


Continue reading

The Unreasonable Effectiveness of Simple Websites

Posted on Sun 11 February 2024 in general • Tagged with programming, productivity, webdev

Simple websites are better than beautiful ones.

I'll repeat that for the folks in the back.

Simple websites are better than beautiful ones.

Let me be clear what I mean by a simple website. I don't mean a Wordpress site with a minimalist theme. I also don't mean a Substack …


Continue reading

Hard to Parse: Designing a Language II

Posted on Mon 15 January 2024 in general • Tagged with programming

After writing the lexer I could turn any math expression into a set of tokens. However, they were still organised as a list and couldn't be used to do any useful work. To go from a list of tokens to a program, I needed to write a parser.

The goal …


Continue reading

Lexing On My Haters: How to Design a Programming Language I

Posted on Wed 12 July 2023 in general • Tagged with programming, software

Trying to build a complex program in Python is like trying to build a house out of jello. I love it, but while Python's delicious, flexible, and lacks the annoying quirks of most languages, this relaxed nature is a dire problem for complex projects. Python uses duck typing:

If it …


Continue reading