About me and this blog

Hi! 👋 my name is Andrea Manzini. I’m an Unix System Administrator and a developer. As you can see, I enjoy minimalism and pragmatic solutions for a problem. I am focused on delivery, curious and enjoy learning new things. If you are interested, you can find my resume following this link or contact me using social links on this page. If you appreciate my work, you can buy me a book from my Amazon Wishlist. Thanks!

Test-driven NES development (3): the sprite appears

🔁 Where we left In part 2 we made hello.lua pass with minimal code, loaded a font into CHR-ROM so font.lua passed, and wrote hello_again.lua expecting the greeting at column 4, row 6. The test suite ended red. Today we complete a full TDD cycle across all three steps: 🟢 make hello_again.lua pass by generalising the greeting logic 🔵 clean up duplicate Lua test code while the suite is green 🔴 write a failing test for the next feature: showing a sprite on screen The code lives on branch part-3 of nes-tdd-demo: git clone -b part-3 https://github.com/ilmanzo/nes-tdd-demo. Each step has its own commit, so git log walks through the progress. ...

December 4, 2026 · Andrea Manzini
Nintendo Entertainment System console with controller

Test-driven NES development (2): green, then red again

🔁 Where we left In part 1 we built a blank NES project and one test, tests/hello.lua, that expects “HELLO” in the nametable at column 12, row 14. The suite failed as expected, because nothing was writing to the nametable yet. Today we go around the loop twice: 🟢 get hello.lua passing with minimal code 🔴 verify why a passing test still leaves a black screen 🟢 load a font into CHR-ROM 🔴 write a second test that exposes the hard-coded shortcut The code is on branch part-2 of nes-tdd-demo: git clone -b part-2 https://github.com/ilmanzo/nes-tdd-demo. ...

December 2, 2026 · Andrea Manzini
Nintendo Famicom console with controllers

Test-driven NES development (1): red

🎮 Why test an NES game? During Hack Week 26 I wrote Hack to the Future, an endless runner for the Nintendo Entertainment System, in C. A 1983 console has no debugger you can attach to, no printf, and no unit test framework. What it has is an emulator: Mesen2 embeds a Lua scripting engine (if you need a refresher, see my previous Lua posts) and a headless --testRunner mode, so a script can run the ROM, press buttons, read RAM, VRAM and sprite memory, and exit with a status code. That is everything a test needs. The game ended up with about ten Lua test files, and they saved me many times (a drone that never hit a standing player, a HUD that scrolled with the playfield…). In this series I will rebuild the idea from scratch, in the smallest possible program, following the classic red-green-refactor loop: 🔴 write a test, watch it fail 🟢 write the least code that makes it pass 🔵 clean up, with the tests as safety net Goal of the series: a sprite you can move with the d-pad. Tiny, but it touches video, memory and input. Today: the toolbox, the blank project, and the first failing test. ...

November 30, 2026 · Andrea Manzini
Linux Day Milano 2026 Badge

Linux Day Milano 2026 recap

Intro On Saturday, October 24th, 2026, I had the pleasure of attending Linux Day Milano 2026. For those unfamiliar with it, Linux Day is the premier nationwide event in Italy dedicated to GNU/Linux, Free Software, and open culture. Promoted annually since 2001 by the Italian Linux Society (ILS) on the fourth Saturday of October, it is held simultaneously across dozens of Italian cities thanks to local Linux User Groups (LUGs), student groups, and passionate volunteers. It remains the most important grassroots gathering for open source enthusiasts and professionals in the country. ...

November 2, 2026 · Andrea Manzini
Buy Me a Coffee at ko-fi.com Buy Me A Coffee

This site does not use cookies or collect any personal data. © 2026 Andrea Manzini.