Week 10 - web Flashcards
1
Q
What are 3 benefits of using Express
A
- defines a routing tbale which is used to peform different actions based on HTTP method and url
- permits the dynamic rendering of HTML pages based on passing arguments to templates
- makes server code simpler by imposing structure
2
Q
How does a template work?
A
At runtime, a template engine replaces variables in
a template file with actual values, and transforms
the template into HTML sent to the client.
3
Q
Benefits of PUG?
A
- using templating alllows you to write boilerplate pages that may be specialised
- good readability
- use indentation isntead of tabs for structure
4
Q
drawbacks of PUG?
A
- white space indentation is error prone
- you cannot use html, only pug
5
Q
what is reactive programming?
A
a way of programming in which the output of a
computation is updated automatically when the inputs change.