Getting Started with Coding: Get Creative with Code!
()
About this ebook
An introduction to coding for kids
Coding know-how is the coolest new tool kids can add to their creativity toolboxes—and all they need to get started is a computer connected to the internet and the lessons in this book. Easy!
The book offers fun step-by-step projects to create games, animations, and other digital toys while teaching a bit about coding along the way. Plus, each project has an end goal to instill confidence and a sense of accomplishment in young coders once the project comes to life.
- Create simple applications in Scratch to learn how to build things with coding
- Experiment with “real” coding with tools built in JavaScript
- Use free online tools
- Share what you build with friends, family, and teachers
Get creative and get coding!
Read more from Camille Mc Cue
Getting Started with Engineering: Think Like an Engineer! Rating: 0 out of 5 stars0 ratingsCoding For Kids For Dummies Rating: 0 out of 5 stars0 ratings
Related to Getting Started with Coding
Related ebooks
Coding For Kids For Dummies Rating: 0 out of 5 stars0 ratingsHelping Kids with Coding For Dummies Rating: 0 out of 5 stars0 ratingsGetting Started with Coding: Get Creative with Code! Rating: 0 out of 5 stars0 ratingsBuilding a Mobile App: Design and Program Your Own App! Rating: 0 out of 5 stars0 ratings8 Ways to Boost Your Logic Rating: 0 out of 5 stars0 ratingsBeginning Programming with Python For Dummies Rating: 3 out of 5 stars3/5Ruby For Kids For Dummies Rating: 0 out of 5 stars0 ratingsWriting Computer Code: Learn the Language of Computers! Rating: 5 out of 5 stars5/5Python For Kids For Dummies Rating: 0 out of 5 stars0 ratings100% Unofficial Roblox Mega Hits 2 Rating: 0 out of 5 stars0 ratingsThe Secrets of Roblox Brookhaven 2022 Rating: 0 out of 5 stars0 ratingsA Guide To All Programming and Coding Languages Rating: 0 out of 5 stars0 ratingsC# 2010 All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsJob Ready Java Rating: 0 out of 5 stars0 ratingsMission HTML Rating: 0 out of 5 stars0 ratingsKotlin in Action, Second Edition Rating: 0 out of 5 stars0 ratingsPHP and MySQL Web Development All-in-One Desk Reference For Dummies Rating: 0 out of 5 stars0 ratingsJavaScript For Kids For Dummies Rating: 0 out of 5 stars0 ratingsCode Kids Rating: 0 out of 5 stars0 ratingsPractical C Programming: Solutions for modern C developers to create efficient and well-structured programs Rating: 0 out of 5 stars0 ratingsExploring Computer Systems Rating: 5 out of 5 stars5/5Simple Computer Security: Disinfect Your PC Rating: 0 out of 5 stars0 ratingsCoding For Kids: JavaScript Adventures with 50 Hands-on Activities Rating: 0 out of 5 stars0 ratingsRaspberry Pi For Dummies Rating: 0 out of 5 stars0 ratingsVideo Game Coding Rating: 0 out of 5 stars0 ratingsGetting a Coding Job For Dummies Rating: 4 out of 5 stars4/5The Dev-c++ Reference Manual Rating: 5 out of 5 stars5/5
Children's Technology For You
The First to Die at the End: TikTok made me buy it! The prequel to THEY BOTH DIE AT THE END Rating: 4 out of 5 stars4/5Mrs. Frisby and the Rats of Nimh Rating: 4 out of 5 stars4/5Minecraft Guide to Exploration Rating: 4 out of 5 stars4/5How Do Electric Motors Work? Physics Books for Kids | Children's Physics Books Rating: 0 out of 5 stars0 ratingsThe Day the Screens Went Blank Rating: 5 out of 5 stars5/5How to Survive Without Grown-Ups Rating: 4 out of 5 stars4/5Minecraft Guide to Enchantments and Potions Rating: 5 out of 5 stars5/5Minecraft Guide to Survival Rating: 5 out of 5 stars5/5Steve Jobs: Thinking Differently Rating: 5 out of 5 stars5/5The Cool Bean Presents: As Cool as It Gets Rating: 4 out of 5 stars4/5Minecraft: Masters of Minecraft - The Awakening Rating: 5 out of 5 stars5/5Summary of Skin in the Game: by Nassim Nicholas Taleb - Hidden Asymmetries in Daily Life (Incerto) - A Comprehensive Summary Rating: 0 out of 5 stars0 ratingsWould You Rather Chatbot Edition Rating: 0 out of 5 stars0 ratingsMaster Apple Freeform Rating: 0 out of 5 stars0 ratingsThe Person Controller Rating: 4 out of 5 stars4/5Danielle: Chronicles of a Superheroine Complete Edition Rating: 0 out of 5 stars0 ratingsThe Quest for the Diamond Sword: An Unofficial Gamer's Adventure, Book One Rating: 4 out of 5 stars4/5Forces: Physical Science for Kids Rating: 5 out of 5 stars5/5How to Survive Time Travel Rating: 5 out of 5 stars5/5The Kid Who Came From Space Rating: 4 out of 5 stars4/5Ada Twist's Big Project Book for Stellar Scientists: 40+ Things to Discover, Draw, and Make Rating: 0 out of 5 stars0 ratingsMinecraft Guide to Redstone Rating: 4 out of 5 stars4/5The Everything Kids' Scratch Coding Book: Learn to Code and Create Your Own Cool Games! Rating: 4 out of 5 stars4/5Coding For Kids: JavaScript Adventures with 50 Hands-on Activities Rating: 0 out of 5 stars0 ratingsHow to Survive The Future Rating: 5 out of 5 stars5/5Summary of Project Hail Mary: by Andy Weir - A Comprehensive Summary Rating: 0 out of 5 stars0 ratingsMinecraft Guide to Creative Rating: 4 out of 5 stars4/5Matter: Physical Science for Kids Rating: 5 out of 5 stars5/5
Reviews for Getting Started with Coding
0 ratings0 reviews
Book preview
Getting Started with Coding - Camille McCue
INTRODUCTION
SO YOU WANT TO GET STARTED WITH CODING! Writing computer programs, or coding, is a skill that will take you from a user of technology to a maker of technology. Coding is a skill that is fun, creative, and productive. By discovering the language of the computer, you become capable of inventing toys, games, and apps that you can share with, well … everyone!
ABOUT THIS BOOK
You can use many computer languages to get started with coding. What you find in this book is an introduction to the big ideas and practices of coding, using two coding languages: Scratch and JavaScript block format, via MakeCode. You can learn more about both languages in the next section, "What’s New in the Second Edition." The skills you build by coding projects in this book can be used in every other programming language.
Getting Started with Coding, 2nd Edition is put together as a series of projects and related big ideas in coding. Each project is presented as steps for constructing both graphic design and code, start to finish. The big ideas connect a project with the skills you’ll perform over and over again when coding. Best of all, projects can be customized to bring to life the craziest ideas your imagination can concoct!
Here's what you need to do the projects in this book:
A computer with a relatively modern version of a web browser (Safari, Chrome, or Firefox), or a tablet running Mobile Safari or Mobile Chrome. (Note that Internet Explorer is not supported.)
An Internet connection.
(Optional) A USB port on your computer and a micro:bit kit for transferring the electronics programs in this book to a physical board. A complete micro:bit kit retails for less than $20.
As you work through each project, keep in mind the following writing conventions:
Code and web addresses are in monofont. If you're reading this as an ebook, you can click web addresses, like www.dummies.com, to visit that website.
The highlighted text draws your attention to the figures.
For each project, I give you step-by-step instructions. Instructions read Drag an X into the Y
or Click the X category and then click Y.
Or I may simply tell you to click a link or a tab. Follow the instructions in order.
Optional enhancements are given in each project so that you can customize your work to showcase your own creative ideas!
Finally, every project wraps up with a last look at the project’s big ideas in coding. The big ideas consist of concepts that lay the foundation for your future work in computer science.
That’s all there is to it!
WHAT’S NEW IN THE SECOND EDITION
This second edition reflects recent trends in programming instruction. Specifically, this book uses programming languages that start you down the path of learning basic coding skills you can apply over and over as you learn more.
This edition of the book covers:
Scratch: This learning language developed at MIT is so popular that it is arguably the
starter programming language. As such, this book features several projects in the most recent version of Scratch — Scratch 3.0. (But for those of you who may be running an older, offline version of Scratch, you’ll still be able to do most projects.) Scratch is a block-based language that lets new coders comfortably step into the world of computer programming. And it’s fun!
JavaScript: JavaScript is used in everything from apps to websites to electronics. Kids can begin learning in block-based mode of JavaScript, and then transition to text-based mode as they build skills and confidence in coding. In this book, JavaScript projects are presented through MakeCode, a platform for coding instructions that can operate a small electronics board called a micro:bit.
Best of all, the tools in this edition are free, available online, and easy-to-use.
ABOUT YOU
Everyone has to start somewhere, right? I had to start writing this book by assuming that you can do this stuff:
Type on a computer and use a mouse (if you’re working on a computer) or use a touch screen tablet (if you’re working on a tablet). Your experience can be on Windows or Mac — or Android or iOS. Because Scratch and MakeCode run in a web browser, the instructions in this book are platform-independent. Figures show the programs as they would appear in Chrome on a Mac.
Read or read with the help of someone who reads, as well as follow directions with help from the text and the figures.
Do some basic math operations such as adding or comparing numbers. I introduce algebraic variables in this book, but you don’t need to have any prior knowledge of variables.
Lastly, if you struggle with spelling and punctuation, you may need to spend extra time troubleshooting your code for misspellings. Block-based programming greatly reduces these types of errors, or bugs, and programming languages can give you clues about which commands they don’t understand. But you will need to pay extra attention to the details, making certain that commands are written exactly as you intend.
ABOUT THE ICONS
As you read through the projects in this book, you’ll see a few icons. The icons point out different things:
Warning Watch out! This icon marks important information that you can use to avoid common pitfalls when coding.
Remember The Remember icon marks concepts you’ve encountered before and should keep in mind while coding.
Tip The Tip icon marks advice and shortcuts to make your work easier. You may see some tips several times in the book
Technical stuff The Technical Stuff icon give hardware help and tells you more about the nuts and bolts of technical details.
Fun with code The Fun with Code icon describes how the coding you’re doing relates to the bigger picture of computer programming.
Fun with math The Fun with Math icon describes the everyday math you use while coding computer programs. Finally, you see how that stuff is really used!
PROJECT 1
GET STARTED
Illustration depicting the different kinds of coding programs used in computer programming language.IT USED TO BE ENOUGH TO READ, WRITE, AND DO MATH. These three skills were the tools we needed to communicate with other human beings. But now, the world is full of smart beings that aren’t human — they're computers. Computers don’t fully think for themselves yet, but they do talk
with each other and with people through computer programming languages. Communicating with technology — speaking the language of computers — takes a new skill called coding (also called programming). This chapter gets you started with the basics you’ll need to start coding fast!
CODING QUICKSTART
Coding means writing instructions for a computer. The computer then uses the instructions to do a task. A computer programming language has commands (vocabulary) and syntax (grammar rules and punctuation) for communicating with a computer. As you write code, you put together the commands, using the correct syntax, in a logical way. The logic of your code is the order of the commands and the sequence of what happens due to various conditions. Put together, the instructions that you write and that the computer reads are called the computer program, or just the code.
A HELLO WORLD! EXAMPLE
The first program new coders often write prints the words Hello World! on the computer screen. Here’s the code in Scratch and its output (what it shows onscreen).
Picture depicting the code “Hello World!” in Scratch and its output, which the first program that new coders often write on the computer screen.Now here’s the same code in JavaScript blocks built in MakeCode and the output on the micro:bit electronics board. Because the micro:bit can scroll only one letter at a time, the figure displays just the letter H at the beginning of the Hello World! message.
Picture displaying just the letter H at the beginning of “Hello World!” message on the micro:bit electronics board.You’ll be making little programs like this, and bigger programs too, in no time!
WHAT’S AN ALGORITHM?
A computer program has lots of parts, such as asking the user a question, doing something with that information, and then telling the user some response. Planning a computer program is a bit like telling a story or running a play in football. You have to put together and execute (run) the program in a certain order.
In each part of a program, you write small chunks of code to do different things. A chunk of code that does a task is called an algorithm. For example, in a paddle ball game, one algorithm you might use is bouncing the ball. If the ball and paddle touch, the player scores a point and the ball changes direction.
Picture depicting a paddle ball game in which one algorithm used is bouncing the ball; if the ball and paddle touch, the player scores a point and the ball changes direction.What algorithms do you see in