Show HN: What an API is for non technical people
isaacs-journal.herokuapp.com
Show HN: What an API is for non technical people
1–10 of 10 posts
Re: Show HN: What an API is for non technical people
#2Re: Show HN: What an API is for non technical people
#3Re: Show HN: What an API is for non technical people
#4Re: Show HN: What an API is for non technical people
#5Re: Show HN: What an API is for non technical people
#6In the 2000's APIs were in XML/SOAP/WSDL and were a total pain. JSON changed all that.
In the 2020's Tree Notation is going to do something similar.
Here's the idea from 2014: https://www.youtube.com/watch?v=DV4Nv23bBwQ (Tree Notation was called "Space" back then)
Here's the current Tree Notation project: http://treenotation.org/
Re: Show HN: What an API is for non technical people
#7If you want to make APIs simpler, a project we have on the backburner is to start getting adoption for folks to offer Tree Notation apis. In the 2000's APIs were in XML/SOAP/WSDL and were a total pain. JSON changed all that. In the 2020's Tree Notation is going to do something similar. Here's the idea from 2014: https://www.youtube.com/watch?v=DV4Nv23bBwQ (Tree Notation was called "Space" back then) Here's the curren…
The more levels of nesting you have in the Tree Notation file, the more of the file's space is ... well white space characters. JSON doesn't have this problem, as spaces are not crucial to the structure of the data.
This means that although there's less characters, you cannot minify the Tree Notation, like you can with JSON (as indentation is crucial for representation in the tree)
I could be wrong though...
Re: Show HN: What an API is for non technical people
#8If you want to make APIs simpler, a project we have on the backburner is to start getting adoption for folks to offer Tree Notation apis. In the 2000's APIs were in XML/SOAP/WSDL and were a total pain. JSON changed all that. In the 2020's Tree Notation is going to do something similar. Here's the idea from 2014: https://www.youtube.com/watch?v=DV4Nv23bBwQ (Tree Notation was called "Space" back then) Here's the curren…
Looks very similar to YAML. I'm not sure this will replace JSON though, for one specific reason. The more levels of nesting you have in the Tree Notation file, the more of the file's space is ... well white space characters . JSON doesn't have this problem, as spaces are not crucial to the structure of the data. This means that although there's less characters, you cannot minify the Tree Notation, like you can with J…
This is a good thought, and a theoretical problem I used to think about, but in practice it hasn't really come up. In practice what has happened, is that anytime things started getting deeply nested, it was a sign that the Tree Language should be refactored so things could be made flatter.
> This means that although there's less characters, you cannot minify the Tree Notation, like you can with JSON (as indentation is crucial for representation in the tree)
The other thing to keep in mind that JSON is almost always GZIPPED before it is actually sent over the wire, and the compression characteristics of zipping/minifying TN are as good (if not better--I hope someone some day will do the research here), than JSON.
Re: Show HN: What an API is for non technical people
#9Earlier quoted context omitted.
Looks very similar to YAML. I'm not sure this will replace JSON though, for one specific reason. The more levels of nesting you have in the Tree Notation file, the more of the file's space is ... well white space characters . JSON doesn't have this problem, as spaces are not crucial to the structure of the data. This means that although there's less characters, you cannot minify the Tree Notation, like you can with J…
> The more levels of nesting you have in the Tree Notation file, the more of the file's space is ... well white space characters. JSON doesn't have this problem, as spaces are not crucial to the structure of the data. This is a good thought, and a theoretical problem I used to think about, but in practice it hasn't really come up. In practice what has happened, is that anytime things started getting deeply nested, it…