How To Code Your First Program: A blog about how to code your first program.
Congratulations! You’ve decided to finally learn how to code and make your first program. We’re going to start by creating a “Hello, World” program. It’s the classic beginner’s coding project, but it’s also surprisingly useful.
The “Hello, World” program is a simple one-line program that displays “Hello, World”. It’s often used as the starting point for new programmers because they are easy to write and understand.
What you’ll be learning:
Learning how CSS is used to style webpages
Learning how programming languages work together
Many people have written about how to code your first program.
some of them are good and some of them are bad.
I’m excited to show you how!
How to code your first program.
Let’s start with the basics. What is coding? Coding is telling a computer what to do. But before we can tell a computer what to do, we need to know what computers can do.
Computers are incredibly fast, stupid and precise. They are incredibly fast because they work in nanoseconds (a nanosecond is one billionth of a second). They are stupid because they only understand binary code (that’s the 1s and 0s we see in “The Matrix”). They are precise because they only understand instructions that are 100% accurate.
You want to learn how to code your first program. Let me explain you the basics.
I will be teaching you a method that is taught in elementary schools all over the world.
This method is known as “Pseudo-code” or “Pseudo-programming”. Pseudo-code is meant for you to express an algorithm using words in plain English, instead of using a programming language that a computer can understand. This can be useful for newbies, who don’t know any programming language yet, but want to learn the basics.
Let’s take an example: Write a program that prints “Hello World!” on the screen. The pseudo-code for this would be:
You can learn a lot about coding by actually coding, rather than just reading about it.
This tutorial assumes you know nothing about programming (though if you’ve tried to program before and gotten stuck, this tutorial might be a good starting point). It’s aimed at people who aren’t programmers but want to learn computer science, and have fun doing so.
Even though there are hundreds of different programming languages, they all work in the same way: you tell the computer what to do. In this tutorial we’ll use Python – a popular programming language used by companies like Google, Facebook, Dropbox and NASA – to show you how programming works.
Don’t worry if you don’t understand some of what we’re writing. The goal of this tutorial is to get you up and running with Python as quickly as possible. We’ll cover everything again in more detail later on.