flâneur — a map of the web's best reading

CSC 151 - Code Formatting and Style

eikmeier.sites.grinnell.edu · 2,172 words · saved by 1 readers

We systematically decompose problems into sub-problems so that our programs should look like the solutions we have in mind. However, decomposition is not our only tool to achieve this important effect! Our choice of code formatting and style also greatly affects the readability of our programs. In this reading, we introduce a style guide for the Scheme code we write for the remainder of the semester. The phrase When in Rome, do as the Romans do, attributed to Saint Ambrose, means that it is “best to follow the traditions or customs of a place being visited.” In many cases, creating friction with others over differences that are not truly meaningful causes more pain to everyone than simply going with the flow, even though the norm is not optimal. This idea also applies to formatting and style in a programming language! Like natural language, programming languages have histories and legacies that beget certain kinds of code styles specific to families of languages. For example, languages

CSC 151 - Code Formatting and Style Code Formatting and Style Due Monday, 22 September 2025 --> We systematically decompose problems into sub-problems so that our programs should look like the solutions we have in mind . However, decomposition is not our only tool to achieve this important effect! Our choice of code formatting and style also greatly affects the readability of our programs. In this reading, we introduce a style guide for the Scheme code we write for the remainder of the semester. A caution: “when in Rome…” The phrase When in Rome, do as the Romans do , attributed to Saint Ambro

Explore this link on the map →

saved by

related reading