6 ms·
Cue is one of the most exciting developments that's impacted me professionally in recent years. I can't advocate for it enough.
by chazu 4y ago
Cue is one of the most exciting developments that's impacted me professionally in recent years. I can't advocate for it enough.
- tremon 4y agoCue is interesting, but why is it only available as a command-line tool rather than a library? I'd want to integrate such a configuration language in my programs, so I could use its evaluation and validation capabilities rather than writing a custom parser/validator.
- IshKebab 4y agoAlso their website is terrible. One of those projects that assumes you've already decided (or been forced) to use it and have cleared out a week of your schedule to learn how to use it.
- mirekrusin 4y agoI learned cue from it during one weekend with plenty of time to play with kids, using it in production since 2020, it's been absolutely great, zero problems, very terse configs, intuitive formalism.
- IshKebab 4y agoI took another look and eventually found the bit of the website that they should put front and centre in the Tutorial page. Still difficult to navigate (why doesn't the page tree show up on the left?) but it is at least well written and to the point. The "learn more" button on the front page should link to that, perhaps with a single paragraph giving motivation. And the main page breaks the fundamental rule of programming languages/formats. Put examples on the front page! I assumed they hadn't done that because the examples would be too complex or maybe the concepts were too difficult to demonstrate with small examples but having gone through the tutorial that isn't there case at all.
- GauntletWizard 4y agoAre you talking about https://cuelang.org/docs/tutorials/tour/intro/ https://cuelang.org/docs/tutorials/tour/intro/ ? Even that is a bit light on detail for real usage, while https://github.com/cue-lang/cue/blob/v0.4.3/doc/tutorial/kubernetes/README.md https://github.com/cue-lang/cue/blob/v0.4.3/doc/tutorial/kub... is kinda rambling. I don't think that there's "One true way" to introduce these concepts; How you teach cue to a config-generation novice is very different from someone who's used to using an IDE to generate kubernetes YAML.
- mirekrusin 4y agoSpec [0] is very good + practice with small files. [0] https://cuelang.org/docs/references/spec https://cuelang.org/docs/references/spec
- GauntletWizard 4y agoI find specs nearly unreadable when trying to first digest a language; While invaluable for advanced usage and implementation, I can't read a BNF-Style Spec and make heads or tails of what's going on unless I also have an annotated example next to it.
- tremon 4y agoI agree. The website is heavy on theory and very light on practical usage.
- dangoor 4y agoIf you're writing in Go, you can use it as a library. This is poorly documented, unfortunately.