Building Abstractions with Data Flashcards

1
Q

Data Abstraction

A

The programming methodology of setting up data objects by postulating constructors and selectors to isolate use from representation.

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

Closure

A

The means of combination in your system are such that when you put things together using them, like we make a pair, you can then put those together with the same means of combination. So I can have not only a pair of numbers, but I can have a pair of pairs.

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

rule

A

a rule recognizes a pattern with something that matches, and renders a skeleton – something you substitute into in order to get a new expression. (instantiation)

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

dispatch on type

A

break your system into a bunch of pieces. And implementations have types associated with them to identify the protocols needed to be ran on the generic operators

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

data-directed programming

A

the idea of that is in some sense the data objects themselves, those little complex numbers that are floating around the system, are carrying with them the information about how you should operate on them.

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

Function programming

A

“a kind of encoding of mathematical truths.”

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

how do you apply a procedure to its arguments?

A

a procedure object is applied to a set of argument by constructing a frame, binding the formal parameters of the procedure to the actual argument for the call, and then evaluating the body of the procedure in the context of the new environment constructed. That frame will contain the mapping of the former parameters to the actual parameters of the arguments that were supplied in the call.

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

Environment

A

the environment is a sequence of frames linked together.

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