Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on No, that's not why OO sucks. Parent comment
So this: { type: "hms", hour : 10, minute : 45, second : 16 }
is better than this:
["hms", 10, 25, 16 ]
In the JavaScript world we would call the map an object.
There are no comments on this comment yet.
So this: { type: "hms", hour : 10, minute : 45, second : 16 }
is better than this:
Either go across the wire fine. The names are not just local names, they describe the meaning of the data.In the JavaScript world we would call the map an object.