Everything Else Flashcards

1
Q

Four-Layer Web Architecture

A

Described in Domain Driven Design. Common in OO applications.

  • Presentation
  • Application
  • Business Logic
  • Data Access Layer

For mobile apps,

  • Client tier (presentation)
  • Delivery tier (Cache, Collects user analytics)
  • Aggregation tier
  • Services tier (3rd party and data stores)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Memoization

A
  • Ensures that a method doesn’t run for the same inputs more than once by keeping a record of the results for a given input (typically in a hashmap)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Three-Layer Web Architecture

A
  • Presentation
  • Domain Logic
  • Data Storage

Purists consider “layer” a logical, categorical distinction and tier a physical distinction. So a 3-layer web app could run on a single tier.

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

What happens when you type a URL in your browser?

A
  1. Browser checks cache. If the requested object is in the cache and fresh enough,
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

NP Hard

A

no polynomial time know solution for this problem

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