Welcome to the journey into programming. Let's dive right in!
Programming is the process of explaining to computers what you want them to do. And just like with human languages, there are various languages you can use with computers.
Engagement Message
Makes sense?
One of the most popular languages used for talking to computers is Rust.
Here is what a simple statement (think of it like an equivalent of a sentence in human language) in Rust looks like.
println!("Hello, Space Traveler!")
Engagement Message
What do you think this does?
Computers do exactly what you tell them to do and they don't like it when you make mistakes in their language.
A programmer will say use correct syntax
when they are trying to say you need to write the program in the right way. So syntax is almost the equivalent of grammar/spelling in human languages.
Engagement Message
With me so far?
Here is another very common but somewhat strange vocabulary for you to remember. Computer Programmers say you run your code
to mean you've delivered your message to the computer and asked it to follow your commands.
Engagement Message
Does that make sense?
So in the above case when we wanted to print Hello, Space Traveler!
we would first write our code then Run it.
Without running (or executing) it, the computers won't do anything.
