Week 8 Sono fuori di testa

May 30th, 2021

I released a new tiny game: rope.

I tried a couple of physics engines for it. First, I used Matter, because it had a smaller footprint and good documentation. After spending a lot of time on engine bugs and on this C API design for JavaScript, I switched to planck, which is a Box2D rewrite. It's slightly on the larger side, adding 40k to the final build, but it's stable, has been around for a while, and has sane units.

One downside (compared to Matter) is that the types of joints are not intuitive. Often I had to trial and error my way into a good behavior. But once I got it right, things worked very well.

I enjoyed reading "It's Probably Time to stop recommending clean code". I was initially a bit torn by it: while I mostly agree with what qntm says, I debated the merits of pooping on someone's 13 year old book. Then I realized Robert Martin doesn't seem to have written a line of code professionally, while (making money of) preaching how people should write code. So now I'm fine. Go read the article. That book is awful.

It reminded me of the famous Sudoku Solver fiasco, from around the time of that book. Peter Norvig wrote an interesting tutorial on sudoku solving, while Ron Jeffries (one of the TDD gurus, who signed the "Agile manifesto" with Robert Martin) spent an embarrassing amount of time trying to apply TDD to the problem and failing miserably.

This whole thing reminded me a bit of this article about how your source code is worthless and what is the real value of programming:

The main value of a software company is the mapping of source code and problem space in the developer’s heads.

I'm a sucker for cool names. Which makes it unsurprising that I completely fell for The Map is Mostly Water and his central theme in praise of the gods:

Virtue lies in giving things their proper place. To lack reason is to be inhuman. To rely on it solely is to be disembodied. This disembodied nature is the vice of the modern intellectual, in fact it separates them from past intellectuals just as it separates them from the physical world. Thinking only in the abstract, existing only in the abstract, the disembodied intellectual life becomes the destructive force of authoritarian modernism.

Great things I watched in May: vida S02; Glow S03 ; Better Things S01 ; Master of None S02 ; The Nevers ; Good Hair.

ma diverso da loro

other weekly notes