|
VS does.
Think about it: it accepts any character in a string (for globalisation support) so it accepts any character, anywhere...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Yeah, I guess it has to.
Removing \ form multiline defines is also hard to spot, the compiler doesn't necessarily object even.
|
|
|
|
|
|
You evilest evil to ever evil... well thanks, now I would know how to defend
|
|
|
|
|
Removing a couple of brackets could also be quite annoying.
Or rewrite the entire code in VB while he's away from his keyboard...
Anything that is unrelated to elephants is irrelephant Anonymous ----- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944 ----- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
Yes, but with removed brackets it's obvious from a quick glance.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Just remove the semicolons after the closing brackets of structs. Better if done in a header file.
Hell awakens in each and any compilation unit.
|
|
|
|
|
If they are coding in Javascript, they may not notice this for a few months...
|
|
|
|
|
and get shot? Seriously mean. Funny for some.
Easy to find and fix though.
To err is human to really mess up you need a computer
|
|
|
|
|
Your cats didn't do this to you, did they?
|
|
|
|
|
OriginalGriff wrote: If you remember which lines, you can also fix it for him - for a price... Just remember who started it when he keys your car or sends photos to your wife from last years office Christmas party.
Government is not reason; it is not eloquent; it is force. Like fire, it is a dangerous servant and a fearful master. ~ George Washington
|
|
|
|
|
Good thing you did not mention Java. Those poor guys probably already are sufficiently annoyed.
Life is too shor
|
|
|
|
|
ack! Reminds me of the time I accidentally typed a capital O instead of a zero in some code and the font I was using made it impossible to see. Took me several days. I had actually given up and was pasting the trouble code into an email for someone to help me and the email program changed the font to one that distinguishes O and 0 better.
|
|
|
|
|
That is exactly why I use a font with slashed zeroes.
Within you lies the power for good - Use it!
|
|
|
|
|
You see people, this is why you lock your workstation when you walk away. It's not because of corporate policy, it's because of the evil doers in the cubicle next to you.
At my previous job, a dude left his computer un-locked and walked away. One of his "friends" decided it would be funny to send an email from the computer expressing his undying love and lustful urges for a guy in the next block of cubes.
What was supposed to be a little joke, turned in to a heated argument and went down hill quickly.
|
|
|
|
|
While a good prank I see a flaw in your logic.
Dij codes like chuck norris
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
If his editor doesn't support Unicode, just stick a regular semicolon after an if or while statement before the braces. Those compile and are hard to spot.
if(count<10);
{
}
|
|
|
|
|
Doesn't work on mine - there is an option in most compilers to treat that as an error, and I always turn it on! In C++ it's C4390[^] - a level three warning. And I set "treat warnigns as errors" to trap it.
It caught me once, years and years ago: it doesn't catch me again!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Besides knowing your reputation, you are a good software engineer to turn on those compiler options.
|
|
|
|
|
How about this (put enough spaces in there to get it off-screen)?
if(count<10) count=10;
{
} :evillaugh:
Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
|
|
|
|
|
Bah!
I just remotely lock their workstations, while they're using them.
|
|
|
|
|
OriginalGriff wrote: there is no ALT or ALTGR sequence as far as I can find.
There is, but you need to enable that via registry, so it is not there by default.
Looky here: HKCU\Control Panel\Input Method\EnableHexNumpad[^].
I've just tried this out on Windows 7 and it works like a charm.
Cheers!
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
|
|
|
|
|
Source control, m**********r, do you use it?
|
|
|
|
|
Ha ha ha. That totally reminds me of David Duchovny on Californication.
Jeremy Falcon
|
|
|
|
|
Another really "nice" character is the ASCII char 0x7F (or 127).
While maybe not as confusing as a character that just looks like semicolon but isn't it's a character which is usually invisible (at least in VS) (although the error window shows that square placeholder symbol as the error)
Btw: I noticed that as I tried to write the tilde symbol "~" which is 0x7E (or 126). And I absently didn't notice I had even written a character..
(yeah, somehow Visual Studio or Resharper or whatever likes to hijack the usual keyboard hotkey for that symbol so I have to write it by using its character code )
|
|
|
|