Issue Tracking, Github, Javascript




CS174

Chris Pollett

Apr 19, 2021

Outline

Issue Tracking

GitHub

Getting started with GitHub

GitHub Work Flows

GitHub Work Details -- Getting a copy

  • In details what happening, is clicking fork gives you a copy in your user account space of that repository. For example, the original repository might have been:
    https://github.com/ORIGINAL_USERNAME/PROJECT.git
    your fork wil be
    https://github.com/YOUR_USERNAME/PROJECT.git
  • To get a copy on your laptop of your fork, you just clone that address:
    git clone https://github.com/YOUR_USERNAME/PROJECT.git
    
  • To make sure you can stay in sync with the original repository we need to add an upstream source for our clone:
    git remote add upstream https://github.com/ORIGINAL_USERNAME/PROJECT.git
    
  • GitHub Work Details -- Working locally, Synchronization, Pull Requests

    Quiz

    Which of the following statements is true?

    1. To get changes from one git repository into another we might use the command git pull.
    2. Git repositories must be centrally hosted at a site like GitHub or it doesn't work.
    3. WebDAV is a kind of version control software.

    Javascript

    We now want to consider adding dynamic behaviors to our websites as they are interacted with on the client-side. To do this, we will use the Javascript language.

    Uses of Javascript

    General Overview

    Lexicon

    Example Javascript and HTML document

    <html>
    <head><title>test</title>
    <meta name="description" value="this example illustrates how Javascripts are executed both when the document is loaded and on the occurrence of events" />
    <script type="text/javascript" >
       function sayHello()
       {
          alert("hi there");
       } 
    </script>
    </head><body><form><input type="button" value="test" onclick="return sayHello();" 
    /><!-- responds to events --></form>
    <script type="text/javascript" >
    for( i = 0; i<100; i++) { 
        document.writeln("<p>hi"+i+"</p>");
    } // run when document loads
    </script></body>
    </html>
    
    

    Primitives

    Variables and Constants

    Numeric Operators and Objects

    Strings and Type Conversion

    typeof, Assignments, and the Date Object

    I/O

    Control Statements

    Objects