4 ms·
Saving the world, one GitHub project README banner at a time. I don't know how I feel about writing CLIs in JS. Just seems a little bit janky to me, and I don'
by seanw444 2y ago
Saving the world, one GitHub project README banner at a time.
I don't know how I feel about writing CLIs in JS. Just seems a little bit janky to me, and I don't know why. I wonder if there's any push to have something JSXish in Go, even if it requires a pre-compiler to achieve the syntax, just for CLI apps like this. Then again, maybe I'd just rather stick with something like Nim where you can just have a first-class DSL through the macro system.
- captnasia 2y agothere's a few attempts, templ[0], gomponents[1]. Not for cli apps per se but for web dev. 0: https://github.com/a-h/templ https://github.com/a-h/templ 1: https://github.com/maragudk/gomponents https://github.com/maragudk/gomponents
- seanw444 2y agoI've seen gomponents, but it seems very verbose. Although I guess that's what you're stuck with if you're doing it within Go.
- kaba0 2y agoI don't know, go has lackluster expressivity, and these pre-compile tools always feel like a hack in its case.
- ipsum2 2y agoI don't think its a Go-specific issue, its useful syntactic sugar. I would love an updated JSX for Python.
- russellendicott 2y agoThis is my side hobby, a server side TUI protocol with a light browser like client that can navigate any TUI. http://uggly.bytester.net http://uggly.bytester.net The primitives are good enough to build anything you want. Right now I'm trying to figure out how to make better libs and tooling for creators (mainly myself) so I can crank out lots of examples apps that showcase the power of TUIs where you don't need a dedicated executable for each one.
- bartekpacia 2y ago> Saving the world, one GitHub project README banner at a time. I can feel snarkiness in this response. I don't like it. From Ink's author [0] post: > The time has come though to move on from Ink. Since russia’s full-scale invasion of Ukraine in 2022, everything in my life revolves around the war. And anything else has lost all meaning to me. I no longer have the mental and physical capacity to maintain Ink and give it the attention it deserves. [0]: https://vadimdemedes.com/posts/moving-on-from-ink https://vadimdemedes.com/posts/moving-on-from-ink