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: Alice with a Why

Alice with a Why By Anna James New York: Penguin, 2026. Fiction. 240 pgs. In 1919, in the aftermath of the first World War, Alyce is living with her grandmother in the English countryside. Her grandmother, also named Alice, tells Alyce (with a y) stories from her childhood adventures in a wonderful land filled with white rabbits and mad hatters. Alyce doesn't really believe the silly stories, she just misses her father who was killed in the war. One day, Alyce receives a mysterious invitation to tea, and subsequently falls into a pond where she is transported to Wonderland. Her grandmother, of course, is that Alice. Alyce is prompted by the Mad Hatter, Dormouse, and March Hare to seek out the Time Being and put an end to the war between the Sun King and the Queen of the Moon. Thus begins Alyce's adventure through Wonderland. I have a certain soft spot for the original story of Alice in Wonderland. It is one of my particular favorites and I often have a hard time reading new int...

Review: Blood in the Water

Blood in the Water By Tiffany D. Jackson New York: Scholastic, 2025. Fiction. 255 pages. 12-year-old Kaylani McKinnon can't help but feel like a fish out of water. She's a Brooklyn girl spending her summer on Martha's Vineyard surrounded by wealthy family friends in their mansion. All she really wants is to stay home all summer where she her incarcerated father can easily reach her, and she can keep working to find ways to prove him innocent of fraud and embezzlement. Despite her protests, she finds herself on the island with the snooty granddaughters of her host. Soon after Kaylani's arrival, a popular teen boy is found murdered and she decides to conduct her own investigation. As she tries to discover what happened to Chadwick Cooper, Kaylani finds that not everything on Martha's Vineyard is as perfect as it appears. Thrillers for middle grade readers can be hard to find, but Tiffany D. Jackson succeeds in her first middle grade novel. A quick moving plot, tight d...