Re:GitHub Code Search – Programmers' Goldmine
by infogulch on Sunday August 28, 2016 @11:31AM
(#12376890)
This makes me think... maybe this could be generalized into a linter-as-a-service that occasionally submits pull requests for obvious style wins. Maybe just commenting on existing pull requests to be less annoying (and because there's a better chance it can be fixed by the issue opener).
Re:GitHub Code Search – Programmers' Goldmine
by Patient0 on Sunday August 28, 2016 @04:05AM
(#12375730)
And what is the simplification? I can't see it in your git repo
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)
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.
I search for ".2f}%'.format(100" and then send a push request to simplify the code.
See https://github.com/EdwardBetts?tab=overview&from=2016-04-19