Has anyone used mnemonics to learn programming?

I’m trying to learn C programming, C++ & python. Has anyone used mnemonics to learn these languages? Practicing is obviously the best way to build up skills but how do you use mnemonics to help?

2 Likes

Which part do you want to use mnemonics for? Are you just learning the languages and already have a background in Basic, Pascal, Ada, etc. or are you learning programming at the same time?

If it’s just a matter of replacing begin…end blocks with {…} blocks because you already know, let’s say, Pascal then it’s straight forward. If you think you need mnemonics for control flow structures or class definitions because you don’t know what they are, it’s another story?

2 Likes

I’m just beggining from scratch.

2 Likes

In that case don’t bother with mnemonics and get the basics down first. Otherwise, it’s like asking for mnemonics to juggle three balls.

A lot of programming is muscle memory and the EDI will take care of Syntax highlighting and auto-complete… as in, when you open parentheses there will be a drop-down with the different function definitions, the parameters to pass, and their data types.

Also, change your keyboard layout to US English, so that special characters are in places that make sense.

4 Likes

Thanks for that. There were other technical subjects I covered aside from programming and it appears that mnemonics work better when you already have the basics down. It makes no sense to commit something to memory when you don’t understand so I guess building a rudimentary understanding at the beginning should take higher priority.

3 Likes

How technical it is is entirely up to you. You can treat a natural language also as a dictionary of terms and a set of grammar rules and make it technical. The other way around, you could simply treat a programming language the way you see a natural language, as a means of communication. After all, you’re just giving the computer a bunch of instructions how you want your program to work.

4 Likes

I never thought of it that way in terms of natural languages or computer languages. I’ll be sure to keep that in mind as to how I approach things.

2 Likes

Maybe it seems a little bit off topic since you all are talking about Programming language and html + css are not programming languages.
I was learning CSS and HTML. But I never used mnemonics to remember CSS properties

Some confusing CSS properties are :

justify-content
align-items
align-content
display
position

However we can use mnemonics if we want

justify-content = jc
align-items = ai
align-content = ac
display = dish
position = pose

We can also remember different values of justify-content using mnemonic

flex-start = starting point
flex-end = the end in a movie
space-between = beet
space-around = round
space-evenly = seven

Justify-content is used to align items horizontally

Mnemonics : jc ( jessy ) running horizontally

align-items is used to align items vertically

Mnemonics : an AI robot running vertically on a wall

1 Like