Introducing you to the Introduction to Computation and Programming course. Code is code. The basic building blocks of code are the same across all languages. Let me show you “Hello World” in many different languages.
This course originally was produced for DevSchool on WP Developers Club. DevSchool was replaced by Know the Code. Whenever you hear Tonya mention WPDC, just replace it with Know the Code.
The basic building blocks of code are the same across all languages.
Code is code.
Once you understand this, you’ll be able to use multiple languages to solve problems.
Let’s look at the similarities of a “Hello World” in different programming languages.
Language | Code |
---|---|
Python | print “Hello World” |
Ruby | puts “Hello World” |
C# | System.Console.Write(“Hello World”); |
C | printf(“Hello World”); |
Java | System.out.println(“Hello World”); |
PHP | echo ‘Hello World’; |
JavaScript | document.write(“Hello World”); |
LISP | (PRINT (LIST ‘HELLO ‘WORLD))) |
Pascal | writeIn(‘Hello World’); |
VisualBasic | MessageBox(“Hello World”); |
From all of these, you can see 1) instruction and 2) content to display.
Remember: Code is code!
By the end of this series, you should know the following:
- Problem visualization and expression
- What computation is
- Computational thought
- Computation is larger than just any one language
- Building blocks of all programming languages
- Scoping
- Basic guiding principles in software
Labs in this Series
Do these labs in order, starting with the first one.