Today's video wraps up implementing the mock-up I shared exactly a month ago.[1]
https://archive.org/details/akkartik-2min-20201020
I'm quite happy with how this is turning out. The environment is visual but dense. I imagine the ability to juggle multiple sandboxes on the right, all sharing a common set of function definitions on the left. Functions still can't be edited, but the mechanisms for editing are in place, and you'll be able to see all sandboxes update as you edit function definitions.
The one major drawback -- that Ivan Reese won't like -- is the extensive use of name-punning to make this work. By construction, function definitions share the same names for their arguments as the ones you chose for their first call. As a result you almost immediately have two x
s on the same line that look the same and seem to behave identically, but mean subtly different things.
Main project page: https://github.com/akkartik/mu
[1] https://futureofcoding.slack.com/archives/C5T9GPWFL/p1600645382040000
Looking really nice. The UI geek in me wants to move the text to align with the stack - like this:
Is that something that is hard to do in the terminal?
📷 image.png
I think I prefer it in Kartik's design, where the text is aligned with the spaces between stacks (so you can sort of view it as an input followed by a response).
To my eyes, I like straight lines (I'd move the * down a bit too to align it with the 'x') I can see your point, but if that's the case, I'd actually make the spaces wider; so that the 'in between' is as big as the stack; so it is more obvious
😄 Chris, that was actually how my first demo looked. I might go back to it or something.