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: 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: 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...

National Geographic Book of Animal Poetry

National Geographic Book of Animal Poetry Edited by J. Patrick Lewis National Geographic, 2012, 183 p. Poetry In this beautiful poetry collection, the National Children's Poet Laureate, J. Patrick Lewis, has teamed up with the amazing photographers at National Geographic. The result is 200 poems about animals, all illustrated with stunning nature photography.  The poems are well chosen and include rhyming, free verse, and shape poetry. Some of the poems are funny, many are contemplative and all are nicely typeset on top of the full color photographs. One of my favorites is a shape poem about flamingos, with a photograph of a flock of flamingos which seem to be standing the the shape of a flamingo (how did they do that?).  Lewis ends the collection with a brief but interesting section about writing animal poetry.  This selection is sure to turn any animal lover into a poetry lover.