HN user

yepperino

94 karma
Posts0
Comments9
View on HN
No posts found.

It's probably been stated a million times before but it's hard to remember what coding was like before github. CVS and subversion - what's that? Github is so pervasive that when a project uses another git code sharing site you just get annoyed. Github Issues may suck, but it's so darn convenient and so well integrated. It's far worse when a project uses another ticket tracking system and just uses github for pull requests. Just give in to our new code overlords and go with the flow.

Fixing JSON 10 years ago

In order to combat trailing commas I normally place the comma on the following line

Ah okay, so you're that guy whose code I have to reformat in every new job.

Fixing JSON 10 years ago

Unquoted keywords are valid ES5.1 object properties.

    alert(JSON.stringify({delete: "me", for: 1, var: 2}));
results in:
    {"delete":"me","for":1,"var":2}
The only browser it does not work in is IE8 and earlier.