Download presentation
Presentation is loading. Please wait.
Published byΚαλλιστράτης Μαλαξός Modified over 5 years ago
1
Nate Brunelle Today: Programming Languages, Stationary Aviation
CS1110 Nate Brunelle Today: Programming Languages, Stationary Aviation
2
Questions?
3
Last Time Ambiguity (and how to avoid it) Pseudo-code
Structured way of removing ambiguity
4
Today Programming language for Building Airplanes
5
Process for writing code
Do it yourself Code it Debug it
6
Bugs Syntax Semantic Logical Understandability
Statement does not “parse” Semantic Grammatically correct, but nonsense Logical Means something, but not what you meant Understandability I said it, it makes sense, and it means what I meant, but no one else can understand it
7
Syntax Semantic Statement does not “parse”
Dog of by chicken for running video the W202dkdljdkla9**ls Semantic Grammatically correct, but nonsense Colorless green ideas sleep furiously Park your car upon the cloud. 3 0
8
Logical Understandability Means something, but not what you meant
“double 5” vs “5+2” Understandability I said it, it makes sense, and it means what I meant, but no one else can understand it The sign should have dashes between fish and and and and and and and and and chips. Prandial soleation is gauche.
9
Do it, Then code it You will get 3 pieces of paper
Practice making an airplane Write how to make an airplane Make an airplane with someone else’s directions Procedure for today’s activity: Code – write instructions (text only!) And debug Trade instructions Follow the instructions (not politely) Show the result back to the one who gave the instructions Throw at Nate when done (hit me!)
10
Reflection Shortest directions? Unambiguous directions?
11
What makes “good” Instructions?
12
Very short instructions
13
Very short instructions
“Crumple into as small a ball as possible” Will this make an airplane? In general, it can be difficult to figure out what our “goal” is We will be precise early this semester, but less so as the semester progresses.
14
Is this a set of “good” instructions?
“Create the best paper airplane you know how to make” Yes: No:
15
Programming Language for making airplanes
Nouns 8.5x11 Crease Hotdog Edge Paper Orientation Corner Verticle Horizontal Airplane Triangle Center Middle Verbs Fold Turn Crease Unfold Rotate Lift
16
Programming Language Tradeoff
Usually there is a tradeoff between: The language being easy to learn Instructions being easy to write
17
Nate’s Language 1,1 Only 2 verbs: Fold Unfold 0,0
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.