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)
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)
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.
4
Q
What happens when you type a URL in your browser?
A
- Browser checks cache. If the requested object is in the cache and fresh enough,
5
Q
NP Hard
A
no polynomial time know solution for this problem