javascript introstasko/4460/notes/lab1.pdfjavascript intro a relaxed programming language… 1 fall...

5
9/8/17 1 Fall 2017 CS 4460 JAVASCRIPT INTRO A relaxed programming language… 1 Fall 2017 CS 4460 2 “Relax, you fellas have nothing to worry about, I’m a professional.”

Upload: others

Post on 08-Jun-2020

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: JAVASCRIPT INTROstasko/4460/Notes/lab1.pdfJAVASCRIPT INTRO A relaxed programming language… 1 Fall 2017 2 CS 4460 “Relax, you fellas have nothing to worry about, I’m a professional.”

9/8/17

1

Fall 2017 CS 4460

JAVASCRIPT INTROA relaxed programming language…

1

Fall 2017 CS 44602

“Relax,you fellas have nothing to worry about, I’m a professional.”

Page 2: JAVASCRIPT INTROstasko/4460/Notes/lab1.pdfJAVASCRIPT INTRO A relaxed programming language… 1 Fall 2017 2 CS 4460 “Relax, you fellas have nothing to worry about, I’m a professional.”

9/8/17

2

Fall 2017 CS 44603

“Relax,don't do it. when you want to go to it.”

Fall 2017 CS 44604

RELAX?

• Compared to Java, C/C++ or even Python, JavaScript is a relaxedprogramming language

• JavaScript is weakly and dynamically typed

• This means variable declarations don’t require a type, and you can changethe type of object that a variable points to

• JavaScript relies heavily on functional programming and has non-classicways for defining Classes

• JavaScript can throw Exceptions, however those Exceptions don’t typicallycrash or stall the UI of your app like in Java or C

// JavaScript codevar class = “CS 4460”;// No exception thrownclass = 4460;

// Java codeString class = “CS 4460”;// Throws a ClassCastExceptionclass = 4460;

Page 3: JAVASCRIPT INTROstasko/4460/Notes/lab1.pdfJAVASCRIPT INTRO A relaxed programming language… 1 Fall 2017 2 CS 4460 “Relax, you fellas have nothing to worry about, I’m a professional.”

9/8/17

3

Fall 2017 CS 44605

Fall 2017 CS 44606

Page 4: JAVASCRIPT INTROstasko/4460/Notes/lab1.pdfJAVASCRIPT INTRO A relaxed programming language… 1 Fall 2017 2 CS 4460 “Relax, you fellas have nothing to worry about, I’m a professional.”

9/8/17

4

Fall 2017 CS 4460

BEFORE D3

HTML

CSS

DOM

Javascript

SVG

7

Fall 2017 CS 4460

LAB 1

8

HTML

CSS

DOM

Javascript

SVG

Page 5: JAVASCRIPT INTROstasko/4460/Notes/lab1.pdfJAVASCRIPT INTRO A relaxed programming language… 1 Fall 2017 2 CS 4460 “Relax, you fellas have nothing to worry about, I’m a professional.”

9/8/17

5

Fall 2017 CS 4460

LAB PROCEDURE

Before Class

• Read second half of Chapter 3 - Interactive Data Visualization for the Web byScott Murray

• Git pull or download example code

• (https://github.gatech.edu/CS-4460/Labs.git)

In-Class

• Open Lab 1 instruction page (https://github.gatech.edu/CS-4460/Labs/wiki)

• Work through activities

After Class

• If you run out of time, finish all lab activities

• Disclaimer: You probably will run out of time.

9

Fall 2017 CS 446010

https://github.gatech.edu/CS-4460/Labs.git

Options to Git Pull

Select the “Sync” button on Mac. Select the “Pull origin” button on Windows.

Open a new Terminal (Mac) or Command Prompt (Windows)Navigate to directory you want to clone to, for example:cd ~\Documents\CS-4460\git pull

Mac Windows