Computer programming languages allow us to give instructions to a computer in a language the computer understands.

Programming Languages

Computer programming languages allow us to give instructions to a computer in a language the computer understands. Just as many human-based languages exist, there are an array of computer programming languages that programmers can use to communicate with a computer. The portion of the language that a computer can understand is called a “binary.” Translating programming language into binary is known as “compiling.” Each language, from C Language to Python, has its own distinct features, though many times there are commonalities between programming languages.

These languages allow computers to quickly and efficiently process large and complex swaths of information. For example, if a person is given a list of randomized numbers ranging from one to ten thousand and is asked to place them in ascending order, chances are that it will take a sizable amount of time and include some errors.1

What's the relationship between syntax, static semantics and semantics?
I think of them as 3 levels of success:2

  • The most basic level is syntax, which means you've put together something that could potentially make sense simply because it's in the right format. The English analogue to syntax is: noun-verb for a sentence. "I cat." is not a syntactically correct sentence, but "I am." is.
  • The second level is static semantics, which represents "meaning". Just because you have the right syntax it doesn't necessarily result in meaning. The example in the 6.00.1x lectures was, 3 + 'hi', which follows the right syntax, but has no meaning. In English, this is like saying "I are cool." It has the right syntax (noun-verb-modifier), but it has no meaning because you can't combine "I" with "are" (kind of like how a string can't be added to an integer).
  • The highest level of success is semantics. Finally, you have the syntax correct and the static semantics correct... the Python code will run! But even then, is it doing what you intended? Imagine a bad English speaker putting together a sentence that had the right syntax and static semantics... "Horse ate me" — it makes sense as a sentence... but maybe he meant to say "I ate a horse". Likewise, Python may be able to interpret your code (as it can validate syntax and static semantics), but it may not execute it the way you intended it to be.

Related Topics


  • Linux Academy - Mastering Regular Expressions - In Mastering Regular Expressions, we begin by breaking down the "vocabulary" and "grammar" of regular expressions: First by learning just what all those symbols and shortcuts mean, then by learning how to manipulate those tokens to craft complex regular expressions that achieve just the right desired result. We'll do this by using come common Linux tools, such as grep and sed, as well as through Perl and, eventually, JavaScript for some front-end regex use examples.
  • Object Oriented
  • Algorithms and Data Structures
  • Design Patterns

Common Topics

  • EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs.

Programming Languages

Last edited by MichaelAlber .
Page last modified on Saturday July 18, 2020 20:54:01 UTC.


Linux Command Line and Shell Scripting Bible Linux Command Line and Shell Scripting Bible - Linux Command Line and Shell Scripting Bible is your essential Linux guide. With detailed instruction and abundant examples, this book teaches you how to bypass the graphical interface and communicate directly with your computer, saving time and expanding capability.

Linux Bible Linux Bible - Linux continues to be an excellent, low-cost alternative to expensive operating systems. Whether you're new to Linux or need a reliable update and reference, this is an excellent resource. Veteran bestselling author Christopher Negus provides a complete tutorial packed with major updates, revisions, and hands-on exercises so that you can confidently start using Linux today.

Learning Python Learning Python - Portable, powerful, and a breeze to use, Python is the popular open source object-oriented programming language used for both standalone programs and scripting applications.

Modern PHP: New Features and Good Practices Modern PHP: New Features and Good Practices - PHP is experiencing a renaissance, though it may be difficult to tell with all of the outdated PHP tutorials online. With this practical guide, you'll learn how PHP has become a full-featured, mature language with object-orientation, namespaces, and a growing collection of reusable component libraries.