News for hackers. Stuff that matters.
Re:Prettier $20k Bounty was Claimed by Shish2k on Monday November 27, 2023 @04:49PM (#38438887)
On the one hand, yes, there should be tests. On the other, `goto fail;` :P

Also, adding braces from the start means that adding one new line of code is a one-line patch, instead of a four-line one - I do that for the same reason that I always put trailing commas on my array definitions

Re:Prettier $20k Bounty was Claimed by blauditore on Tuesday November 28, 2023 @09:46AM (#38446279)
> one new line of code is a one-line patch

On the flipside, having three trivial early-return ifs at the beginning of a function will become 9 lines long with braces instead of 6 (or just 3, when doing single-line ifs). Very often, such cases never expand to multiple lines in the future.