PowerSeries@lemmy.catoProgramming@programming.dev•I'm a hypochondriac, but It's About ProgrammingEnglish
4·
1 year agoThanks, you made me feel old today. Get off my lawn.
Thanks, you made me feel old today. Get off my lawn.
I’ve watched some slow typists program, and I think I have the answer. If it takes you a while to type the code out, you are much more likely to stick to the first approach that works, and not rewrite it as much.
I was actually trying to play through that with my 202 level Chinese. I had a notebook with my translations and everything. Actually pretty good, and I like the unit Square via actual stats, as well as the fact reinforcements are all at the footsteps markers, and you never have someone popup and stab you.
But yeah what if the French Revolution also had magic girls?
??? What the what now?
Have you looked at the Lisps / Scheme / Racket yet? Racket in particular makes it quite nice to go
#lang blah
at the top of the file and change the parsing or interpretation entirely.For example all the documentation pages and guides are written in scribble:
https://docs.racket-lang.org/scribble/getting-started.html#(part._first-example)
#lang scribble/base @title{On the Cookie-Eating Habits of Mice} If you give a mouse a cookie, he's going to ask for a glass of milk.
And it has an entire document markup language created in it, which can output pdf or html. But you can still use @ syntax to drop in racket code to compute values. Or create templates.
I even implemented a #lang which took assembly directly (and interpreted it, it was for a class).
So if you are really after full control, you should study Lisps and their macro systems.