Re:GitHub Code Search – Programmers' Goldmine
by Pyppe on Sunday August 28, 2016 @04:12AM
(#12375742)
"Percentage: {:.2f}%".format(foobar * 100)
vs
"Percentage: {:.2%}".format(foobar)
[ Parent
| on HN ]
Re:GitHub Code Search – Programmers' Goldmine
by hughperkins on Sunday August 28, 2016 @03:53PM
(#12378194)
its actually harder to read, in my opinion, since the % character is often used for formatting,eg '%s' % somevar.
personally, i dislike such spammy prs. it adds nothing to my code, and its not like accepting the pr is going to attract you as a developer on my code.