Application State Study (Hamurabi Port)

I had to drop out for a month to deal with taxes and keep porting this site.  I’m catching up, and this article is a meandering mess that goes nowhere, so, if you value your time, don’t even read it.

I was porting the Hamurabi code to run with React, built the UI, and got a little confused about where to keep game state. Many coders seem to have this problem, according to the tutorials.

Continue reading Application State Study (Hamurabi Port)

PHP Partial Evaluation and Functional Style Programming for Nested Arrays

An example of partial application in PHP, using closures to implement functional-style programming. This technique helps to collapse loops into functions, and shorten code.

This article is based on an older article that has been cleaned up and improved.

Continue reading PHP Partial Evaluation and Functional Style Programming for Nested Arrays

How to Add a REST API to an Existing Django Project

This is a note I wrote to myself about how to add Django REST Framework to an existing project. It’s in PDF format, for reading. I didn’t have the time to create a real tutorial that builds up the API, or produce a really useful API. The intention is just to outline what parts get defined and how they work together.

http://riceball.com/d/files/django%20rest%20api%20-%20adding%20to%20existing%20project_0.odt

http://riceball.com/d/files/django%20rest%20api%20-%20adding%20to%20existing%20project_0.pdf