Click here to Skip to main content
15,887,267 members
Articles / All Topics

The Lost Art of Typing sh*t by Hand

Rate me:
Please Sign up or sign in to vote.
4.49/5 (11 votes)
2 Sep 2016CPOL3 min read 13.3K   5   8
Why typing is awesome

All great programmers learn the same way. They poke the box. They code something and see what the computer does. They change it and see what the computer does. They repeat the process again and again until they figure out how the box works.

– Seth Godin, Poke The Box

A long time ago, back when DOS ruled the world, back before the World Wide Web, back when I was teaching myself BASIC… we typed code out by hand.

There really weren’t a whole lot of good alternatives. If you were lucky, your book came with a floppy disk in the back sleeve that had all the examples on it.

But for the most part, if you wanted to learn programming, it was a lot of trial and error, and a lot of “copying and pasting” code from books (with your hands… using a keyboard).

Why Typing Is Awesome

It’s easy to discount that story as an example of terrible hardship that nobody has to endure anymore. But there’s an amount of… badassity to it.

But more than badassity, typing code out by hand helps you learn. And learning is the name of the game in software.

Typing helps you learn the syntax. It helps you learn the keywords. It makes you think, and as you’re writing out the 10th import foo from 'foo', the little details become apparent.

“Oh, those separators in the for loop are semicolons, not commas.”

“Oh, import {foo} from 'foo' isn’t the same as import foo from 'foo'.”

Typing makes you curious about the words you are forced to write out. “What do all those things in public static void main(String[] args) mean, anyway?”

It also helps you learn the various error messages. Inevitably, you’ll type something wrong or leave out something you thought wasn’t important or that your eye didn’t notice (damn semicolons).

When you’re typing in a program by hand, you can try to run it at various points along the way, to see what works. Maybe more importantly, you can see where it breaks. “Poking the box.”

How To Start Typing in a World With Ctrl-C

At this point, let’s suppose you are convinced that typing sh*t by hand is the best way to learn. How would one go about mastering this skill?

Well, it’s quite simple. Every time you would copy and paste some example code, type it out by hand instead.

  • When copying from a StackOverflow answer: type it out instead
  • When copying example code out of an ebook: type it out instead
  • When following a tutorial on a blog: type it out instead
  • When following any tutorial that says “the sample code is available in the file below”: ignore that pre-packaged bundle of non-learning and type it out instead

By all means, use the example code to check your work; use it if you get stuck. But don’t let the example code be a crutch that prevents you from learning to walk on your own.

Interested in React?

If by chance you’re wanting to learn React, I have a book for that where typing sh*t by hand features prominently (though there is a version that comes with code samples). You can learn about that here.

I also publish a weekly(ish) newsletter with useful articles about React, JavaScript, and other fun stuff like that. It’s free, and you can sign up here.

The Lost Art of Typing sh*t by Hand was originally published by Dave Ceddia at Angularity on August 31, 2016.

This article was originally posted at https://daveceddia.com/feed.xml

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
Dave is a Software Engineer in the Boston area and writes about AngularJS and other JavaScript things over at daveceddia.com

Comments and Discussions

 
QuestionGreat memories Pin
Member 81588646-Sep-16 6:54
Member 81588646-Sep-16 6:54 
QuestionI'm Getting Quite Nostalgic Pin
PeejayAdams5-Sep-16 3:09
PeejayAdams5-Sep-16 3:09 
QuestionCopy/paste is a right you have to earn Pin
Sander Rossel2-Sep-16 23:13
professionalSander Rossel2-Sep-16 23:13 
QuestionMagazines! Pin
PBorchert2-Sep-16 9:01
PBorchert2-Sep-16 9:01 
QuestionBut times have changed... Pin
Kirk 103898212-Sep-16 7:26
Kirk 103898212-Sep-16 7:26 
GeneralMy vote of 1 Pin
KBZX50002-Sep-16 4:14
KBZX50002-Sep-16 4:14 
PraiseWell said Pin
Wendelius1-Sep-16 8:25
mentorWendelius1-Sep-16 8:25 
GeneralGood points Pin
Espen Harlinn1-Sep-16 6:01
professionalEspen Harlinn1-Sep-16 6:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.