|
for (Int16 i = 1; i <= 2; i++)
I suppose this is the DRY principle taken to its logical conclusion
|
|
|
|
|
My first thought was "that will execute three times" and then I noticed it starts at 1
VS2015 would also give the advice to "simplify" Int16 to short (as Int16 is waaaay to esoteric for us simpletons)
|
|
|
|
|
I could just imagine the next few lines being
if (i == 1) {
}
else {
}
(Maybe too much time looking in QA)
Cheers,
Mick
------------------------------------------------
It doesn't matter how often or hard you fall on your arse, eventually you'll roll over and land on your feet.
|
|
|
|
|
Fortunately not - though it does have an inner loop that is a foreach and I think it could be refactored away. Got to put some tight unit tests down around it first as there is little or no intent in evidence from code or comment.
|
|
|
|
|
Looks like that'll run fast and stable.
Kitty at my foot and I waAAAant to touch it...
|
|
|
|
|
Never heard of IF-less programming?
|
|
|
|
|
Why On Earth?!?[^]
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
# define begin {
# define end }
|
|
|
|
|
I'm bleeding
Loneliness and cheeseburgers are a dangerous mix.
|
|
|
|
|
Nice and tidy
Would be fun to unindent some statements... someone should really consider a change of language
(yes|no|maybe)*
"Fortunately, we don't need details - because we can't solve it for you." - OriginalGriff
|
|
|
|
|
The real question is; "Is that done with tabs or spaces?"
|
|
|
|
|
Actually, I find it surprisingly readable
Of course putting all the semicolons and brackets there is one hell of a job (unless it's somewhere in the formatting options).
|
|
|
|
|
Sander Rossel wrote: Actually, I find it surprisingly readable
Yeah, but you're Dutch.
|
|
|
|
|
It reads as C# without curly braces.
I have a VB.NET background, which also doesn't have curly braces.
Who needs curly braces anyway
Seems like hell to format though
|
|
|
|
|
Sander Rossel wrote: have a VB.NET background
Ahh, that explains everything!
|
|
|
|
|
looks very much like Python
|
|
|
|
|
That was my initial thought.
Cheers,
Mick
------------------------------------------------
It doesn't matter how often or hard you fall on your arse, eventually you'll roll over and land on your feet.
|
|
|
|
|
Colourful, build-in emoji's, what's not to like?
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
I could not think of a better place to post such a comment other than here with the other unusual happenings.
if (Object.DividedByZero == true) { Universe.Implode(); }
Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016
|
|
|
|
|
It is truly the end of the age.
|
|
|
|
|
|
Has it started snowing in Hell?
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
Just curious when baseball teams from outside the US will be allowed to compete...otherwise it just doesn't seem right to call it the World series.
"Go forth into the source" - Neal Morse
|
|
|
|
|
As soon as they can agree on the rules and the US teams aren't budging on making the rest of the world play by our rules.
if (Object.DividedByZero == true) { Universe.Implode(); }
Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016
|
|
|
|
|
The first change they will have to make is to call it by it's proper name: "softball".
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|