Programming Mnemonicsposted in productivity on • by Wouter Van Schandevijl
Mnemonics - helping developers remember intrinsics since 1973.
a system such as a pattern of letters, ideas, or associations which assists in remembering something.
One I couldn’t remember for the longest time until I found this gem:
\r\n: ReturN - the R is before the N
And a quick reminder:
OS & Windows: \r\n 0D0A (hex), 13,10 (decimal) Unix & Mac OS X: LF, \n, 0A, 10, Newline Macintosh (OS 9): CR, \r, 0D, 13
Parameters vs Arguments: Arguments are Actual
\: Backslash is a man falling backwards.
/: Forwardslash is the opposite.
.unshift: Makes it bigger. Longer word than .shift
.shift: Makes it smaller. Shorter word than .unshift
.call: Pass arguments as columns -
fn.call(this, arg1, arg2, ...)
.applyPass arguments as an array -
fn.call(this, [arg1, arg2, ...])
- “squared circle” aka
.*to Slurp up numerous lines
$to match in the Middle of the string
Order for margins/paddings
If you don’t remember there will be TRouBLe
margin: T R B L; or: The Really Big Lebowski or a clock: 12h 3h 6h 9h
Pseudo class order
LoVe / HAte
.class vs #id
Hash is not a class
The order of math operations:
Please Excuse My Dear Aunt Sally
(Parentheses, Exponents, Multiply, Divide, Add, and Subtract)
To remember the value of pi:
May I have a large container of coffee?
(The number of letters in each word equals the numerals in pi = 3.1415927)
Even for tar
Even for tar one exists, as the following IRC conversation illustrates:
<sdmkun> tar -xzf merc.tgz what the fuck <sdmkun> how the fuck do you people remember this shit <bucketmouse> just think with a german accent <bucketmouse> XTRACT ZE FILES