• Keine Ergebnisse gefunden

How to get start with coding assignments?

N/A
N/A
Protected

Academic year: 2022

Aktie "How to get start with coding assignments?"

Copied!
8
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

A quick overview, to provide more context about what exactly we are doing

Supplement Material

How to get start with coding assignments?

Computer Graphics

Karlheinz Reinhardt

(2)

• HTML stands for Hyper Text Markup Language

• Is the standard markup language for Web Pages

• Describes the structure of a Web Page

• A browser can view HTML Files

HTML

HTML

(3)

• What

○ JavaScript (JS) is a scripting language

○ Developed in 1995 by Netscape

○ Enables to manipulate the website (DOM) and react to user input

=> websites can be dynamic

• Where

○ HTML is used together with JS and CSS

○ Code is executed inside the browser

JavaScript: What, why and where?

HTML

JS

CSS

(4)

This is automatically generated by our code skeleton setup

This is where you

inserted your code in the coding assignments

What is our code skeleton doing?

HTML

JS

CSS

Not used

(5)

Every browser has integrated development tools:

• Chrome/Firefox:

○ strg+shift+i (linux/win)

○ cmd+option+i (mac)

• To create logs in your code:

How to debug your code in a browser?

console.log("test");

console.log(variable);

(6)

• What you need

Code editor: to edit your code

Recommended: VSCode or WebStorm

Alternatives: Sublime Text, Vim, ...

Command line tool: every OS has one – we need it to start the Node.js

Windows 10: PowerShell

macOS/Linux: Terminal

How to setup your programming environment?

(7)

• A command line tool is also called Terminal

• Exist in almost every OS

• Some of the code editor integrates it for convenience

○ no need for a separate window

How to run?

• Open your terminal

How to open and use it will depend on your OS

Navigate into your project folder

• This is the folder that contains the package.json

Enter the 2 commands

npm i

npm start

How to run the code skeleton?

In this example the project is located at C:\Users\...\cg1-ss20\2-transform

Install dependencies Start server

(8)

• More about HTML

○ mozilla - https://developer.mozilla.org/en-US/docs/Web/HTML

○ selfhtml - https://wiki.selfhtml.org/wiki/Startseite

• More about JS

○ selfhtml js - https://wiki.selfhtml.org/wiki/JavaScript/Tutorials

○ w3schools - https://www.w3schools.com/js/

Three.js

○ https://threejs.org/docs/index.html#manual/en/introduction/Creating-a-scene

Where to go from here (some of many resources)

Referenzen

ÄHNLICHE DOKUMENTE

The instances have been derived from the Solomon instances for the vehicle routing problem with time windows (Solomon 1987), and in analogy to the original data, the Li and

The results show that with regard to the overall carbon footprint we need to focus on an intelligent mix of powertrains that meets indi- vidual requirements and includes

 Ihr Fachbereich hat mit Gasthochschule einen Erasmus-Kooperationsvertrag für Ihr

That's why - like patents, copyright or trademarks - geographical indications need protecting in trade agreements.. This is also

As a tropical field ecologist studying rainforest destruction in Borneo, I saw the impact of the expanding palm oil industry on tropical biodiversity first hand, and so it was

14 The estimate of 77 far-right and right-wing MEPs includes 11 western European far- right parties (the French National Front, the Italian Lega Nord, the Dutch Freedom Party,

Compared with Croatia, Serbia is better prepared for negotiations, but the key challenge for the government in Belgrade will be relations with Kosovo.. Moreover, the

Most users will be able to start up the OpenWindows software using the basic steps described in Chapter 2, "Quick-Start: Mounting the OpenWindows Software" or in