News for hackers. Stuff that matters.
Re:Fixing JSON by yepperino on Saturday August 20, 2016 @07:18PM (#12328715)
> 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.

Re:Fixing JSON by philovivero on Sunday August 21, 2016 @01:39AM (#12329567)
Ah, so you're the guy whose code I have to re-reformat back to the proper format.
Re:Fixing JSON by yepperino on Sunday August 21, 2016 @09:31AM (#12330860)
I use industry standard IOCCC formatting rules. Doesn't everyone?

http://www.ioccc.org/2015/endoh1/prog.c

Re:Fixing JSON by ketralnis on Saturday August 20, 2016 @08:41PM (#12328949)
If you're having to do it on every job, maybe you're the unusual one
Re:Fixing JSON by yepperino on Sunday August 21, 2016 @12:13AM (#12329325)
Weirder still - why do I follow him from job to job?
Re:Fixing JSON by ngrilly on Sunday August 21, 2016 @11:41AM (#12331279)
I like where this is going :-)
Re:Fixing JSON by Normal_gaussian on Sunday August 21, 2016 @08:14AM (#12330642)
I highly recommend having a couple of reformatting scripts around - its a great way to find logical errors quickly.

Of course don't commit reformats where it diverges from the codebase.