You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Week1/LESSONPLAN.md
+62-3Lines changed: 62 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -17,13 +17,72 @@ FIRST HALF (12.00 - 13.30)
17
17
18
18
1. The 2 types of websites: static vs. dynamic
19
19
20
+
- Explanation
21
+
Static websites usually come with a fixed number of pages that have a specific layout. When the page runs on a browser, the content is literally static and doesn’t change in response to user actions. A static website is usually created with HTML and CSS
22
+
Compared to static websites, which are purely informational, a dynamic website is more functional. It allows users to interact with the information that is listed on the page. Of course, that requires utilizing more than just HTML code.
Discuss in class which claim belongs to wich type of website:
31
+
32
+
Content of Web pages can not be change at runtime.
33
+
Server side languages such as PHP, Node.js are used.
34
+
Content of Web pages can be changed.
35
+
No interation with database possible.
36
+
Interaction with database is possible
37
+
It is faster to load as compared to the other typ of website.
38
+
It is slower then staic website.
39
+
Cheaper Development costs.
40
+
Content may change everytime the page is loaded.
41
+
Feature of Content Management System.
42
+
HTML, CSS, Javascript is used for developing the website.
43
+
Same content is delivered everytime the page is loaded.
44
+
45
+
46
+
-Essence
47
+
In the link is an article with (dis)advantages of both static and dynamic websites. https://www.spiderwriting.co.uk/static-dynamic.php
48
+
Static:
49
+
Advantage:
50
+
- Flexible
51
+
- Cheaper
52
+
Disadvantages:
53
+
- not updating content
54
+
- Scalability
55
+
Dynamic:
56
+
Advantage:
57
+
- Easy to pull in data on stuctured and organised way
58
+
- Content management system
59
+
Disadvantage:
60
+
- Design is more fixed, becasue the pages are more of a template
61
+
- Costs
62
+
20
63
_Show examples of static and dynamic websites_
21
64
22
65
2. The pillars of web development: HTML/CSS/JavaScript
23
-
24
-
_Show examples of websites, with and without CSS and JavaScript (use the Web Developer Chrome extension to disable either)_
25
-
66
+
- Explanation
67
+
HTML defines what the content is.
68
+
CSS defines the appearance of the page.
69
+
JavaScript defines behavior of the page.
70
+
- Example
71
+
An example about relationship between HTML, CSS and Javascript using a methaphor of building a city: https://blog.codeanalogies.com/2018/05/09/the-relationship-between-html-css-and-javascript-explained/
72
+
- Exercise
73
+
74
+
- Essence
75
+
Up until now at HackYourFuture, we have been writing websites using HTML and CSS. Even though a website written with these two languages works just fine, it is only a static page. These static pages can interact with a visitor only through the use of forms. Once a form is filled out and submitted, a request is sent back to the server where a new static web page is constructed and eventually downloaded into the browser. The big disadavantage of web pages like this is that the only way that a visitor has of interacting with the page is by filling out the form and waiting for a new page to load. It doesn't exhibit any dynamic behaviour like:
76
+
77
+
reacting to user actions such as mouse click events or key presses.
78
+
rendering complex animations
79
+
sending requests over network to servers and fetching a response
80
+
And this is where JavaScript steps in.
81
+
82
+
26
83
3. What are variables (const & let) & naming conventions
0 commit comments