I think an effective way to always know where and when to use each is to understand why there are forward slashes and why there are backslashes. Once I was able to put what I was trying to remember into some context, it became a breeze to always know (not remember) which slash to use. Of course there was a reason and there is most definitely a method to the madness. Or, put into other words, it just seemed like a crap shoot to me which one would be used and that there was really no rhyme or reason to it! (I thought I just had to memorize each instance when and where to use each and that there was no way around it) Boy was I wrong. The reason that I could not remember this detail was because I had no CONTEXT to put it in. Then I started wondering why this was so hard for me to remember when I didn’t have trouble remembering a lot of other small details about situations. The real problem for me (and I think most people) is remembering when to use one or the other. Remembering the name is usually not the biggest problem for me though. Does anyone else have a problem with this? This seems to pop up for me ALL THE TIME! Whether it is in a web URL, a file path on Windows computers, a file path on Mac computers, switch charters in command line, or wherever else they are used! How can I remember whether to use a forward slash or a backslash so that I do not constantly have to keep looking up the correct syntax for the situation that I am in? Side Note: Actually, most of the time, I can’t even remember which one is called a backslash and which one is called the forward slash! I think most people have finally figured out a good way to at least get the names right (and I finally did too after remembering this trick) and that is to just picture the backslash as if it was a line that otherwise would be standing up straight, but instead, is falling BACKwards from the direction in which you read and type (therefor you can also make the mental connection that the forward slash looks like a line falling FOWARDs).
0 Comments
Leave a Reply. |