Not 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.
What coding mnemonics do you use?
11–20 of 88 posts
Re: What coding mnemonics do you use?
#12Re: What coding mnemonics do you use?
#13You 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…
Numbers are cruel and ruthless :)
Re: What coding mnemonics do you use?
#14You 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…
Re: What coding mnemonics do you use?
#15Not 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.
I also have a melody for the default method signature in Java which is the same except a slight difference in case "public static void main(String [] args)"
Rapping arbitrary chunks of code could be a fun after-hours conference game.
Re: What coding mnemonics do you use?
#16Earlier quoted context omitted.
I also have a melody for the default method signature in Java which is the same except a slight difference in case "public static void main(String [] args)"
Please tell me you guys are actually singing the signature to a particular tune in your head like people sing the ABC song when they recite the alphabet. Because that is adorable. Rapping arbitrary chunks of code could be a fun after-hours conference game.
Re: What coding mnemonics do you use?
#17You 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…
Re: What coding mnemonics do you use?
#18Earlier quoted context omitted.
I don't know if this is common, but I visualise numbers on a line which makes it amazingly easy to use the 'arrows' metaphor 1 2 3 4 5
That seems ambiguous to me in several ways. There must be more semantics you are subconsciously depending on to clarify it.
Re: What coding mnemonics do you use?
#19$(CC) -c $^ -o $@