4 ms·
Your source is nice and clean[1]. No dependencies is a wonderful goal. Status quo is inherently always against innovation. I like the approach the Go team took
by 90s_dev 2y ago
Your source is nice and clean[1]. No dependencies is a wonderful goal. Status quo is inherently always against innovation. I like the approach the Go team took of rethinking new solutions from first principles, and I hope you got to experience the joy of that in this project.
[1] https://github.com/ehmorris/bubbles/ https://github.com/ehmorris/bubbles/
- ehmorris 2y agoThanks! Writing the game has been really fun and I’m proud of the codebase. It’s therapeutic to work on it because I get to skip all the frustrating parts of web dev like writing config files.
- mjburgess 2y agoI think you'd gain clarity from `export function` and `function` over the anonymous fn + const style -- which seems a little like zig? And the getter/setter system: I dont see a reason for over `{getHeight: () => height}` over `return {height, weight}` ? Since canvasManager is mostly just data properties, you could also destructure those inline to funciton parameters, ie., function drawX({ctx, height, width, scale}) etc.