News for hackers. Stuff that matters.
Re:Cue – A language for defining, generating, and validating... by flaviu2 on Saturday August 31, 2019 @05:36PM (#20848916)
Seems like an interesting language, but I'm very disappointed that my first attempt to view example code took 5 clicks.

The most important part of any programming language website is a short example snippet: put it above the fold on the front page!

Re:Cue – A language for defining, generating, and validating... by preommr on Saturday August 31, 2019 @07:25PM (#20849442)
Well at least you could find an example.

I couldn't find anything after like a minute of searching. Unless we're counting the gif that slowly shows you an example project letter by letter.

Re:Cue – A language for defining, generating, and validating... by evolve2k on Saturday August 31, 2019 @11:55PM (#20850416)
Someone please link to the code.
Re:Cue – A language for defining, generating, and validating... by xinau on Sunday September 01, 2019 @05:05AM (#20851270)
The website is under active development at the moment and their are incomplete parts. For the code links please take a look at the following tutorial on GitHub at the moment.

* https://github.com/cuelang/cue/blob/master/doc/tutorial/basi...

* https://github.com/cuelang/cue/blob/master/doc/tutorial/kube...

Re:Cue – A language for defining, generating, and validating... by seanmcdirmid on Saturday August 31, 2019 @07:52PM (#20849543)
Ya, first rule of PL promotion is that you have an example snippet of code in the first screen seen on your web page.
Re:Cue – A language for defining, generating, and validating... by chiefalchemist on Saturday August 31, 2019 @08:02PM (#20849595)
Yup. Tell me what problem you solve for me, and then show me how you do that.
Re:Cue – A language for defining, generating, and validating... by Semiapies on Saturday August 31, 2019 @05:49PM (#20848985)
I didn't even have to scroll down to see an example of code and usage.
Re:Cue – A language for defining, generating, and validating... by Varriount on Saturday August 31, 2019 @05:52PM (#20849008)
Where? I don't see any example on the page linked to.

Edit: Ah, the code example only appears for desktop browsers (or at least, browser windows wider than a phone screen).

Re:Cue – A language for defining, generating, and validating... by Deimorz on Saturday August 31, 2019 @08:24PM (#20849702)
And only if you have javascript enabled.

And it's one of those trendy shitty live-typing demonstrations instead of just letting you read some text.

Re:Cue – A language for defining, generating, and validating... by Semiapies on Saturday August 31, 2019 @08:33PM (#20849735)
Works fine on my phone, though unlike desktop,I do have to scroll a little.
Re:Cue – A language for defining, generating, and validating... by cosmotic on Saturday August 31, 2019 @06:53PM (#20849319)
Even worse, the examples are complex and incomplete.
Re:Cue – A language for defining, generating, and validating... by stefan_ on Saturday August 31, 2019 @08:50PM (#20849802)
Or make me go blacklist this project and everything to do with it (largeCapital pop >5M)
Re:Cue – A language for defining, generating, and validating... by robocat on Saturday August 31, 2019 @09:55PM (#20850065)
I found this comment: "In V3 the hobby field is explicitly disallowed. This is not backwards compatibly as it breaks previous field that did contain a hobby field" in https://cuelang.org/docs/usecases/datadef/

So if you add a field, you break existing code that doesn't know about the field.

Re:Cue – A language for defining, generating, and validating... by spoondan on Sunday September 01, 2019 @02:34AM (#20850817)
This is wrong. CUE has optional closed schemas marked by a double colon. The V3 entity you’re talking about is explicitly declared to be a closed definition and therefore disallows unknown fields in entities that claim to accord to the V3 type. Not all definitions are closed.

Even for those that you choose to close, it’s a matter of having different code for different definitions. The claim that it just automatically breaks isn’t true even when closed definitions are used.

BTW, this feature speaks to CUE’s intended purpose as a configuration language. It is (or at least can be) nice to ignore unknown fields in transmitted payloads for forwards and backwards compatibility. But if I’m trying to configure some software and misspell a field, I probably want the configuration file to fail validation, not have the software run with an unintended configuration.

Re:Cue – A language for defining, generating, and validating... by fractalf on Saturday August 31, 2019 @06:13PM (#20849125)
I gave up looking after 1min
Re:Cue – A language for defining, generating, and validating... by michaelmrose on Saturday August 31, 2019 @07:34PM (#20849471)
Re:Cue – A language for defining, generating, and validating... by squeaky-clean on Saturday August 31, 2019 @07:14PM (#20849410)
Can't see any examples in the github readme, or even in the codebase either.
Re:Cue – A language for defining, generating, and validating... by michaelmrose on Saturday August 31, 2019 @07:34PM (#20849470)
[dead]
Re:Cue – A language for defining, generating, and validating... by wilg on Saturday August 31, 2019 @08:31PM (#20849729)
Are you familiar with the concept of context? It's helpful because it allows easier communication by not requiring words to mean the same thing at all times.

In this case, it is helpful because we can scale our understanding of the poster's disappointment to allow us to not have to consider how it might be disappointing relative to, say, global thermonuclear war or a first kiss, but only need to think about it in relation to the other topics of discussion.

I highly recommend using context whenever communicating.

Re:Cue – A language for defining, generating, and validating... by EpicEng on Saturday August 31, 2019 @08:37PM (#20849758)
I can be disappointed when viewing a web page while simultaneously being disappointed in humanity's collective response to climate change. Context matters.