r/OutOfTheLoop • u/aholeinthestall • Jul 31 '15
Answered! Is there a reason why the arm is always missing when I see one of these ¯_(ツ)_/¯ in comment threads?
It seems that in every comment thread with the shrugging dude in it he is missing an arm and the first comment below is something like "you dropped this \". Is this an inside joke, a reddit comment quirk, or do people just forget the arm all the time?
2.1k
Upvotes
7
u/Good_At_English Aug 01 '15
Looks like I'm gonna be the first to ask, did you realize as soon as you posted this, when you saw your backslash didn't appear?
68
u/[deleted] Aug 01 '15 edited Aug 01 '15
Deeper explanation: in programming, some characters are used to do something inside a string, which is a set of words (surrounded by quotes).
For example, this is a string: "Hello World!". The computer knows it's a string because it's inside double quotes. You NEED the double quotes to be a string (in most programming languages as far as I know). If you don't put double quotes, you'll get errors.
What if I wanted to type this out: "He said, "Hello World!"". Notice the problem? There are double quotes inside the first set of double quotes. That means the program will end the string on the first pair of quotes it reaches, so it will only see this: "He said, " as the string. But of course, you'll get an error because now you have: Hello World!"" and you can't just leave letters outside quotes (in programming).
So how do you make it actually print a quote character? A backslash! A backslash is used to "escape" a character (that has special meaning, such as a double quote, and on reddit, the underscore) and actually allows it to print. So the backslash will allow the compiler to ignore the special ability the character has and allows it to print. So in order to print the correct form, this is how you do it: "He said, "Hello World!"" . This will print:
But what if you want a backslash to show? You escape it with a backslash! So now you have "\\", the first backslash escapes the backslash to allow it to print.
In this syntax reddit uses, you also have to escape _ because it's a special character. So the 3rd backslash escapes _ , then the 2nd backslash is used to actually print while the 1st backslash escapes the 2nd backslash and allows it to show.
Think of it like that above: the first one escapes the backslash so it prints, then the third backslash escapes the _ so it can print.
5
u/crazykoala Aug 01 '15
How do I type in this character ツ without doing a copy/paste?
2
u/blueskin Aug 01 '15
People can't escape characters. To type a literal _, you need to type
\_due to reddit's weird formatting system.\is an escape character and so not displayed when immediately followed by another character (in this case_); instead it's taken as "don't treat the next character as a special formatting character".E.g. to start a line with
*it needs to be\*in the text box.* Like this if you view source on this comment.
0
u/[deleted] Aug 01 '15
[deleted] — view deleted comment
1.5k
u/[deleted] Jul 31 '15
[removed] — view removed comment