Mental Models Flashcards

1
Q

What is a and b after this executes?

let a = 10;
let b = a;
a = 0;
A
a = 0
b = 10
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Consider:

let a = 1;
let b = 2;
a = b;

How do variable assignments work?

A

Variable b does not point to variable a, instead it points to what variable a was holding at the time of assignment.

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

What is a good mental model for variables in Javascript?

A

Wires rather than boxes.

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

In Thinking, Fast and Slow, Daniel Kahneman talks about two different ways humans think. What are they?

A

Fast: Whenever possible people tend to rely on thinking fast. It is good at pattern matching and can be thought of as ‘gut reaction’. Walking without falling over is a good example of this.

Slow: having to problems solve and think deeply about something. Not reflexive, can be somewhat painful.

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

In Thinking, Fast and Slow, Daniel Kahneman talks about two different ways humans think. What are they?

A

Fast: Whenever possible people tend to rely on thinking fast. It is good at pattern matching and can be thought of as ‘gut reaction’. Walking without falling over is a good example of this. It is not good at planning.

Slow: Responsible for complex, step by step reasoning. Helps with things like following/engaging in arguments or mathematical proofs. This system is more costly - i.e. more mentally exhausting. As such we rely on it less than the fast system.

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

What is an example of thinking fast vs thinking slow?

A

Reading a function definition. You might scan it at first. If you notice a bug or something that doesn’t match in terms of memorised patterns you are likely to switch to slow thinking and really dig into what the function does and why.

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

Which ‘fast’ or ‘slow’ thinking method relies most on your mental model?

A

According to Dan Abramov, the slow thinking is when we really rely on our mental models. Thinking fast uses pattern recognition but true understanding comes from application of our mental models to a context.

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