CS115 Lecture Notes - Lecture 2: Substring, Empty String, Semicolon
elliehaj0807 and 36989 others unlocked
13
CS115 Full Course Notes
Verified Note
13 documents
Document Summary
Readings: htdp, sections 1-3, survival guide on assignment style and submission. We are covering the same material as the text, but using different examples. Lectures do not cover all the details, so keeping up with the readings is important. Every program is an act of communication: between you and the computer, between you and yourself in the future, between you and others. Comment: information important to humans but ignored by the computer. Code: anything that is not a comment; machine-readable. ;; constants for calendars (de ne year-days 365) ; not a leap year. Use one semicolon to indicate that the rest of the line is a comment. Use two semicolons to start a line that is a comment. Partial list of goals for programs: compatible, composable, correct, durable, ef cient, extensible, exible, maintainable, portable, readable, reliable, reusable, scalable, usable, and useful.