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!

Similar Posts:

Share and Enjoy:
  • Facebook
  • Twitter
  • StumbleUpon
  • Digg
  • Google Bookmarks
  • email
  • del.icio.us

{ 1 trackback }

How To Create Custom Template Pages in Thesis Theme | Website In A Weekend
September 30, 2009 at 10:22 am

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

CommentLuv Enabled

Previous post:

Next post: