Skip to content

Commit 71efd34

Browse files
author
Steve Krouse
committed
## Learnable Programming & video games
* TOC {: toc } ### Productive morning Really excited to be back in the swing of things! Woke up at 7am, snoozed the alarm for 20 mintes, then set up my workspace for 20 minutes (adjusting the chair and computer heights), and got into it! This morning I reviewed Evan Miller's _Don't Kill Math_ which was fun. #### Shower outline of "climate change for conservatives" This outline shows how much I've internanlized both Nicky Case's know your audience and Scott Adam's persuation techniques. In short, as someone who's been skeptical of the left's portrayal of climate science, I communicated to people like me about ways to assimilate climate science into their existing mental models. ![](/media/2017-12-14 10.17.30.jpg) ### Learnable programming After the shower, I pushed myself to re-read Learable Programming. I was at first resistant because I've read it 2 or 3 times now, and the last time was only a few months ago. Almost immediately I realized that I definitely need to read this article again! The things about it that surprised me this read: 1. Video games as a vector for powerful mental models. Aligns incentives well in for-profit: people pay for games. Will Wright is a boss. Need to research Minecraft. Maybe go work for Will Wright or some amazing game maker. Or team up with Nicky on a game. 2. I want to re-write Learnable Programming. I've already put down some thoughts about the re-write. It's mostly a more coherent and justifying able framing, as opposed to explaining the importance of a seemingly random assortment of virtues Bret specifies at the top of the article. ### Reading vs writing polished work Given that I'm producing outlines for two pieces this morning, in addition to all of the other content that I've been meaning to produce in a polished way, not to mention the backlog of blog ideas I have stuck in a Trello, I am beginning to wonder how I will balance my time as a reader and writer. Right now I'm in reading mode. I think the balance of writing as a form of note-taking is great during this mode. It will help in writing mode for sure. I wonder when I will feel the impetus to switch to writing mode. At the current moment it feels like there's so much for me to get into my head, including: * Alan Kays videos * re-reading Seymour Papert * Mountessouri * Marshall McLuhan * Piaget * Chris Granger * Nicky Case (again and more thoroughly) * John Dewey (I'm becomming obsessed with this guy) * F.M. Alexander (feels relevant to this project too) And then I have a dozen books in my apartment that are begging to be read, such as: * The Mythical Man Month * Two culture of the scientific revolution * Show your work * Society of Mind (minsky) * Theory of Fun for video game design Given my current pace (assuming I'm not sick and continue to mostly read and not protoype), I feel like this reading will take more than a month but less than a year, which is very reasonable. The only worry is that the more I read, the more I will want to read because I'll want to continue walking the tree up to influence of influences of influences, eventually getting up to Plato or even the Torah. #### [Pickling my brain](http://futureofcoding.org/plan#1-pickle-myself) is a lot of work! As Feynman says, [there are no miracle people](https://www.youtube.com/watch?v=IIDLcaQVMqw.) If you want to be smart you merely have to do what smart people did to become smart. It seems like smart people do a lot of reading. What they're actually doing is assimilating models into their heads. Then when they're not reading they are playing with those models. It's a blessing and a curse that there are so many amazing models out there today. It's a blessing because we can be so much smarter than any person in history. It's a curse because if we want to be one of the smartest people of today, there's a lot of pickling to be done! The next time someone implies that I was born this smart, I will need to give them a piece of my mind: "Do you know how much work it takes to be this smart?! Day in and day out I read and write and read and write. Just like an athlete trains the body, I train my mind every day, all day." Joesph Campbell: > I would get in nine hours of sheet reading done a day. And this went on for five years straight... Reading what you want, and having one book lead to the next, is the way I found my discipline. I've suggested this to many of my students: When you find a writer who really is saying something to you, read everything that writer has written and you will get more education and depth of understanding out of that than reading a scrap here and a scrap there and elsewhere. Then go to people who influenced that writer, or those who were related to him, and your world builds in an organic way that is really marvelous. (Wow, reading more of this snipet is amazing stuff! Now I'm excited to read this whole book where I found this quote!) It's interesting to note here I was already following this strategy before knowing about his advice. It's quite vindicating to know that this strategy worked for someone else. And if it takes me 5 years, that's ok too. I'll just have to find some way to make it financially sustainable...
1 parent 0443832 commit 71efd34

File tree

4 files changed

+180
-21
lines changed

4 files changed

+180
-21
lines changed

_data/git-log.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
File renamed without changes.

notes/bret-victor/bret-victor.md renamed to notes/bret-victor/index.md

Lines changed: 37 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,35 @@ title: Bret Victor
77
* TOC
88
{:toc}
99

10-
## [Interactive Exploration of a Dynamical System](https://vimeo.com/23839605) - May 16, 2011
10+
11+
## _March 15. 2006_ - [Magic Ink](http://worrydream.com/MagicInk)
12+
13+
[My notes here](./magic-ink).
14+
15+
## _April 17, 2007_ - [Substroke Design Dump](http://worrydream.com/#!/substroke)
16+
17+
[My notes here](./substroke).
18+
19+
## _Oct 2009_ - [Simulation as a Practical Tool](http://worrydream.com/#!/SimulationAsAPracticalTool)
20+
21+
[My notes here](./SimulationAsAPracticalTool).
22+
23+
## _March 10, 2011_ - [Explorable Explanations](http://worrydream.com/ExplorableExplanations/)
24+
25+
[My notes here](./explorable-explanations).
26+
27+
## _April 2011_ - [Kill Math](http://worrydream.com/#!/KillMath)
28+
29+
[My notes here](./kill-math).
30+
31+
## _May 16, 2011_ [Interactive Exploration of a Dynamical System](https://vimeo.com/23839605)
1132

1233
Wow, this is really the pre-cursor to Nicky Case's new [JoyJS](http://ncase.me/joy-demo/nonlinear/?model=prey)! There are only two things Nicky is missing:
1334

1435
1. The ability to directly manipulate the graphs, as opposed to dragging the numbers.
1536
2. The ability to abstract over constants, displaying multiple different values of a constant on the screen at the same time.
1637

17-
## [Scientific Communication](http://worrydream.com/#!/ScientificCommunicationAsSequentialArt) - May 24, 2011
38+
## _May 24, 2011_ [Scientific Communication](http://worrydream.com/#!/ScientificCommunicationAsSequentialArt)
1839

1940
This time I actually read the paper as he instructs. Seems like it might be where he found the word "dynamical." It's pretty interesting, albeit a lot of words to say: it takes a un-intuatively small number of floaters (people who have friends outside their clique) to make the people of a group of cliques a much shorter number of "handshakes" apart.
2041

@@ -35,7 +56,7 @@ Another idea: instead of small pictures of black circles and lines, the pictures
3556

3657
A final point is that the data could be explorable all the way down, as Bret demonstrates in *Ten Brighter Ideas?*. Instead of simply trusting their data in the final graph, we could allow the reader to dynamically generate it based on various assumptions, thus making it fully citable and auditable to the core.
3758

38-
## [Scrubbing Calculator](http://worrydream.com/#!/ScrubbingCalculator) - May 31, 2011
59+
## _May 31, 2011_ - [Scrubbing Calculator](http://worrydream.com/#!/ScrubbingCalculator)
3960

4061
Beautiful. Really clever way to get around symbols.
4162

@@ -45,7 +66,7 @@ One drawback of this interface is that doesn't allow you to import data.
4566

4667
Another is that you have to first make number and then connect them. It would be neat if it could automatically connect numbers with the same text description.
4768

48-
## [The Ladder of Abstraction](http://worrydream.com/#!2/LadderOfAbstraction) - Oct 2011
69+
## _Oct 2011_ - [The Ladder of Abstraction](http://worrydream.com/#!2/LadderOfAbstraction)
4970

5071
Wow, I didn't realize this piece meant so much to Bret! As he says [here](http://worrydream.com/MediaForThinkingTheUnthinkable/note.html):
5172

@@ -55,41 +76,37 @@ I've so internatlized walking up and down the ladder of abstraction, both throug
5576

5677
As Bret explains, he "adopted the notion of "abstracting over a variable" from computer science. In particular, lambda abstraction corresponds directly to the sort of visual abstraction we're doing here." I'm pretty darn familiar with this proccess. I imagine this article might fall flat on an audience without functional-thinking experience.
5778

58-
## [A Brief Rant](http://worrydream.com/#!/ABriefRantOnTheFutureOfInteractionDesign) - Nov 2011
79+
## _Nov 2011_ - [A Brief Rant](http://worrydream.com/#!/ABriefRantOnTheFutureOfInteractionDesign)
5980

60-
Vision without implementation is hard.
81+
Vision without implementation is hard to imagine. I reacted negatively to this piece the first time I saw it. He was ragging on all of the world-changing technologies I loved! Now I see it for what it is: vision, audacity, inspiration. We don't know how to make the future, but we definitely know what it won't look like: what it looks like today.
6182

62-
## [Learnable Programming](http://worrydream.com/#!/LearnableProgramming) - Sept 2012
83+
## _Sept 2012_ - [Learnable Programming](http://worrydream.com/#!/LearnableProgramming)
6384

85+
[My notes here](./learnable-programming).
6486

65-
## [Media for Thinking the Unthinkable](http://worrydream.com/#!/MediaForThinkingTheUnthinkable) - April 4, 2013
87+
## _April 4, 2013_ - [Media for Thinking the Unthinkable](http://worrydream.com/#!/MediaForThinkingTheUnthinkable)
6688

6789
http://worrydream.com/MediaForThinkingTheUnthinkable/note.html
6890

69-
## [Stop Drawing Dead Fish](https://vimeo.com/64895205) - April 26, 2013
91+
## _April 26, 2013_ - [Stop Drawing Dead Fish](https://vimeo.com/64895205) -
7092

7193
Beautiful. Yet unclear what problem it solves for whom.
7294

73-
## [Drawing Dynamic Visualizations](https://vimeo.com/66085662) - May 2013
95+
## _May 2013_ - [Drawing Dynamic Visualizations](https://vimeo.com/66085662)
7496

7597
http://worrydream.com/DrawingDynamicVisualizationsTalkAddendum/
7698

7799
Beautiful. Reminds me both of JoyJS and Aprt.us and [Programming with Comics](http://whynotfireworks.com/programming-with-comics/). Crazy how many tools this man inspires!
78100

79-
## [The Future of Programming](https://vimeo.com/71278954) - July 2013
80-
81-
## [Links 2013](http://worrydream.com/#!/Links2013)
82-
83-
## [Seeing Spaces](https://vimeo.com/97903574) - June 2014
84-
85-
## [Humane Representation of Thought](https://vimeo.com/115154289) - Oct 2014
86-
87-
## [What a technologist can do about climate change](http://worrydream.com/#!/ClimateChange) - Nov 2015
101+
## _July 2013_ - [The Future of Programming](https://vimeo.com/71278954)
88102

103+
## _Dec 2013_ [Links 2013](http://worrydream.com/#!/Links2013)
89104

90-
## https://www.evanmiller.org/dont-kill-math.html
105+
## _June 2014_ - [Seeing Spaces](https://vimeo.com/97903574)
91106

107+
## _Oct 2014_ - [Humane Representation of Thought](https://vimeo.com/115154289)
92108

109+
## _Nov 2015_ - [What a technologist can do about climate change](http://worrydream.com/#!/ClimateChange)
93110

94111
## [Quotes](http://worrydream.com/#!/quotes)
95112

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
---
2+
title: Learnable Programming
3+
---
4+
5+
# [Learnable Programming](http://worrydream.com/#!/LearnableProgramming)
6+
7+
_Sept 2012_
8+
9+
* TOC
10+
{:toc}
11+
12+
I love the way he starts this article:
13+
14+
> Here's a trick question: How do we get people to understand programming?
15+
16+
I wholeheartedly agree with "Programming is a way of thinking, not a rote skill." I'm not sure "People understand what they can see." is as immediately obvious to me. I would prefer to simply use visuals "support and encourage powerful ways of thinking." No need to having "seeing" as an axiom.
17+
18+
## Contents
19+
20+
> A programming system has two parts. The programming "environment" is the part that's installed on the computer. The programming "language" is the part that's installed in the programmer's head.
21+
22+
### Will Wright on games
23+
24+
Given that this article inspired one of the main framings (environment vs language) of this essay, I figured I might as well read it... Some great quotes:
25+
26+
> The types of games we do are simulation based... As a player, a lot of what you’re trying to do is reverse engineer the simulation. You’re trying to solve problems within the system, you’re trying to solve traffic in SimCity, or get somebody in The Sims to get married or whatever. The more accurately you can model that simulation in your head, the better your strategies are going to be going forward. So what we’re trying to as designers is build up these mental models in the player. The computer is just an incremental step, an intermediate model to the model in the player’s head. The player has to be able to bootstrap themselves into understanding that model. You’ve got this elaborate system with thousands of variables, and you can’t just dump it on the user or else they’re totally lost. So we usually try to think in terms of, what’s a simpler metaphor that somebody can approach this with? What’s the simplest mental model that you can walk up to one of these games and start playing it, and at least understand the basics? Now it might be the wrong model, but it still has to bootstrap into your learning process. So for most of our games, there’s some overt metaphor that allows you approach the simulation.
27+
28+
> Like for SimCity, most people see it as kind of a train set. You look at the box and you say "Oh, yeah, it’s like a train set come to life." Or The Sims, "it’s like a doll house come to life." But at the same, when you start playing the game, and the dynamics become more apparent to you, a lot of time there’s an underlying metaphor that’s not so apparent. Like in SimCity, if you really think about playing the game, it’s more like gardening. So you’re kind of tilling the soil, and fertilizing it, and then things pop up and they surprise you, and occasionally you have to go in and weed the garden, and then you maybe think about expanding it, and so on. So the actual process of playing SimCity is really closer to gardening. In either case, your mental model of the simulation is constantly evolving.
29+
30+
> One thing that we found in playing with The Sims is that it’s pretty important that you have a consistent level of abstraction. It doesn’t make sense to have everything highly detailed except one aspect and then have it abstracted. So in fact you want the entire world and the entire representation to be abstracted at almost the same level. At which point it holds together very nicely. It’s kind of hard for you to go into a system and then be filling in the blanks of this one component, while everything else is highly detailed. So in The Sims, even the building is fairly abstracted. You can only put a wall within about a meter. The objects are somewhat abstracted in terms of selection: you don’t have the full selection that you would really have in a furniture store. The granules of interaction in the game are kind of abstracted. So having that consistency, in your head, you fill in the blanks really well. And this is something that kids do quite well of course. You watch kids playing with toys. They’re doing it all the time, very naturally. And even adults are doing that much of the time, with reading books, for example, where there are a lot of blanks to be filled in.
31+
32+
This is a great summary of the goal behind LogicHub:
33+
34+
> So you’ve got these people out there with all these different models.. A lot of people have talked to me over the years about community modeling. But not so much as a modeling tool, but more as a communication tool, using something like SimCity where people get involved in a planning process and get a sense of their community or the environment or whatever. Where the purpose of the model in those cases would be to come to a shared agreement about what the model is.
35+
>
36+
> We did a project actually several years ago called Sim Health for the Markle Foundation in New York. It was a simulation of the national healthcare system, but underneath the whole thing, the assumptions of the model were exposed. And you could change your assumptions, for example, as to how many nurses it takes to staff a hospital, or how many emergency room visits you would have given certain parameters, etc., etc. The idea was that people could kind of argue over policy but eventually that argument would come down to the assumptions of the model. And this was a tool for them to actually get into the assumptions of the model. When people disagree over what policy we should be following, the disagreement flows out of a disagreement about their model of the world. The idea was that if people could come to a shared understanding or at least agree toward the model of the world, then they would be much more in agreement about the policy we should take.
37+
>
38+
> CP: So in a way, a system like that could be used to externalize mental models and create a collective model.. it’s not so much like you all have the same mental model, but that you have an externalized model that everyone agrees to abide by.
39+
40+
Wow, video games could be a more effective vector for Seymour Papert powerful ideas than coding:
41+
42+
> At some level I want people to have a deep appreciation for how connected things are at all these different scales, not just through space, but through time. And in doing so I had to build kind of a simple little toy universe and say, here, play with this toy for a while. My expectations when I hand somebody that toy are that they are going to make their own mental model, which isn’t exactly what I’m presenting them with. But whatever it is, their mental model of the world around them, and above them and below them, will expand. Hopefully, probably in some unpredictable way, and for me that’s fine. And I don’t want to stamp the same mental model on every player. I’d rather think of this as a catalyst. You know, it’s a catalytic tool for growing your mental model, and I have no idea which direction it’s going to grow it, but I think just kind of sparking that change is worthwhile unto itself.
43+
44+
Makes me want to do research on Minecraft x Papert. Here are some links TODO:
45+
46+
* https://books.google.com/books?id=MTQlDwAAQBAJ&pg=PA146&lpg=PA146&dq=seymour+papert+minecraft&source=bl&ots=mdQ7lg5sjT&sig=LwxySQd7rcdpm4Qrc9TyNp1ocRw&hl=en&sa=X&ved=0ahUKEwif78qg9YnYAhWJk-AKHTohAIgQ6AEIPDAD#v=onepage&q=seymour%20papert%20minecraft&f=false
47+
* https://medium.com/interactive-designers-cookbook/seymour-papert-would-be-pretty-happy-with-games-today-fa2f257ff313
48+
* https://books.google.com/books?id=TwIyBwAAQBAJ&pg=PA214&lpg=PA214&dq=seymour+papert+minecraft&source=bl&ots=qRY_ALFvFR&sig=mbNe1UYKL21sKzvHwPmXrHn1zTw&hl=en&sa=X&ved=0ahUKEwif78qg9YnYAhWJk-AKHTohAIgQ6AEIZjAO#v=onepage&q=seymour%20papert%20minecraft&f=false
49+
* https://infovore.org/archives/2013/06/23/toca-builders-and-the-spirit-of-seymour-papert/
50+
51+
I'm really getting revved up with the idea of video games, because they align things reasonably well: kids LOVE video games AND convince their parents to pay for them. Minecraft sold to Microsoft for $2.5B.
52+
53+
### Environment / langauge goals
54+
55+
While he starts with the environment, I'd rather start with the langauge, or in other words, *start from the user who doesn't know how to code*.
56+
57+
I believe the core challenge of learning to program is: **the assimilation of models.**
58+
59+
Bret calls this: "identity and metaphor -- _how can I relate the computer's world to my own?_")
60+
61+
In order to be able to make anything, the user needs to have a ever-improving model of how their tools behave. For example, think about about a child assimilates the model of a hammer. It's clear from the way it's shaped from which end to pick it up. Then when you pick it up, you immediatley notice that it's much heavier on one side. And of course you've seen others people use hammers, so the model snaps right into place: swing this where I want BAM.
62+
63+
#### Powerful mental models / ideas
64+
65+
Now taking this a step further, we as programming language designers want to embed a model inside a child's head that will enable them to be powerful. We know that different mental models are more powerful than others. For example roman numerals are much less powerful than arabic numerals. We know that [systems thinking is more powerful than linear thinking](http://ncase.me/OVC2016/#uninformed).
66+
67+
Thus we want to help students assimilate *powerful* mental models, what Seymour Papert called "powerful ideas." Bret lists some of these:
68+
69+
> decomposition -- how do I break down my thoughts into mind-sized pieces?
70+
> recomposition -- how do I glue pieces together?
71+
72+
These are the two-sides of the *composability* coin. As we've learned from functional programming, composibility is a very powerful idea. It allows us to do *top-down design*, where one decomposes a problem into its subproblems in such a way that solving the sub-problems automatically solves the solution -- because you've pre-composed the sub-problems properly before solving them.
73+
74+
So now that we know composability is a powerful idea, how do we help a new user assimilate it?
75+
76+
TODO
77+
78+
Other powerful mental models/ideas include:
79+
80+
* referential transparency (partitioning side-effects) TODO
81+
* type system
82+
* TODO
83+
84+
#### Technological realities
85+
86+
* proccessor speed
87+
* storage
88+
* network speed
89+
* computational efficiency
90+
91+
TODO
92+
93+
#### Powerful ways of working
94+
95+
Additionally, we know about some powerful ways of working:
96+
97+
* creating by reacting
98+
* creating by abstracting
99+
* small steps
100+
* refactoring
101+
* version control workflow branching
102+
* planning a project, estimating time, github issues, prioritizing
103+
104+
#### New learnable programming essay
105+
106+
Here's the framing:
107+
108+
human <-> interface <-> computer
109+
110+
Humans want to make things with comptuers. In order to make something you need to have a model of how it works in your head.
111+
112+
On the one extreme to the left, you could make an interface building upon models that people already have in their heads. This is why Microsoft Word is so successful. The cursor is much like the tip of a pencil and the page is much like a physical page. The mapping is clear.
113+
114+
On the other extreme to the right, you could simply have the human learn how the computer works, starting from electrons up through NAND and NOR gates, to proccessors, binary, Assembly, and C. This epitomizes Bret's Alan Perlis quote, "To understand a program, you must become both the machine and the program."
115+
116+
In the middle, you have powerful models for thinking, which take technological realities into account.
117+
118+
TODO looks like there are two dimensions here:
119+
120+
1. Familiarity of model (is it a human model or comptuer model)
121+
2. Power of model (does it enable powerful ways of thinking)
122+
123+
Microsoft Excel. Unless you're coming from an accounting background, the grid model is new to you. (Side note: it wasn't until I learned SQL that I learned that properties are at the top and rows are entities. This array of dictionaries metaphor is quite powerful. I imagine people who grow up with Airtable or Fieldbook will learn those powerful ideas seamlessly.) There are two fascinating metaphors in Excel that are incredibly easy to pick up:
124+
125+
1. *Underneath* a cell can be a formula that produces it. The metaphor of "under the hood" is easily assimilated.
126+
2. *Dragging* a formula iterates it over data, updating the references as it goes. Very easy to pick up. Then if you don't want certain references to update as you drag, you learn about the `$` operator. It's a great example of doing the commong thing automatically and letting you ask for a special case when you need it.
127+
128+
129+
130+
131+
<script>
132+
133+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
134+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
135+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
136+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
137+
138+
ga('create', 'UA-103157758-1', 'auto');
139+
ga('send', 'pageview');
140+
141+
</script>
142+
<script repoPath="stevekrouse/futureofcoding.org" type="text/javascript" src="/unbreakable-links/index.js"></script>

0 commit comments

Comments
 (0)