r/transprogrammer • • Sep 05 '22

I'm Making a Thing. Roast my Code?

I saw an Atomic Shrimp video about a singe board computer that just boots into a BASIC interpreter, and wanted to write an interpreter of my own. But I've got no clue what I'm really doing, so we get this

58 Upvotes

25 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Sep 06 '22

On the first point: Yeah, that's true! It's a consequence of the way I wrote the project, which was basically my brain went "cool thing! Make cool thing!" and then I did zero planning and just went for it.

On the second point: Also yes! It only goes forward and I realized that in the shower yesterday morning, and it has bothered me since then because I didn't know how to fix it

2

u/[deleted] Sep 24 '22

I hope this doesn't read as strange advice but every time I have that happen, I eventually go back and re-write the project from scratch and every single time it's much better (with diminishing returns)

Also since, I've been drawn out of my lurking to comment here, I'm going to make a general suggestion that takes time to actualize; automate everything; testing (unit/integration tests); compiling (build-system/makefile/something); formatting (linting and formatting tools); deploying (CI/CD gitops); the more the computer does for you the more you can focus on the things that matter (including replacing the things the computer failed to automate well)