Skip to main content Accessibility help
×
Hostname: page-component-77c89778f8-m8s7h Total loading time: 0 Render date: 2024-07-20T21:21:52.306Z Has data issue: false hasContentIssue false

4 - DON'T SWEAT THE SYNTAX

Published online by Cambridge University Press:  05 June 2012

Thomas Dean
Affiliation:
Brown University, Rhode Island
Get access

Summary

Programming languages, like natural languages, have a vocabulary (lexicon) and rules of syntax (grammar) that you have to learn in order to communicate. Just as unfamiliar grammatical conventions can make learning a new natural language difficult, unfamiliar programming-language syntax can make learning to program difficult. English speakers learning Japanese have to get used to the fact that Japanese verbs generally come at the end of the sentence. With computer languages, the problem is made worse by the fact that computers are much less adept at handling lexically and syntactically mangled programs than humans are at grasping the meaning of garbled speech.

If you want to talk with computers, however, you're going to have to learn a programming language. Just as you learn new natural languages to communicate with other people and experience other cultures, you learn a programming language to communicate with computers and other programmers and to express computational ideas concisely and clearly. The good news is that learning one programming language makes it a lot easier to learn others.

When you start learning to program, you may find yourself consumed with sorting out the lexical and syntactic minutiae of the programming language. You'll have to look up the names of functions and operators and memorize the particular syntax required to invoke them correctly. You may end up spending obscene amounts of time tracking down obscure bugs caused by misplaced commas or missing parentheses.

Type
Chapter
Information
Talking with Computers
Explorations in the Science and Technology of Computing
, pp. 57 - 69
Publisher: Cambridge University Press
Print publication year: 2004

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • DON'T SWEAT THE SYNTAX
  • Thomas Dean, Brown University, Rhode Island
  • Book: Talking with Computers
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511816284.005
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • DON'T SWEAT THE SYNTAX
  • Thomas Dean, Brown University, Rhode Island
  • Book: Talking with Computers
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511816284.005
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • DON'T SWEAT THE SYNTAX
  • Thomas Dean, Brown University, Rhode Island
  • Book: Talking with Computers
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511816284.005
Available formats
×