Web Flashcards

1
Q

What does it mean to be RESTful?

A

RESTful is a design principle for network communication between client and server. Core principle: HTTP is stateless. Client-Server communication through a uniform interface

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

What happens when you hit www.google.com and press enter?

A

1 ) Browser checks the DNS (hash of ip to domain name) records for the query.

2) OS cache -> Router cache -> ISP cache
3) ISP initiates DNS query
4) Browser starts TCP connection with server
5) Browser sends HTTP request
6) Servers sends HTTP response
7) HTML content loads

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

What is TCP? When is it used? How does it work?

A

Transmission control protocol/Communication service.
It provides a way of communication between computers.
Data is sent in the form of packets, and TCP ensures that packets are assembled correctly to form image/document, etc…

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

What is IFFE?

A

Immediate Invoked Function Expression.

Creates fresh environments.
Avoids polluting the global namespace.

signature:
(function ( ) { } );

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