Web Frameworks and Libraries Flashcards

1
Q

What do frameworks do?

A
Templating
MVC - model view controller
Caching
Tools for database access
etc
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a framework?

A

Frameworks call your code, libraries are called by your code
Frameworks are a special case of software libraries in that they are reusable abstractions of code wrapped in a well-defined Application programming interface (API)

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

What is an API?

A

Application Programming Interface

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

HTML Templating

A

Mail mergers - template idea

Some data and some template (HTML) are combined by scripting engine

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

What is an MVC?

A

Model View Controller. This is an architectural design pattern
Controller manipulates model which updates view which understands smiley which called controller

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

What is ORM?

A

Object relational map. Abstraction layer between incompatible types in OO programming. We generally define or generate a database schema.

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

What is the disadvantage to ORM?

A

If not engaging in database design or hidden database too much, things go well.

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

What is a motivation of ORM?

A

Object Relational Impedance Mismatch:

problems of handling persistence of OO data in relational database management systems (RDBMS)

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

What issues come up with Object-Relational Impedance Mismatch?

A

Inheritance: relational DB doesn’t support inheritance
Encapsulation: RDBMS have never heard of this, OO hide data behind interface
References: RDBMS never attribute by reference or pointers
Data types: many differences for each data type
Data structures: RDBMS - flat data, relatively static models, whereas OO - heavily nested data structure full of objects with unspecified length
Constraints: OO doesn’t contain
Transactions: not in OO
Conceptual Differences: database is fixed whereas OO is dynamic

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

How can we solve Object Relational Impedance Mismatching?

A

1) Don’t do OO programming
2) OO Database Management System
3) Object relation databases (poor performance, bridges gap from database side)
4) ORM (bridge gap from software side)

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

Give some examples of frameworks

A
Ruby on Rails
Zend Framework
Django
MEAN (MongoDB, Express, Angular.js, Node.js)
Flash
Joomla
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a developer itch?

A

A problem that annoys programmers so much that they give out their solution for free - open source that shit.

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

have base idea of frameworks and philos

A

see bonus lec

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