Earlier quoted context omitted.
I find it hard to believe that a statistically normal programmer mixes up . That sounds more like dyslexia.
This is the first time I'm hearing about this too so I think there is more to it. I don't even see why a mnemonic is required since the shape of both ' ' clearly demonstrate the relationship that the operator is testing.
What coding mnemonics do you use?
71–80 of 88 posts
Re: What coding mnemonics do you use?
#72I never remember that . = class and # = id in CSS, so I use "say no to drugs" to remember that "hash is not class". Perhaps a mnemonic which only really works in the North East of the UK where 'class' is colloquial slang for 'good'. Also not very good if you smoke pot, I guess.
Re: What coding mnemonics do you use?
#73When using ln to link files, I tend to recite: ln -s "what you want," "where you want it"
Re: What coding mnemonics do you use?
#74Questionably coding, but I always loved this IRC snippet: tar -xzf merc.tgz what the fuck how the fuck do you people remember this shit just think with a german accent XTRACT ZE FILES
Re: What coding mnemonics do you use?
#75Questionably coding, but I always loved this IRC snippet: tar -xzf merc.tgz what the fuck how the fuck do you people remember this shit just think with a german accent XTRACT ZE FILES
I really don't see what the big deal is with tar. Everyone seems to hate it. Probably because exactly one of those flags is necessary: zcat merc.tgz | tar -x
tar - [create] [verbosely] [a g/bzip'd compressed] [file named] foo.tgz (from) input_dir
tar -cvzf foo.tgz input_dir
Your version doesn't seem as 'fun', I guess zcat and PIPE are just hard to rhyme along to.
Re: What coding mnemonics do you use?
#76Earlier quoted context omitted.
Ah, yes the "I can't fit it to my mental model, therefore it is impossible" argument. When little, my brother used to mix up the words "more" and "less" while speaking. I don't doubt someone could mix up > and <.
It's easy. They're alligator mouths, that always go for the larger number (greedy alligators!)...
Re: What coding mnemonics do you use?
#77Questionably coding, but I always loved this IRC snippet: tar -xzf merc.tgz what the fuck how the fuck do you people remember this shit just think with a german accent XTRACT ZE FILES
Don't memorize. Use unp: http://packages.debian.org/unstable/utils/unp
Re: What coding mnemonics do you use?
#78Earlier quoted context omitted.
Just out of curiosity, do you say "array of string" or "strings" or something else?
Actually, I say "string" and then drop the bass for the square brackets.
Re: What coding mnemonics do you use?
#79LoVe HAte when ordering psudeo classes in css for anchors* ":link, :visited, :hover, :active" *may not be particularly weird or novel
Also CSS related, when doing margin/padding I use "TRouBLe" to remember: margin: (T R B L)
Re: What coding mnemonics do you use?
#80The fact that programmers can't remember well illustrates why children shouldn't be chastised for getting (for example) b and d wrong. I have dealt with this by conditioning myself to always read < as 'is less than'
I find it hard to believe that a statistically normal programmer mixes up . That sounds more like dyslexia.