News for hackers. Stuff that matters.
Re:Of parser-fetishists and semi-colons by jrockway on Monday April 16, 2012 @03:51PM (#3849026)
Incidentally, we use CamelCaseMethodNames in Python at Google, presumably to be consistent between languages. If you're one company that uses multiple languages, it may be beneficial to use the same style in each, even if that style is non-idiomatic.
Re:Of parser-fetishists and semi-colons by frio on Tuesday April 17, 2012 @01:18AM (#3851267)
Doesn't that lead to inconsistencies in style when you use external libraries though?
Re:Of parser-fetishists and semi-colons by jrockway on Tuesday April 17, 2012 @04:05PM (#3854712)
It's even inconsistent with the Python core. I'm not going to defend the practice, but it's ended up being a lot less terrible than I thought it was when I first started writing Python here. I've used Twisted before, with its own weird style, and the weird style doesn't really distract much from the rest of the program. It's bad when everyone uses their own style, but if you only have 1.5 styles, it's probably OK. (But again, I would never write a style guide that said methods in Python must start with a capital letter and contain no underscores. That convention is for classes.)