Better HN
topnewbestaskshowjobs
Log inSign up

davidslv

22 karma · joined Mar 9, 2012 (14y ago) · 32 submissions

Software Engineer, 15+ years in Ruby and Rails.

I build things from scratch to actually understand them: a roguelike in pure Ruby — no engine, just a terminal and an entity-component-system — and a modular-monolith Rails reference app where the boundaries are real.

The two architecture books I've written came out of that work, not the other way around.

Submissions

comment 4mo ago · link · parent

Interesting read, but I keep finding that these are well intended but rarely the solution. On your words: "Bad requirements produce bad code reliably."

This is a different problem to solve, but clearly is saying "garbage in, garbage out". To me this seems more cultural education.

comment 4mo ago · link · parent

Author here. This started as a hobby attempt to understand Codemasters' old driving AI, which had received quite a few interesting game reviews at the time. Which meant first reading their "BIGF" archive format. The surprise was Ruby: String#unpack is basically a fast, C-backed binary parser hiding in the stdlib, and the whole reader is dependency-free. Repo (MIT): https://github.com/davidslv/bigf

Honest note: AI-assisted throughout — I steered and verified every claim against the bytes. No game data committed; tests synthesise fixtures from the documented format.

3.

Reverse-engineering Codemasters' BIGF archive format in Ruby(davidslv.uk ↗)

26 points · by davidslv · 4mo ago · 5 comments

4.

The Modular Monolith in Rails: Engines, Packwerk and Boundaries(davidslv.uk ↗)

3 points · by davidslv · 5mo ago · discuss

5.

When Rails Engines Are the Wrong Tool(davidslv.uk ↗)

3 points · by davidslv · 5mo ago · discuss

6.

Why Architecture Matters: Rails Engines for Modular Monoliths(davidslv.uk ↗)

4 points · by davidslv · 6mo ago · discuss

comment 1y ago · link · parent

I spent 5 years building a roguelike game in pure Ruby (no game engines) to explore Entity-Component-System architecture and event-driven patterns outside of typical Rails applications.

Full disclosure: The project benefited significantly from AI assistance in the later stages to keep momentum going while balancing a full-time job and family. I used AI as a coding partner - I made all architectural decisions, reviewed every change, and stayed in control of the direction. It let me focus on the interesting problems (ECS design, event systems) rather than grinding through boilerplate.

The game runs entirely in the terminal and uses the same architectural patterns we use in production web apps - ECS for entity management, pub/sub for events, observer patterns for game state.

Why Ruby? Honestly, because it's the language I know best, and I wanted to prove you could build a game without reaching for Unity, Godot, or even a Ruby game library. It's all vanilla Ruby.

The codebase is fully open source and I've also written a book about the process (5 years in the making) that walks through the architecture decisions: https://www.amazon.com/Building-Your-Own-Roguelike-Hands-ebo...

Technical highlights:

- Entity-Component-System from scratch - Event-driven game loop - No dependencies (just Ruby stdlib) - Runs in the terminal

I'd love feedback from the HN community, especially on the architecture patterns. Happy to answer any questions about the implementation.

Thank you, davidslv

8.

Show HN: Terminal roguelike using Entity-Component-System in pure Ruby(github.com ↗)

4 points · by davidslv · 1y ago · 1 comment

9.

Show HN: Vanilla Roguelike – My 5-Year Solo Ruby Project Now OSS(github.com ↗)

3 points · by davidslv · 1y ago · discuss

comment 4y ago · link · parent

I've been working on writing a roguelike game in ruby, without using any external libraries.

It's not really a complete game at this stage, all you can do is travel through the randomly generated mazes once you hit the stairs.

I thought I would share as I have been struggling for time to do further features.

Any feedback is appreciated, feel free to have a look around and contribute if you so wish.

11.

Incomplete Roguelike game written in Ruby(github.com ↗)

3 points · by davidslv · 4y ago · 1 comment

12.

Building a simple cache mechanism in ruby(davidslv.com ↗)

1 points · by davidslv · 10y ago · discuss

13.

R0z3z 4r3 R3d (poem)(perlmonks.org ↗)

1 points · by davidslv · 10y ago · 1 comment

comment 11y ago · link · parent

I just read the article, I don't know much about the subject, but I find myself feeling really good about someone honouring the contract, even more a verbal one, I wish more people could honour theirs. I think the moral of this story is: honour your word.

comment 11y ago · link · parent

I totally agree with you, the website is really slow, most likely because it ended here...

comment 11y ago · link · parent

is only me having a slow experience? The concept is actually very interesting, it really makes it very easy to build websites for small businesses.

comment 11y ago · link · parent

Wow, I've never see that one, it just makes me feel like playing it right now :D

comment 11y ago · link · parent

amazing work, I always dreamt about having a world map in one of my future house walls, thanks for sharing, I will definitely come back to your article at some point.

comment 11y ago · link · parent

That's why I'm asking to people who care, because I'm not getting the picture.

comment 11y ago · link · parent

What's the big deal? Why do you care about those documents so much? They all seem really meaningless, but maybe I'm missing the point... someone enlighten me?

21.

DIY Ruby CPU Profiling – Part II(crypt.codemancers.com ↗)

4 points · by davidslv · 11y ago · discuss

comment 11y ago · link · parent

how about someone take the place and don't let this die ?

comment 11y ago · link · parent

why couldn't you put a NSFW tag? is that asking too much? Thanks for the awkward office moment.

24.

Preferencias – A ruby gem for your preferences(github.com ↗)

1 points · by davidslv · 12y ago · discuss

comment 12y ago · link · parent

I couldn't manage to see anything special.

comment 12y ago · link · parent

I wish you guys the best :)

comment 12y ago · link · parent

I'm very happy to use this app to be honest this just improved a lot how we keep track of our PR's across all the repositories that we currently have.
12