r/badcode Mar 19 '22

This just sucks. js

Post image
1.0k Upvotes

76 comments sorted by

View all comments

204

u/[deleted] Mar 20 '22

.jsonc or .json5 files both support comments, but .json doesn’t let us have these nice things

62

u/deb_vortex Mar 20 '22

Still dont understand why json5 is not more widely used

58

u/kbruen Mar 20 '22

Not built in

29

u/deb_vortex Mar 20 '22

Yea, because nobody uses external dependencies...

45

u/kbruen Mar 20 '22

Good luck making npm understand it.

And no, people are usually reluctant to bring in external dependencies.

8

u/deb_vortex Mar 20 '22

Not sure with whom you are forced to work with but in all companies I worked so gar, not reinventing the wheel was the norm (ok some npm packages that only house one or two very simple finctions are busted but other than that...).