Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Please teach me a good mnemonic for remembering "slash" vs. "backslash" [closed]

I have a colleague who keeps confusing slashes "slash" and "backslash" (As in: "Should I escape such-and-such with a slash?" My answer: "No.")

I'm trying to teach him the difference but so far just telling him the name of the symbol doesn't seem to stick. That's why I'm trying find a good mnemonic to help him remember, but I can't think of one.

I have seen the following:

/ is like a guy leaning forward
\ is like a guy leaning BACKward

But that requires you to remember that the guy is facing right, which just shifts the burden of remembering one arbitrary datum to remembering another arbitrary datum. (Case in point: when I told him that mnemonic, his response was "Oh yes, I see. But that only works if I remember that the guy is walking to the left." D'oh!)

So, is there a more easily remembered mnemonic for slash-vs-backslash? Perhaps one that relates to real-world experience?

like image 309
rix0rrr Avatar asked Jan 24 '11 16:01

rix0rrr


People also ask

How do you memorize slash and backslash?

Use this: A line was standing up. If it fell forwards, it's a forward slash, if it fell backward it's a backslash.

What is the difference between slash and backslash?

Summary: The Backslash and Forward Slash Make sure to remember the following: The backslash (\) is mostly used in computing and isn't a punctuation mark. The forward slash (/) can be used in place of “or” in less formal writing. It's also used to write dates, fractions, abbreviations, and URLs.

Why is it called backslash?

It is called a backslash because it is usually made with a back motion, starting at its top and pulled down and back. Occasionally it was simply called a slash.

How do you write backslash?

Alternatively referred to as a backward slash, downward slash, and reverse solidus, the backslash is a character ( \ ) first introduced by Bob Bemer in 1960. Although "slash" is most often used to describe the forward slash, it can describe either a forward slash or backslash.

How do you make a forward slash on a keyboard?

To type the Forward Slash symbol on your keyboard, press and hold the Alt key and type the Forward Slash alt code which is 47 on the numeric keypad, then release the alt key. For Mac users, press on your keyboard, Option + Shift + 1.


3 Answers

Use this: A line was standing up. If it fell forwards, it's a forward slash, if it fell backward it's a backslash.

like image 198
Hugh Jass Avatar answered Oct 18 '22 20:10

Hugh Jass


On my keyboard, the BACKslash key is right below the BACKspace key.

And slaSH is right next to SHift.

like image 21
Gabe Avatar answered Oct 18 '22 19:10

Gabe


The top of a backslash points to the back. (when reading left-to-right, as English is read)

like image 6
SLaks Avatar answered Oct 18 '22 20:10

SLaks