The 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.
What coding mnemonics do you use?
51–60 of 88 posts
Re: What coding mnemonics do you use?
#52Not a mnemonic per se but I have melodies for common code snippets. "public static void Main(string[] args)", which is the default method signature for the main method in C#, is a hip-hop beat. SQL statements are always metal tunes. Javascript is usually indie pop.
Just out of curiosity, do you say "array of string" or "strings" or something else?
Re: What coding mnemonics do you use?
#53Earlier quoted context omitted.
That seems ambiguous to me in several ways. There must be more semantics you are subconsciously depending on to clarify it.
I think he means that he visualizes the pair " " relative to a line of numbers. Similar to how he placed it above a line of numbers in his ASCII art. points up (right) to numbers that are greater than. Makes perfect sense if you are a visual thinker.
Re: What coding mnemonics do you use?
#54The 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'
Re: What coding mnemonics do you use?
#55When working with axis - "X is a-cross"
Re: What coding mnemonics do you use?
#56Re: What coding mnemonics do you use?
#57Earlier quoted context omitted.
I find it hard to believe that someone actually mixes these unless they completely skipped all math classes in school.
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 <.
Re: What coding mnemonics do you use?
#58You might try a visual trick. Note that look like "arrows" and "point" in a particular direction. There is a small end (the tip/point) and a large end (the open end). The vertical size of the point is "less than" the vertical size of open end. So if the point comes first (reading left to right) then the point is "less than" the opening (and the symbol means "less than"), but if the opening comes first (reading left t…
Imagine the arrows are crocodiles. They always try and eat more. 1 4 > 1 If they're eating less, they're not happy crocodiles.
Re: What coding mnemonics do you use?
#59Look, Joshua Foer says that emotional imagery is more likely to stick...
Re: What coding mnemonics do you use?
#60Earlier quoted context omitted.
I find it hard to believe that someone actually mixes these unless they completely skipped all math classes in school.
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 <.