

























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


























http://www.flickr.com/photos/rofi/2097239111/
http://www.cs.cornell.edu/Courses/cs
Online discussion forum Monitored by TAs/consultants Ask for help, but don’t post solutions CMS “Course Management System” Built by Andrew Myers (with help from lots of students) Assignments and grades posted here
Breakdown:
You can hand it in until we start grading
Programming isn’t hard Programming well is very hard
“A year at the lab bench saves an hour at the library” Fact: there are an infinite number of incorrect programs Corollary: making random tweaks to your code is unlikely to help
Good programmers are lazy
Master key linguistic abstractions:
This matters less than you suspect Must be able to learn new languages
Awesome OCaml feature: many common errors simply impossible More precisely, they are caught at compile time Early failure is very important (why?) Functional language Programs have a clear semantics Heavy use of recursion Lots of higher-order functions Few side effects Statically typed and type safe Many bugs caught by compiler
Idea: program without side effects
Bind variables to values, don’t mutate existing variables No concept of x=x+1 or x++ These do nothing remotely like x++ let x = x+1 in x let rec x = x+1 in x The former assumes an existing binding for x and creates a new one (no modification of x ) The latter is an invalid expression