4 ms·
the second I looked at the example on the homepage and saw this: sort(@) I'm like nope! What is this "@" symbol? Why can't that be "name"? I'm already passing
by thrownaway954 9y ago
the second I looked at the example on the homepage and saw this:
sort(@)
I'm like nope! What is this "@" symbol? Why can't that be "name"? I'm already passing judgment that this library will be a nightmare to use which isn't good.
Now I know I can read the docs and eventually what I can pass the sort expression and what it all means, however, this is an issue I come across more and more with new libraries in programming... show simple examples, not "smart" or complicated ones. I shouldn't have to read through docs to try to decipher an introductory example. There is a reason every programming language starts with "Hello World".
- Terretta 9y agoThis is not that new. And it happens to be the JSON query language built in to the AWS CLI tools. For last 3 - 4 years I see lots of AWS CLI examples piping through jq. That’s an extra dependency that’s not necessary when this is built in. Here’s the author’s idea of intro materials (posted Jan 2015): http://jamesls.com/how-to-easily-explore-jmespath-on-the-command-line.html http://jamesls.com/how-to-easily-explore-jmespath-on-the-com... I’ve found him very responsive on bugs and (provably useful) feature ideas.
- mjburgess 9y agoEach step is a transformation X | Y | Z The @ is the result from the prior transform. I would've preferred _ from scala, but meh.