Else.. If Problem
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
05-21-2009 08:45
From: Argent Stonecutter Python is hateful, evil, rude, nasty, and completely misguided. Programs communicate to two audiences, humans and compilers. Indentation is too useful as a mechanism to communicate to humans, in ways that are irrelevant to compilers, and Python makes that completely impossible. Couldn't agree more on that one. Yet so many darned programs use it as an embedded scripting language. GAAAAHHH!  If I wanted, "less characters and punctuation is better," I could go back to programming in BASIC, eh? My programs SHOULDN'T read like novels. It's not all that important to go back and find where an idea first started in a novel, or tear a phrase apart for bad logic. In a program it is rather essential.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
05-21-2009 09:47
From: Argent Stonecutter Hedgehogs aren't food, that's another.
(too spiky) not sure about that, but why give away so many toothpicks with such a small meal =X ::ducks and runs::
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
|
05-22-2009 01:20
From: Winter Ventura I don't care what bug scientists do with their time. I prefer the look of.. if (test == TRUE) // if the test passes { do (stuff); } else // the test failed { do (other stuff); }
Works best for me too, makes life easier actually.
_____________________
My tutes http://www.youtube.com/johanlaurasia
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
05-22-2009 04:43
From: Johan Laurasia I hate that 'lets be confusing for no reason' method ! why waste a whole line on a bracket when the the control statement and indentation are already telling you the same thing. in the meantime, the you'll notice even when I'm doing one off's on the forum, it's never braces I'm missing, it's semicolons, so that's where I need the most help visually, and 1TBS helps me find them more often (athough I need to reconsider my system for line wrapping, it interferes with detection of missing semicolons) so for fun, does anyone know any typable characters that are ignored by the compiler that I might tack on after an open line, or before a new line (I can use math and commas at one end)
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Babylon Sierot
Registered User
Join date: 7 Jun 2008
Posts: 1
|
05-22-2009 12:53
imvho, those opening braces on an empty line are just plain fugly. if (yourNeed == toComment) { // you can always do so after the brace // or on the next line, if you must // but, anyway, the indentation makes the structure completely obvious // without an ugly opening brace } else { // look how compact and pretty this is! } string splitLine = "Usually is is very long lines of text that need to be split" + "across lines and this is how I prefer to do it."; if(myStatement = so(complex, that, i, "need to split", it(into, separate), lines) // then I probably need to split it into separate statements anyway // because otherwise it is difficult to read, will probably lead to logic errors, // and I am likely to make typing errors like missing brackets :)
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
05-22-2009 20:08
From: Babylon Sierot imvho, those opening braces on an empty line are just plain fugly. if (yourNeed == toComment) { // you can always do so after the brace // or on the next line, if you must // but, anyway, the indentation makes the structure completely obvious // without an ugly opening brace } else { // look how compact and pretty this is! } string splitLine = "Usually is is very long lines of text that need to be split" + "across lines and this is how I prefer to do it."; //-- fine but there's no front side delineation of it being wrapped //-- and that's were people read from (which is why I put the plus //-- there). I suppose I could just add empty comment marks at the //-- end of statements the use concatenation, although it doesn't //-- help for function call style wrapping though. if(myStatement = so(complex, that, i, "need to split", it(into, separate), lines) // then I probably need to split it into separate statements anyway // because otherwise it is difficult to read, will probably lead to logic errors, // and I am likely to make typing errors like missing brackets :) //-- nah, I just break em down like a normal control structure //-- while writing and then close up as many gaps as possible //-- before hitting compile, like I'm doing now to keep all my //-- comments roughly the same length
=) =)
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
05-22-2009 20:22
"Waste a whole line." Heh. Reminds me: the people who REALLY hate my "ugly" opening braces are the ones who feel I am screwing up their ultra-almost-useful number-of-lines metrics. Hey, I can do the whole thing (almost) without ANY whitespace if you REALLY want.  BTW Babylon, you're missing a space in your 'splitLine' string. 
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
05-22-2009 22:20
From: Hewee Zetkin "Waste a whole line." Heh. Reminds me: the people who REALLY hate my "ugly" opening braces are the ones who feel I am screwing up their ultra-almost-useful number-of-lines metrics. Hey, I can do the whole thing (almost) without ANY whitespace if you REALLY want.  BTW Babylon, you're missing a space in your 'splitLine' string.  lol, I just fine the extra line to be a jarring disconnect when changeing indentation levels, as it the controling structure isn't associated with it...because I also use extra line feeds to break up code that doing different logical actions. which is also why I tack my elses onto the trailing brace, because to me it really is the same structure.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
05-23-2009 00:29
I just wanna know how much longer we have to wait before /* style */ commenting will be properly coloured orange in the script editor.
_____________________
 ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
05-23-2009 07:53
From: Winter Ventura I just wanna know how much longer we have to wait before /* style */ commenting will be properly coloured orange in the script editor. do those work now? damn I've been sleeping.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Prajna Vella
Registered User
Join date: 27 May 2008
Posts: 59
|
05-25-2009 03:07
Woah! when did they sneak that in?
/me waits impatiently for a new version of LSLEditor...
|