Typing practice for programmers: code, brackets and symbols

Last updated

Typing code is not the same as typing an email. Brackets, operators, quotes and mixed capitals turn up constantly, and they sit on keys that ordinary typing practice barely touches. This guide shows how to use PuggieType's code word lists, how the punctuation toggle adds brackets and operators to them, and how to use custom mode to drill snippets from your own work.

Why typing code is a different skill

Most typing practice is built on common words in lowercase, with a space after each one. Code breaks almost every part of that pattern:

You also read code differently. You can't guess the next word from the sentence, so every token has to be read in full. Practice that includes these patterns helps more than piling up more plain-word tests.

How to pick a code word list

PuggieType ships 69 code word lists. They cover javascript, python, rust, bash, html, css and many other languages, and a few come in size variants (code python 1k, 2k and 5k, for example) or as related lists such as code javascript react. To choose one:

  1. Open the typing test.
  2. Click the language name shown just above the words. It reads "english" unless you have changed it. This opens the command line on the language list.
  3. Type code to narrow the list, then the language you want, for example code python or code rust, and pick it.

You can also open the command line from the keyboard with esc or ctrl/cmd + shift + p (Command on a Mac), search for language, open it and search there. The list names are written with spaces: code javascript, code python, code rust, code bash, code html, code c++, and so on.

Code lists work in time and words mode like any other list. Your choice is remembered, so switch back to english when you want a normal test.

Not every list looks the same

This is the part that surprises people. The code lists were built in different ways, and what you see with punctuation off depends on the list.

Lists that already include symbols

Some lists contain symbols, calls or markup in the words themselves:

Lists that are mostly keywords

Many other lists are keywords and identifiers only, with no brackets or operators in the list. Examples are code python (including the 1k, 2k and 5k lists), code go, code java, code typescript, code sql, code c++, code csharp, code swift and code lua. If you open code python you will see words like def, elif, append and __init__, but no colons, brackets or equals signs.

Code lists keep their capitals even with punctuation off, so names such as True, None, Promise and setTimeout (in code javascript 1k) appear as written. That gives you mixed-capital practice from the list alone.

Turn punctuation on for brackets and operators

The punctuation toggle, on the left of the bar above the words, is how you add symbols to the keyword lists, and how you get extra symbol practice on the lists that already have some. On a phone, tap test settings and use the punctuation button in the panel that opens. It works differently on a code list than on English:

The result won't compile, and it isn't meant to. It is a steady, random stream of the symbol keys mixed with real keywords, which is what you want for building familiarity. Turn punctuation on for symbol practice, especially on a list like code python that is mostly keywords. The punctuation and numbers guide explains the toggle on English lists in more detail.

The numbers toggle on a code list

The numbers toggle still works on code lists. With it on, some words are replaced by short whole numbers of one to four digits, which is handy if you want digits in the mix, like the port numbers, counts and version numbers that turn up in real code.

There is a second effect worth knowing. While numbers is off, PuggieType skips list words that contain a digit. That means identifiers such as int64 in code go, u8 in code rust, or tags such as <h1> in code html only appear when numbers is on. If you want the list plus punctuation and nothing else, leave numbers off.

Custom mode for your own code

The word lists give you general practice. For the code you actually write, use custom mode and paste it in: a function, a type signature, a CSS rule, a SQL query, or just a line of the symbols you use most.

  1. Click custom in the bar above the words, then change. On a phone, open test settings, tap custom, then tap change.
  2. Paste your snippet into the text box.
  3. Choose a mode. simple types the text through once, in order, with no time limit. repeat types it in order until a limit you set, and random or shuffle mixes up the order. For those three, set a limit in words, seconds or sections.
  4. Click ok and start typing.

Leave punctuation and numbers off for this. Both toggles still work in custom mode, and if they are on they add their own brackets, marks and random numbers to your text, so you would no longer be typing the code you pasted. The custom text guide explains every mode, limit and option in the window.

A few things to know about pasted code:

A symbol drill can be as simple as one line of the tokens you trip over, typed in random order:

() {} [] => != === && || += -> :: ${name} `text` "key": 'value', #include <stdio.h>

A practice plan

You don't need long sessions. Fifteen or twenty minutes, a few times a week, is enough to make the symbol keys feel familiar. One way to build a session:

  1. Pick the list for the language you write. If there are size variants, start with the smallest one. A shorter list repeats each of its words more often.
  2. Start with the list alone. A few 30-second tests with punctuation and numbers off. This warms up the keywords and the mixed capitals.
  3. Turn punctuation on. Several more tests with brackets and operators mixed in. Slow down if your accuracy drops; reaching for the right symbol cleanly matters more than speed here.
  4. Retry what you missed. After a test, click the Practice words button on the result screen (the warning triangle in the row of icons under your result; hover over an icon to see its name). Under missed, pick words, then click start. It builds a short test from the tokens you got wrong.
  5. Finish in custom mode. Spend the last block on a snippet from your own work, with both toggles off.

To see your progress, measure now and then with exactly the same setup: same list, same test length, same punctuation and numbers settings. Check the test type line on the result screen to confirm the language and toggles before you write a result down. Scores from different lists are not comparable, and your WPM on a code list will usually sit below your WPM on the English list, because the tokens are longer and include symbols. That is expected, so compare each list only with itself. The WPM and accuracy guide explains how WPM and accuracy are counted, and the 1-minute typing test guide shows a fair way to measure with three tests.

If shift timing is the problem, rather than finding the symbols, the accuracy guide covers using the shift key on the opposite hand. For which finger owns each key, including the number row where many symbols live, see the home row and finger placement guide.

What the code lists can't do

Be clear about what this practice is. The code lists are practice tokens: real keywords and common names from each language, shuffled at random. They are not a syntax checker or a programming course, the random brackets and operators don't form valid code, and no list matches every library, framework or style you use. Your own naming habits, the APIs you call most and the formatting your team uses are not in any list.

That is what custom mode is for. Use the lists to get comfortable with the keys, and your own snippets to practice the code you actually write.

Frequently asked questions

Can I practice typing code on PuggieType?

Yes. Click the language name above the words and pick a code list, such as code javascript or code python. PuggieType ships 69 code word lists. You can also paste your own code into custom mode.

Why doesn't code python show any brackets or operators?

Some code lists, including code python, are mostly keywords and identifiers. Turn on the punctuation toggle to add brackets, braces and operators to the test. Lists such as code javascript and code rust already include some symbols.

Should I turn on punctuation with a code list?

For symbol practice, yes. On a code list, punctuation wraps some words in brackets, adds operators as separate words, and adds commas, full stops and quotes. It does not add sentence capitals. Leave it off when you type your own code in custom mode.

How do I type my own code snippet?

Click custom, then change, and paste your code. Pick simple to type it once, or repeat, random or shuffle with a limit to drill it. Keep punctuation and numbers off so your text is not changed.

Why is my WPM lower on a code list?

Code tokens are often longer than common English words and include symbols and mixed capitals, so each one takes more keypresses and more care. Compare each code list only with itself, using the same settings each time.

Related guides