Debugging Code
Debugging Code
Debugging is going to be a natural part of creating an application. The computer always follows
your instructions exactly, yet no program ever works as you expect it to. Debugging can be
frustrating. Three of the more common mistakes to watch out for are
Especially if you haven’t done any coding before, I strongly recommend that you code with
access to an Internet connection using the Codecademy.com platform, because you don’t have
to download and install any software to start coding, you don’t have to find a web host to serve
your web pages, and you don’t need to upload your web page to a web host. As you code, the
Codecademy.com platform does these tasks for you automatically.
Working offline
» Editor: This refers to the text editor you use to write all the code this book covers,
including HTML, CSS, JavaScript, Ruby, Python, and PHP.
The editor you use will depend on the type of computer you have:
se the preinstalled Notepad or install Notepad++, a free editor
• PC: U
available for download at http://notepad-plus-plus.org.
• Mac: Use the preinstalled TextEdit or install TextMate 2.0, an open-source
editor available for download at http://macromates.com.
» Browser: Many browsers exist, including Firefox, Safari, Internet Explorer,
and Opera.
I recommend you use Chrome, because it offers the most support for the latest HTML
standards. It’s available for download at www.google.com/ chrome/browser.
» Web host: In order for your website code to be accessible to everyone on the
Internet, you need to host your website online. Freemium web hosts include Weebly
(www.weebly.com) and Wix (www.wix.com); these sites offer basic hosting but charge
for additional features such as additional storage or removal of ads. Google provides
free web hosting through Google Sites (http://sites.google.com) and Google Drive
(http://drive.google.com).