What you say is what you code
-
This one gave me a good laugh:
if (index == 1 || 2)
{
...bla
}The guy was probably on the phone while writing it.
Company policy : no access to the internet but CP ~RaGE()
Another reason to like C# Perhaps also another argument for the fans of
if ( 1 == index ) { ... }
-
This one gave me a good laugh:
if (index == 1 || 2)
{
...bla
}The guy was probably on the phone while writing it.
Company policy : no access to the internet but CP ~RaGE()
-
This one gave me a good laugh:
if (index == 1 || 2)
{
...bla
}The guy was probably on the phone while writing it.
Company policy : no access to the internet but CP ~RaGE()
Thanks Rage! :laugh::laugh::laugh::laugh: As soon as I open this post a laughed, before even reading it.
INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
-
When I was a noob programmer I would do things like that.
if (index == 1 || index == 2)
...█▒▒▒▒▒██▒█▒██ █▒█████▒▒▒▒▒█ █▒██████▒█▒██ █▒█████▒▒▒▒▒█ █▒▒▒▒▒██▒█▒██
-
When I was a noob programmer I would do things like that.
if (index == 1 || index == 2)
...█▒▒▒▒▒██▒█▒██ █▒█████▒▒▒▒▒█ █▒██████▒█▒██ █▒█████▒▒▒▒▒█ █▒▒▒▒▒██▒█▒██
am i losing it? what's wrong with that? Russell
-
am i losing it? what's wrong with that? Russell
You just have to be careful sometimes because some bizarre languages and/or compilers might have different precedence. I'm guessing that's what he means, to be safe I for one always put in the braces just to make sure it's doing what I want and not what it wants.
-
am i losing it? what's wrong with that? Russell
-
am i losing it? what's wrong with that? Russell
:laugh::laugh:, you know what?? I had a couple of "???" on my head while reading through these posts until I read your post, only then I thought "ok, I'm not the only one who think's (am I missing something):laugh:
Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)
-
My example was the corrected version.
█▒▒▒▒▒██▒█▒██ █▒█████▒▒▒▒▒█ █▒██████▒█▒██ █▒█████▒▒▒▒▒█ █▒▒▒▒▒██▒█▒██
hence the full stop at the end of the sentence not a colon. I should check english syntax aswell as code. Thanks for the response. Russ