Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
joeblow99
on July 3, 2015
|
parent
|
context
|
favorite
| on:
Airbnb JavaScript Style Guide
// bad const item = new Object();
// good const item = {};
Literally useless differentiation.
razwall
on July 3, 2015
|
next
[–]
Seems pretty useful to me. If I see "new Object()", I know the code was written by someone who doesn't know JS very well, so I should look more carefully for bugs.
Ronsenshi
on July 3, 2015
|
prev
|
next
[–]
That's why they call it Style Guide. You know - Style?
roelvanhintum
on July 3, 2015
|
prev
|
next
[–]
Same functionality, less characters. This also helps being consistent.
jeffpeterson
on July 3, 2015
|
prev
[–]
Hah, "literally"
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
// good const item = {};
Literally useless differentiation.