bots inc

25
Bots Inc .... fun learning programming http://smallw iki.unibe.ch/botsinc/ [email protected]

Upload: esug

Post on 10-Jul-2015

258 views

Category:

Technology


2 download

DESCRIPTION

Bots Inc...., Stephane Ducasse, ESUG 2005, Brussels

TRANSCRIPT

Page 1: Bots Inc

Bots Inc.... fun learning programming

http://smallwiki.unibe.ch/botsinc/[email protected]

Page 2: Bots Inc

Teaching Programming to Kids of 7..99

What is a program?

What is a variable, loop and argument?

How can I reuse and compose some programs

Programming is fun!

Page 3: Bots Inc

A kind of Turtle...

Page 4: Bots Inc

Directions, Absolute, Relative Angles

Page 5: Bots Inc

Why Loops?

Page 6: Bots Inc

Loops and Variables

Page 7: Bots Inc

Abstraction and Composition

Page 8: Bots Inc

Arguments

Page 9: Bots Inc

Some Problems

Page 10: Bots Inc

Translation

Page 11: Bots Inc

Bug Life

Page 12: Bots Inc

Within a Box

Page 13: Bots Inc

Fun...

Page 14: Bots Inc

Three Levels

Direct manipulation

Scripts

Methods

Page 15: Bots Inc

Direct Interaction

Page 16: Bots Inc

A Script

| r2d2 |r2d2 := Bot new.4 timesRepeat: [ r2d2 go: 100. r2d2 turn: 90 ]

Page 17: Bots Inc
Page 18: Bots Inc

A Method

square

4 timesRepeat: [ self go: 100. self turn: 90 ]

Bot new square

Page 19: Bots Inc
Page 20: Bots Inc
Page 21: Bots Inc
Page 22: Bots Inc

Next book?

If the first one sells well

Miner robot:

escaping maze, following paths, recursion,

Next book will be on object-oriented programming

Page 23: Bots Inc

Miner World

Page 24: Bots Inc

Editing the Bot World

Page 25: Bots Inc

Have fun...

Tested at the French school of Berne

11 to 15 years old

“I recently started a cours with 7th-graders (13) with Stephane’s book --- they love it” Klaus Fuller - Germany

smallwiki.unibe.ch/BotsInc