Follow Slashdot stories on Twitter


Forgot your password?
Slashdot Deals: Cyber Monday Sale Extended! Courses ranging from coding to project management - all eLearning deals 20% off with coupon code "CYBERMONDAY20". ×

Comment Re:"The code comes out cleaner"? (Score 1) 497

I get what you mean, but I think PEP8 is a bad example for your point. I think it's well thought out, places high value on readabilty, and doesn't advocate too strict application of its rules: it discusses when it can be appropriate to to break a guideline.

In particular, your point about lining up colons in a dictionary definition doesn't stand. PEP8 doesn't want you to do that. See the last item in 'Pet Peeves'; PEP8 says


x = 1
y = 2
long_variable = 3


x = 1
y = 2
long_variable = 3

Comment Re:This is why I like Python so I can use OOP or n (Score 1) 303

I wouldn't even call Java object oriented, rather class oriented. It forces you to put everything in a class. Most of the time when I see Java code, there's a whole bunch of classes with nothing but static functions in them.

Python is in a sense much more object oriented than Java: everything is an object. Modules are objects, functions are objects, classes are objects.

Comment Re:Bikes lanes are nice (Score 1) 213

40 mph is not exactly easy.

Even professional road bicycle racers reach such speeds only on downhills or in sprints; see e.g. "Individual riders can approach speeds of 110 km/h (68 mph) while descending winding mountain roads and may reach 60â"80 km/h (37â"50 mph) level speeds during the final sprint to the finish line."

40 mph is *fast* on a non-recumbent bicycle. The fastest I personally can do on level road without other traffic is about 50 kph, for maybe ten seconds. That's only 31 mph. With a not-too-bad racing bicycle and a reasonable fitness level. 40 mph (about 64 kph!) is for most people totally out of the question.

Comment Re:Only while stationary (Score 2) 180

But the system should make an exception when it senses that there is someone in the passenger seat.

My previous car dissallowed control of the navigation system while driving, even when there was someone in the passenger seat who was perfectly able to safely control the navigation system. Very frustrating at times.

Comment Re:Yeah, but... (Score 1) 163

There is no unit 'degree Celsius'. Just like with Kelvin the official unit is without 'degree'!

Do you have a citation for that? Wikipedia [] seems to disagree.

I agree that much of this is academic and not relevant in everyday speech. But I think even there you are wrong: according to your previous post the "degree" part is optional, but in everyday speech it's the "Celsius" part that's left out (to which I have no objection whatsoever).

Comment Re:Yeah, but... (Score 1) 163

The unit is "Kelvin" or "degrees Celsius". Sometimes people add "degrees" to Kelvin, but that's incorrect and I've only ever heard non-sciency people do that. People often do omit Celsius or Fahrenheit, and I think there's nothing wrong with that when talking about the weather or other everyday temperatures.

You're saying the unit is "Celsius" and you can optionally prefix it with "degrees"? I've never heard it explain that way. Seems very weird.

Bell Labs Unix -- Reach out and grep someone.