Course Syllabus
Spring 2018 CpSc 217:  Structured and Dynamic Web Programming  
Instructor: Dr. David Dailey

Meeting Times:

Section 1: M  W  F  1:00-1:50pm  ATS 230

Meeting place: 230 ATSH

Instructor's Office Hours: 

MWF 11-12 or by appointment

Instructor's Office location: ATSH 248

Instructor's e-mail address:  david.dailey@sru.edu

Course Objectives and Description: See end of this document.

Prerequisites:  CpSc 130 and CpSc 146.

Required reading: Class web page found at http://srufaculty.sru.edu/david.dailey/cs217/index.htm

Suggested text: JavaScript Definitive Guide by Flanagan, published OReilly, (any reasonably up-to-date edition, really)
Alternative suggestion: Inside JavaScript
by Steve Holzner, publisher: New Riders, ISBN 0735712859.

Computing labs: The class will primarily use equipment provided in ATSH 230; but other machines on campus are available and may be used as well. ATSH 224, for example has much of the same software as that deployed in ATSH 230.

Software used:

Microsoft Windows, possibly UNIX or Linux
Web-browsers: recent versions of Firefox, Chrome, and Internet Explorer
Web-authoring software:  HTML-Kit.
Graphics software: Adobe Photoshop.

Use of e-mail software (Eudora, Outlook, or other) is also required.

Method of determining final grade
: Assignments: 35%; quizzes 40%
(two quizzes, each worth 20%); one final project: 25%, due at beginning of last class meeting (the time normally reserved for the final exam).

Final exam:  The course will not have a final exam, but rather will meet for a final class (Thurs. May 10, 1–3 p.m., as per this schedule).

Attendance policy: Regular attendance is expected. Excessive absences will have an effect on your grade. If a prolonged illness should cause you to miss several class periods, you are expected to discuss this with the instructor.

Late work: The grade on any late assignment will be dropped by 20%. Assignments more than two weeks late will not be accepted. Any work submitted late must have the word (LATE) in parentheses following your last name in the subject line of the email. If it does not, it will not be scored.

Make-up exams: It is the student's responsibility a) to notify the instructor beforehand if he or she must miss an exam due to illness or family emergency and b) to take the initiative in finding a time suitable to the instructor for a make-up exam. Make-up exams should be scheduled within one week following the original exam date.

Academic Integrity: All academic work for this course must consist of your own work. See the University's statement on Academic Integrity .

Assignments and tasks: Each assignment will be explained in class. Any uncertainties students may have about an assignment should be raised at the time the assignment is made. Students will be required to use e-mail for certain assignments; assignments submitted via e-mail must include the course number, the student's last name and the assignment number in the subject line of the message. Assignments submitted through e-mail that do not follow the specified format may not be accepted.

Several homework assignments will be given during the semester. Unless otherwise stated, these assignments are to be completed individually by each student. Students may be called upon to present and explain their work to the class or to the instructor and should be consistently and adequately prepared to do so.

As the semester progresses, additional details about assignments may be found on the class web page.

Tentative Schedule of Topics

The instructor reserves the right to change topics covered or the order in which they are covered at his/her discretion. Assignments shown may vary. Refer to lecture notes and/or course web-site for details.

Week 1 -- : Course introduction. Web browsing. A glimpse of JavaScript, introduction to web-authoring: basic HTML.

          HTML review (tags and attributes, tables, anchors, scripts, images): 

Assignment 1: verify ability to login to lab machines to find class web-space and to use e-mail.

      Legal issues (part 1):

a.       Differences between copyright, trademark, and patent

b.      Copyright: Title 17, (basic definitions, scope, exclusive rights, limitations) sections 102, 105, 106, 107, 120).

c.       Differences between statute, treaty and case law

Week 2 -- :  More on HTML: Basics of a web page.  Forms, form elements.  Beginning JavaScript: functions, alert messages and debugging. Adobe Photoshop, more on legal issues, GIF and JPEG, images in tables, responding to simple events.

Legal issues part 2:

a. current legislation (e.g. copyright term extension act, database misappropriation act)

b. current case law pertaining to the web (e.g., Bridgman v Corel, thumbnails, deep-linking)

c. the public domain

Images:

a.       File formats: gif, jpg, and png as opposed to (for example) svg, targa, tiff, bmp and pct.

b.      compression, lossiness

c. bitmapped versus vector graphics

d.      Dpi and bits per pixel; print vs. screen images

e.       Color space: RGB, HSB, and CIE

f.       anti-aliasing, dithering

g.        Creating images.

 

Week 3 --  Scripting images: rollovers,  The document.images[] and document.forms[] arrays; JavaScript loops.

Week 4 --   Scripting images (conditionals and string handling)

Week 5 --  Objects, events, buttons, mouse-clicks and functions. Random numbers.

Naming objects in JavaScript

a.       scope of identifiers

b.      document.formname.input.value vs., input.value vs. getElementById

Attaching events to objects

a.       HTML objects (body, form elements, anchors)

b.      events: onload, onmousedown, onmouseup, onmouseover, onmouseout, onfocus, onkeydown


Probable time for Quiz 1

Week 6 --   Functions, variables, strings, random number generation

a    Message passing: functions, arguments and objects

b.    Scope of variables in functions

c.     string methods (charAt,      IndexOf, substring, split)

Week 7 --  Simple data structures:  arrays, objects, time. The Document Object Model.

Week 8 --   Array management: Push,  Pop,  Split, Join,  Sort

Week 9 --  Windows, Documents, Locations, Frames; rewriting a document.  document.write, innerHTML, getElementById, createElement and appendChild.

Weeks 10 -12 --   Animation and timing: SetTimeout and setInterval, Phase and synchrony issues, mouse coordinates, Absolute positioning: style.top and style.left ,  Screen dimensions. Assigning events.

Quiz: Probable time for Quiz 2.

Weeks 13 - 15 -- HTML5, <canvas>,  XML; Advanced topics, including lab work on final projects.  May include topics such as server-side scripting, user-interface,    preloading images, Assigning event handlers, etc.


 

CPSC 217 - Structured and Dynamic Web Programming

Catalog Description

This course is designed to cover the features of popular programming languages specifically for creating web pages. Mouse rollovers, browser detects, pop-up windows that launch when a web page loads or in response to specific actions, and form data-checking are just a few of the most popular uses of web programming languages that will be discussed. Programming will be done in a representative programming language.

Prerequisites: CPSC 130 and CPSC 146 (3 credits)

Course Outcomes

This course and its outcomes support the Computing Learning Outcomes of Problem Solving and Critical Thinking (PS&CT), Communication and Interpersonal Skills (C&IS), and Ethical and Professional Responsibilities (E&PR). These Computing Learning Outcomes are tied directly to the University Wide Outcomes of Critical Thinking and Problem Solving, Communication, and Values and Ethics.

Program Objectives Assessed in CPSC 217

Learning Outcomes Assessed Course Objectives
PS & CT b. Integrate design and implementation principles to develop effective applications 1. Write dynamic, scripted, web-based programs that involve decisions based on user input.
PS & CT d. Implement computing solutions that consist of system and application software written in various programming languages
PS & CT e. Create efficient, user-friendly applications appropriate to the computing problems
C & IS a. Document all aspects of a system precisely and clearly 2. Make web pages that are understandable and appropriately documented.
E & PR e. Recognize the need for continuing professional development 3. Document ability to incorporate new sources of information in the solution of computing problems.

Additional Course Objectives include:

The student will be able to:

  1. Demonstrate the use of general scripting concepts.
  2. Identify the constructs of the chosen programming language that are used for sequential, conditional, and iterative programming as well as modular constructs.
  3. Identify the concerns related to the ethical and legal use of advancing computer technologies.

Title IX: Slippery Rock University and its faculty are committed to assuring a safe and productive educational environment for all students. In order to meet this commitment and to comply with Title IX of the Education Amendments of 1972 and guidance from the Office for Civil Rights, the University requires faculty members to report incidents of sexual violence shared by students to the University's Title IX Coordinator. The only exceptions to the faculty member's reporting obligation are when incidents of sexual violence are communicated by a student during a classroom discussion, in a writing assignment for a class, or as part of a University-approved research project. Faculty members are obligated to report sexual violence or any other abuse of a student who was, or is, a child (a person under 18 years of age) when the abuse allegedly occurred to the person designated in the University protection of minors policy. Information regarding the reporting of sexual violence and the resources that are available to victims of sexual violence is set forth at: http://www.sru.edu/offices/diversity-and-equal-opportunity/sexual-misconduct-and-victim-resources.