60 karma · joined Feb 8, 2013 (13y ago) · 30 submissions
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 8y ago · link · parent
> Have you used CharmPy?
> You mean PyCharm?
> No, CharmPy!
> Are we talking about the same thing?
> No
> Oh, that's just confusing, then.
comment 8y ago · link · parent
comment 10y ago · link · parent
Once again though, nice work! :)
comment 10y ago · link · parent
In regards to: > if you use JS libs they won't follow PEP 8 either. > And that's probably something to accept, as, however > big the Python world, one cannot ignore the JS world.
I totally agree. I spend about half of my time writing JS and half in Python and I definitely don't try to enforce PEP8 guidelines onto JS code, simply because it's a Python style guide, not a JS guide. I would try to follow a largely accepted code style of the JS community if I was made aware of one, but there only seems to be a large collection of non-official guides, so just I try to adjust my code style to what seems to be common among all of the "nice"/readable code around the web, or, if I'm working in a large existing code base, the style that is followed in that codebase, unless there's reason good not to.
I guess my general approach is that I prefer to style the code I write based upon the language (sometimes, for example, this requires placing open braces in different positions), and I find this actually helps my mind to switch between languages as they have their own look-and-feel to them.
Thanks for reading, and thanks for writing a very interesting library!
comment 10y ago · link · parent
As a side note: I found your extra whitespace before function arguments to be very strange. I haven't seen this type of spacing before. Is there a reason why you do this?
I personally use and encourage the use of the "pep8" python tool (link below) to validate my codestyle as I find it makes working with other developers easier (this extra whitespace is pointed out as an error).
pep8 tool: https://pypi.python.org/pypi/pep8
comment 10y ago · link · parent
http://www.pcmag.com/article2/0,2817,2458699,00.asp
Also, just for clarification, do you mean self-repairable? The review said it, like the MBP, has non-standard screw heads making repair difficult. Thoughts?
comment 10y ago · link · parent
It evenly distributes over 0-1. Removing .5, just distributes it evenly between -0.5 and +0.5. Sort basically says >0, the first option should come first and if <0, the second option should come first.
I believe this still maintains a random distribution and is quite a tidy solution. Thoughts?
comment 11y ago · link · parent
Changing the CSS on the site during the hack? I don't see how that implies anything other than someone in their large organisation had the idea to change the CSS to improve the readability.
And I'm not seeing how their story has changed, just new statuses with different wording..
comment 11y ago · link · parent
Edit: You can usually find out what they mean by going to https://www.google.com/doodles
comment 11y ago · link · parent
comment 13y ago · link · parent