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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

drawbacks of PUG?

A
  • white space indentation is error prone

- you cannot use html, only pug

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly