UMass Lowell Dept. of Computer Science

COMP 4610 — GUI Programming I

Fall 2019 Semester

Prof. Jesse M. Heines filling in for Prof. Wenjin Zhou

Class Notes

JavaScript Debugging and Best Coding Practices

Tuesday, November 26, 2019


Handouts and References


Introductory Activity

Please go to https://pollev.com/heines to respond to the questions that I post there

What do your answers imply with respect to work and personal activities and time?


Class Notes

JavaScript is easy ... until it ain’t

Do you always understand your own code?

JavaScript “Gotchas”


Using the Debugging Console


Avoiding Errors through Coding Style

“Best way to avoid punch: No be there”

Intentional obfuscation

Caching

The role of documentation

Basic Coding Practices

Basic Code Formatting Rules (Style Guides)

https://google.github.io/styleguide/javascriptguide.xml


Overall Code Development Process

Understanding “Stepwise Refinement”

Isolate code into separate files that get “included”

Example:  Successive versions of your Assignment No. 6


Thank YOU! 



This is document http://jesseheines.com:8080/~heines/91.461/91.461-2019-20f/461-lecs/lecture01.jsp.  It was last modified on Friday, August 26, 2022 at 4:09 PM.
Copyright © 2022 by Jesse M. Heines.  All rights reserved.  May be freely copied or excerpted for educational purposes with credit to the author.