You are here: Home » Extending WordPress » Key Technique For Learning HTML and PHP

Key Technique For Learning HTML and PHP

by Dave Doolin on June 7, 2009 · 1 comment

(Reading time: 1 – 2 minutes)

Here’s one of my key, secret techniques for learning code:

I type in example code by hand.

It turns out there’s magic that happens between reading source code from a book, manual, or web page then typing it into your own program. I don’t know what it is, but I do know it works. You will learn faster when you type source code in by hand.

I do NOT download source code.

Also, copying and pasting can result in improper characters being copied. The most infamous example is probably the tab -> space conversion with Makefiles.

In HTML, quote characters are often mis-pasted. The pretty “smart quotes” you see in this article are not the quotes I typed into the editor when writing the article. WordPress substitutes smart quotes on the fly, when serving pages. If you copied these quotes, what you pasted into a source code editor would likely be the unicode characters you see on the screen, and not what I typed at the keyboard (and what you need in your code).

Don’t download, or cut-and-paste. Punch that code in by hand!




Would you like more? Send me a letter...
"Hi Dave,
Website In A Weekend seems pretty cool. I'm serious about this WordPress and web stuff, and I'd like to keep up with it. My name is and my email address is . I'm comfortable with email newsletters. I know you will protect my privacy, and that I can unsubscribe at any time. "

Comments on this entry are closed.

{ 1 trackback }

Previous post:

Next post: