Lionel Badiou
CodeFutures Software
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Books: Pragmatic Unit Testing in Java, Agile Java, Modern C++ Programming with TDD, Essential Java Style, Agile in a Flash. Contributor, Clean Code.
Lionel Badiou
CodeFutures Software
42
Originally posted by Jeroen Wenting:
- don't use undescores in variable names. Use camelCase instead.
- use C++ style bracing, it's much clearer.
42
Originally posted by Jeroen Wenting:
- use C++ style bracing, it's much clearer.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Lionel Badiou
CodeFutures Software
42
42
42
"I'm not back." - Bill Harding, Twister
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
"I'm not back." - Bill Harding, Twister
Originally posted by Jeroen Wenting:
of course the golden rule is consistency. When everyone consistently uses C++ style braces there's no further need for arguments
A good workman is known by his tools.
"I'm not back." - Bill Harding, Twister
Originally posted by Jim Yingst:
it looks like the else clause in your middle example isn't indented properly to be within the for loop. Is that intentional?
"I'm not back." - Bill Harding, Twister
"I'm not back." - Bill Harding, Twister
"I'm not back." - Bill Harding, Twister
Originally posted by Warren Dew:
It is in examples where there's one statement per block. With longer blocks, I'd rather have the braces to remind me of the groupings.
How does Python handle the situation where one person uses an editor that only handles 8 space tabs, and another an editor that only handles 4 space tabs?
42
Originally posted by Jim Yingst:
Just because I like freaking out people who think braces should be mandatory.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Originally posted by Warren Dew:
Bug free code can be read only.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Warren Dew:
I'm still confused. Does this mean that a block where the lines start with eight spaces will end if a line is encountered that starts with two tabs? Wouldn't this result in bugs that are rather difficult to find, since the lines look identical in the editor - or even bugs that are caused when an editor silently converts tabs to spaces?
If not, how does Python know how many spaces the programmer has set his editor to show tabs as?
Yeah, but is it art? What do you think tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|