Beginner's Guide to Coding and Data

Level: Beginner

Hello world explained | First interactive program for programming beginners (Part 1)

video

expand_more chevron_left

text

expand_more chevron_left

Writing Our First Program: Hello World

Venturing into the world of programming? You've probably heard about the Hello World program. Today, we will walk through how to write this simple program in three different Command Line Interfaces (CLIs).

Here's what we'll be covering:

  • Basics of code and data
  • Writing Hello World in PowerShell
  • Writing Hello World in JavaScript
  • Writing Hello World in the Linux terminal

Code and Data: The Essence of a Program

As we glimpsed in a previous video on computer programming, every program consists of two fundamental entities: code and data. We can't generalize this concept to every program out there by just showing one example, but you'll soon see some evidence supporting this idea.

Writing Hello World in Different CLIs

For demonstration purposes, we have selected three CLIs: PowerShell, JavaScript console, and Linux terminal. Each CLI uses a specific programming language for scripting. Let's examine these versions of the Hello World program.

# PowerShell
Write-Host "Hello World";
// JavaScript
console.log("Hello World");
# Linux terminal
echo "Hello World"

What Do These Programs Do?

You might be wondering what these simple programs actually do. They display the text "Hello World" in the console. But why is this significant? Hang tight; there's a deeper meaning.

Verb-Noun Combinations in Code

As we dive deeper into programming, we'll notice a recurring theme: verb-noun combinations. Verbs inform us about the action being taken, while nouns provide context. Take console.log as an example. Here, log is the verb, and console is the noun.

In the PowerShell example, Write is the verb, and Host is the noun. In the Linux terminal example, echo is the verb, and the noun is implied by the context which is the CLI itself.

Why Hello World Matters

The Hello World program is more than just a trivial exercise. It demonstrates a fundamental concept: how programs communicate with the outside world. The Hello World program show us how we can allow our programs to give us feedback about what is happening inside the program.

So, when you're ready to take the next step, remember: even a simple Hello World is a doorway into the vast world of programming.

quiz

expand_more chevron_left
deeplizard logo DEEPLIZARD Message notifications

Quiz Results

resources

expand_more chevron_left
Hello world is the name of the first program that almost every programmer writes. Let's checkout the program and say hello to the world of programming. 1) Verb-Noun combinations in code 2) Demos 3) Need for commands like hello world πŸ•’πŸ¦Ž VIDEO SECTIONS πŸ¦ŽπŸ•’ 00:00 Welcome to DEEPLIZARD - Go to deeplizard.com for learning resources 00:30 Help deeplizard add video timestamps - See example in the description 05:51 Collective Intelligence and the DEEPLIZARD HIVEMIND πŸ’₯🦎 DEEPLIZARD COMMUNITY RESOURCES 🦎πŸ’₯ πŸ‘‹ Hey, we're Chris and Mandy, the creators of deeplizard! πŸ‘€ CHECK OUT OUR VLOG: πŸ”— https://youtube.com/deeplizardvlog πŸ’ͺ CHECK OUT OUR FITNESS CHANNEL: πŸ”— https://www.youtube.com/channel/UCdCxHNCexDrAx78VfAuyKiA 🧠 Use code DEEPLIZARD at checkout to receive 15% off your first Neurohacker order: πŸ”— https://neurohacker.com/shop?rfsn=6488344.d171c6 ❀️🦎 Special thanks to the following polymaths of the deeplizard hivemind: Mano Prime πŸ‘€ Follow deeplizard: Our vlog: https://youtube.com/deeplizardvlog Fitness: https://www.youtube.com/channel/UCdCxHNCexDrAx78VfAuyKiA Facebook: https://facebook.com/deeplizard Instagram: https://instagram.com/deeplizard Twitter: https://twitter.com/deeplizard Patreon: https://patreon.com/deeplizard YouTube: https://youtube.com/deeplizard πŸŽ“ Deep Learning with deeplizard: AI Art for Beginners - https://deeplizard.com/course/sdcpailzrd Deep Learning Dictionary - https://deeplizard.com/course/ddcpailzrd Deep Learning Fundamentals - https://deeplizard.com/course/dlcpailzrd Learn TensorFlow - https://deeplizard.com/course/tfcpailzrd Learn PyTorch - https://deeplizard.com/course/ptcpailzrd Natural Language Processing - https://deeplizard.com/course/txtcpailzrd Reinforcement Learning - https://deeplizard.com/course/rlcpailzrd Generative Adversarial Networks - https://deeplizard.com/course/gacpailzrd Stable Diffusion Masterclass - https://deeplizard.com/course/dicpailzrd πŸŽ“ Other Courses: DL Fundamentals Classic - https://deeplizard.com/learn/video/gZmobeGL0Yg Deep Learning Deployment - https://deeplizard.com/learn/video/SI1hVGvbbZ4 Data Science - https://deeplizard.com/learn/video/d11chG7Z-xk Trading - https://deeplizard.com/learn/video/ZpfCK_uHL9Y πŸ›’ Check out products deeplizard recommends on Amazon: πŸ”— https://amazon.com/shop/deeplizard πŸ“• Get a FREE 30-day Audible trial and 2 FREE audio books using deeplizard's link: πŸ”— https://amzn.to/2yoqWRn 🎡 deeplizard uses music by Kevin MacLeod πŸ”— https://youtube.com/channel/UCSZXFhRIx6b0dFX3xS8L1yQ ❀️ Please use the knowledge gained from deeplizard content for good, not evil.

updates

expand_more chevron_left
deeplizard logo DEEPLIZARD Message notifications

Update history for this page

Did you know you that deeplizard content is regularly updated and maintained?

  • Updated
  • Maintained

Spot something that needs to be updated? Don't hesitate to let us know. We'll fix it!


All relevant updates for the content on this page are listed below.