Posts tagged with "programming"
Using an external text editor in GameMaker Studio 2

(Despite the post image, this will work for any external editor, not just Vim.) Although GameMaker Studio 2 is a massive improvement over GameMaker: Studio 1.x in every just about single way, including the capabilities of its built-in code editor, programmers who are strongly attached to a particular external editor, be it vim, emacs, VS Code or another, may lament the removal of the feature that let you set an external editor for code. But, thanks to GMS2’s new project format, there is a workaround that will let you...

Review: Why's (Poignant) Guide to Ruby

Out of an anal-retentive desire to put as much of my output in a central place under my control, I’ve added and appropriately back-dated a bunch of old book reviews I like and still agree with to this blog. This was going to be one of them, but I ended up expanding it enough that I decided back-dating would be dishonest. Why’s Poignant Guide to Ruby, available for free on this lovely domain hack, is the strangest book about programming you’ll ever read, combining instructional...

Programming in GameMaker

The first programming language I wrote significant code in was a dinky little scripting language attached to a GUI-based game development program called Game Maker (since rebranded to GameMaker: Studio). The program provides graphical interfaces for creating objects and defining their behaviour by dragging, dropping, arranging and filling in fields, and you can quite happily use this and only this to make a large variety of games: GM works on abstract enough concepts that you’re not restricted to one or two genres of game like you might be if...

Moving to a static site

As of today, this site is no longer powered by the Ghost blogging engine. Before today, this blog was a web application with a database and a complex application server with a lot of moving parts. Now it is a bunch of .html files. These files are generated by Hugo, a static site generator. Apart from a few unrelated CSS changes, you shouldn’t really notice a difference – although now you have to navigate to different pages to see different taglines, rather than just refreshing the front page....

Writing a LaTeX macro that takes a variable number of arguments

LaTeX is the document preparation system of choice for middle-aged computer scientists. Despite its dense, esoteric and downright old-fashioned syntax and general workings, it’s probably still the best way to prepare and typeset complex documents, provided you’re prepared to learn and struggle a lot up front to get your tools and templates set up correctly (and then have everything work forever). One of the nifty things LaTeX provides is the ability to define custom macros. This allows you to do neat, effort-saving things like this: ...