Skip to main content

How to Code a Sandcastle

Cover image for How to code a sandcastle

How to Code a Sandcastle
by Josh Funk
illustrated by Sara Palacios
New York, New York : Viking, 2018. ©2018


Pearl is a young girl struggling to build a sandcastle before it gets knocked down. She decides to have a robot build the sandcastle for her, but quickly finds that she has to give him very specific instructions, otherwise things get out of hand. She gives him the instructions in code, walking though each step on how to set up a basic code with a loop, a sequence, and an if-then-else command. She works through her errors, and by the end of the book Pearl and her robot have built a sandcastle kingdom. 

This book is a simple introduction to what coding is and how it works. Sponsored by the Girls Who Code organization, it teaches basic coding instructions like 'sequence' and 'loop' in a way that makes sense for kids new to the language of coding. It also showcases how coding isn't a foolproof method, and shows Pearl working out the problems her code creates. The helpful instructions in the back of book explain the concepts of sequence, loops, and if-then-else in a way that kids can easily understand. 

Comments

Popular posts from this blog

Review: Fowl Play

  Fowl Play By Kristin O'Donnell Tubb New York: Katherine Tegen Books, 2024. Fiction 277 pages. Still reeling from her beloved uncle's death, Chloe Alvarez is comforted and confused when at his last will and testament reading, Uncle Will gifts her his African Grey parrot, Charlie. Charlie has a robust vocabulary and loves to make Alexa requests for her favorite songs, but when she starts saying things like, "homicide," and "cyanide," Chloe becomes convinced that Uncle Will may have met his demise by murder instead of a genetic disease, as was previously thought. Ultimately, bringing in her brother, Grammy, and Uncle Frank (and of course Charlie,) Chloe's ragtag and adoring family support her search for answers ---going on stakeouts, engaging in fast pursuits, and searching for clues. But as the suspects stack up and the mystery grows, Chole will learn that the process of death and grieving is complicated, and in the end her Uncle Will's words that, ...

Review: The Factory

The Factory By Catherine Egan New York, NY : Scholastic Inc., 2025. Fiction. 306 pages.  Thirteen-year-old Asher Doyle has been invited to join the Factory, a secretive research facility in the desert which ostensibly extracts renewable energy from the electromagnetic fields of its young recruits. But Asher soon realizes something sinister is going on. Kids are getting sick. The adults who run the Factory seem to be keeping secrets. And the extraction process is not only painful and exhausting, but existentially troubling. Asher makes a handful of new friends who help him with an investigation that turns into a resistance, which turns into...a cliffhanger! The Factory is a page-turning sci-fi with multidimensional characters, an intriguing plot, and refreshingly straight-forward writing. Egan weaves in detail about climate crises and social unrest, making the story's dystopian setting feel rich and plausible. With its sophisticated themes and accessible storytelling, I would recomm...

Review: A Game of Noctis

A Game of Noctis By Deva Fagan New York: Atheneum Books for Young Readers, 2024. Fiction. 310 pages. On the island of Dantessa, social standings and wealth are determined by your place in the Great Game. If you keep on winning, you can reap treasures, power, and security for yourself and your family; but if you lose too many games, you'll be exiled to Pawn Island and a life of servitude. That's what happens to 12-year-old Pia's grandfather. Due to poor vision, he struggles to see the games, but also can't afford new eyeglasses without winning. When his score falls to zero, he is sent away. Desperate to bring him back, Pia joins a ragtag group of misfits to form a team for the annual game of Noctis. The game requires contestants to perform dangerous challenges in front of a live audience, and no one outside the wealthy Diamond District has ever won. Each member of Pia's team, the Seafoxes, has their own reason to compete, but if they're going to win they'll h...