|
KarstenK wrote: I prefer the missing right option FTFY
GCS d-- s-/++ a- C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
You have shown wisdom.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Yuck!
I have lived with several Zen masters - all of them were cats.
|
|
|
|
|
... indented properly
if (condition)
{
statement;
}
There are occasions when this is OK
if (condition) statement; But only when statement is short and obvious.
Anything longer than a dozen characters or so needs a new line, and braces. Modern IDE's handle the indentation for you, but they still get it wrong and it's easy to read
if (condition)
statement;
statement; wrongly, especially if you use the excreble 1TB indentation style
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
modified 12-Feb-18 4:06am.
|
|
|
|
|
... with typing less, unless it's a remnant of a previous refactor or I could be adding more code in that condition.
|
|
|
|
|
Even though I DO NOT want have Brackets around single line commands, but as soon as I write 'IF' my fingers AUTOMATICALY press curly brackets { } and then start writing code in it.
**This case is also applied to WHILE and FOR
Find More .Net development tips at : .NET Tips
The only reason people get lost in thought is because it's unfamiliar territory.
|
|
|
|
|
And that's a statement, not a command.
|
|
|
|
|
nope, braces are to hold your trousers up (what you Americans call suspenders)
|
|
|
|
|
Lord, you would think a site dedicated to programming would know the difference between brackets and braces by the people who write the surveys. Or at least QA them.
Latest Article - Code Review - What You Can Learn From a Single Line of Code
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|