Coding Steps
Setting Up
- Keep handy a copy of the JavaScript reference
- Open the W3 Schools JavaScript reference.
- Download/Open your favorite JavaScript text editor for your operating system:
- Windows
- Mac OS X 10.3 or 10.4: TextWrangler (includes file comparison)
- Linux: tclPad
- The Firefox Web Browser is the best choice for JavaScript. It is available on the computers in MGH 430 and in all other campus computer labs. Download Firefox for your laptop or your home or work computer.
- Install the Web Developer toolbar for Firefox. Follow screen prompts to download and install. From the menu choose Tools> Validate HTML to give yourself a good foundation for your JavaScript coding.
Coding
- Open your web browser’s debugger window\
- Write down your programming algorithm in English, expanding the detail as needed. (This is your pseudo code)
- Break your program down into smaller manageable parts
(functions, statements, display, program logic,
etc…)
The dirty work – Rinse, Wash, Repeat
- Text
Editor : write a small section of your program,
converting your pseudo code into JavaScript using the
references for assistance.
- Text
Editor : Save
- Web Browser : Open your .html file and
debugger
- Web Browser : Did you get what you were expecting
with no errors?
- If no errors
- Text
Editor : Verify correct JavaScript syntax, verify
algorithm is correct
- Text
Editor : Make ONE change to your code and hit
save
- Web Browser : Clear your debugger
and reload your page
- Web Browser : Did you remove the errors? : If no – repeat A – C
- Text
Editor : Verify correct JavaScript syntax, verify
algorithm is correct
- Save a backup of your work to your dante
account.
- Figure out what logical piece must be written
next (often times this “plugs in” to the
previous section)
- Repeat 1 – 7 until finished
- Text
Editor : write a small section of your program,
converting your pseudo code into JavaScript using the
references for assistance.
Home
Overview
Vision
Grading
Communications
Instructor
Calendar
Weekly Schedules
Readings
Homework and Labs
Projects
Resources
Computing
eReserves
Syllabus
Last updated: Monday, 02-Nov-2009 18:32:21 PST
© 2009 Information School of the University of Washington
All rights reserved