He also has a compass and can tell if he is facing North, East, South or West. He can tell if there is a wall section in front of him, to his left or to his right. Karel can't see but can feel his way around. This environment consists of pathways and wall sections with Karel somewhere on a pathway. What it does have are very simple commands to move Karel around his environment. There are no data structures, no variables, no values or assignment of values, no numbers or strings. Karel is known as much for the language features it lacks as for those it has. Students got used to being careful with syntax, finding bugs and developing small programs in a simpler environment before diving into the complexities of Pascal itself. Much of the original rules and syntax mimic Pascal. Richard Pattis at Stanford developed the language and used it as a first step in teaching an introductory programming course in the Pascal language. Like Logo (Turtle Graphics) the program was developed to give people unfamiliar with computer programming a starting environment with a gentle learning curve. The purpose of the Karel language and runtime environment was educational.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |