Showing posts with label coding. Show all posts
Showing posts with label coding. Show all posts

Wednesday, May 23, 2018

Coding With Josh Funk

by Sue Heavenrich

How to Code a Sandcastle (a Girls Who Code book)
by Josh Funk; illus. by Sara Palacios
44 pages; ages 4-8
Viking, 2018

If you know how to code, you can do anything: solve big problems, design a car, print a prosthetic hand - even build a sandcastle! Which is good news for Pearl, when she heads to the beach with her robot buddy, Pascal.

All Pearl needs to do is learn how to tell Pascal what to do, and how to do it. As she learns, when telling a robot (or computer) to do something, you need to give it specific instructions. In a sequence. And if you want it to continue doing something over and over and over again, you might want to know how to create a loop of instructions.

So how did the Josh Funk, author of Dear Dragon and Lady Pancake & Sir French Toast, end up writing about coding?

GROG: Hey, Josh! How did you come up with this fun and sandy idea? 

JOSH: Thanks so much for having me on the GROG! I’ve been following since the very beginning!

A  few years back, I started trying to write a fictional story that also relayed some elements of coding that was appropriate for the picture book-aged audience. And let me tell you … it was NOT easy. I went through three and a half completely different stories before landing on How to Code a Sandcastle.

Photo by Carter Hasegawa
When we submitted the story to my editor at Viking/Penguin (she previously edited Dear Dragon), she told us that Penguin and Girls Who Code had recently entered into a partnership to create a bunch of children’s books about coding. My editor had showed the story to Reshma and Girls Who Code and it all came together at that point.

GROG:  How did you determine what coding terms / instructions to focus on?

JOSH: At first, I thought back to my first computer science course in college. Second, I have kids who have been taught certain aspects of coding since kindergarten, so I’ve seen what they do. And third, I did research. (Shocking! I know!)

And you know what, coding is just like any other subject. You need to know the alphabet before you can read. You need to know how to count and some basic arithmetic symbols before you can do math. And to code, you need to know about sequences, loops, and conditionals (I call them ‘If-Then-Else’s in the book). You might call a ‘loop’ a ‘repeat’, but every coding language has something like that.

It turns out that sequences, loops, and conditionals are the first things the Girls Who Code movement introduces in their coding program as well.

GROG: Can you talk about the process of developing a story around showing young readers what these instructions mean and how they are used?   

JOSH: This was the trickiest part. But I think things started to click when I realized two things:

First, the setting had to be something familiar to children. Starting out in a made-up fantasy world is complex enough without introducing complicated coding concepts (trust me, I tried). So when I simplified it to the task of building a sandcastle at the beach, this was key. (thank you to my critique partners who continually pushed me in this direction)

Second, I needed to not try teaching everything in a single story. There’s a LOT more coding than just sequences, loops, and conditionals. But when I also tried talking about variables, for loops vs. while loops, and pointers - that was just WAY too much (but YAY for sequels - HOW TO CODE A ROLLERCOASTER is where we learn about variables - in the fall of 2019).

GROG: Pearl tells Pascal "that's enough" - is there a way to code when to stop?  

JOSH: Depending on the computer language, there are certainly ways to break out of loops. In fact, in C/C++, you would use the word break - which is why Pearl tells Pascal, ‘time for a break’ to get out of that first loop halfway through the book.

Normally, the best way to get out of a loop is to set the start and end conditions appropriately (for example, you’ll repeat something a certain number of times or while a certain condition is still true) - but that might have gotten a little too complicated for a book like this.

GROG: Aren't you worried Pascal will get sand in his bearings? 

JOSH: And this is why I don’t write strict nonfiction. HOW TO CODE A SANDCASTLE is ‘informational’ fiction. Some might even say ‘speculative’ - as we don’t yet live in a world where we can instruct robots to build our sandcastles for us … at least that I know of ….

To find out more about Josh Funk and his wonderful books visit him at www.joshfunkbooks.com and on Twitter at @joshfunkbooks. Turns out, Josh knows how to code - he studied computer science. He's pretty good at writing instructions for computers, but not so good at writing bios, so please help him out:
Josh enjoys _______ during ________ and has always loved __________. He has played ____________ since age __ and his biggest fear in life is being eaten by a __________.


Monday, August 24, 2015

Makerspaces: A Whole New Market for Authors? By Todd Burleson

Makerspaces:  A Whole New Market for Authors? by Todd Burleson


What is a makerspace and why should authors be interested?  A makerspace is a place where learners create, tinker, explore, prototype, fail, research, discover and learn through a variety of materials. The tools can be anything from cardboard to microprocessors.  A makerspace is about producing rather than consuming.  Makers learn to make stuff by making things. “Schools often forget this as they endlessly prepare students for something that is going to happen to them next week, next year or in some future career. Students can and should be scientists, artists, engineers and writers today.”


As this movement continues to grow, educators and parents are constantly looking for ways to dovetail literacy with it. Sometimes, for me as a librarian, I’m looking for a way to fold in a lesson.  Take  Not a Box by Antoinette Portiss.   This lovely story about creativity is going to be an excellent way for me to introduce the Global Cardboard Challenge to my school.  


This coming October, we'll invite the school and wider community to come visit our IDEA Lab and Project Room. We’ll have stations set up and manned by parents and students.  This will be everyone’s chance to visit and learn more about the makerspace we’ve created.  Following the Open House, we’ll gather to watch the film that inspired the idea behind the Global Cardboard Challenge.



Then, we’ll invite families to use the hundreds of pounds of cardboard, dozens of rolls of Duck tape, packing tape, Make Do Kits, zip ties and more to create with cardboard.  They might create an arcade game or a robot.  The only limit is their imagination.  Finally, we’ll end the day by taking a gallery walk to see one another’s awesome creations.  





One of the elements of the Maker Movement that is most inspirational to me is that it is breaking down the traditional borders around engineering and making.  Great books like Rosie Revere the Engineer , Crafty Chloe, Violet the Pilot,Iggy Peck Architect are some tremendous examples.  







So why should I as an author be so interested in the Maker Movement?  I see the answer to this question in two parts. The first is that this should encourage authors to seek those obscure heroes from history; there’s never been a better time to highlight them.  The second is that as authors, indeed as human beings, we should be ‘making’ ourselves.  This summer, as a result of my attending the CMK Conference in Manchester, NY, I went from complete newbie with coding and circuitry to realizing that, with just a bit of research, I could make THIS

Rather than paying $3,000 dollars for it, I could actually make it. All it takes is a basic understanding of code and circuitry.

I began to look at the world with a lens that helped me feel empowered. No longer was I merely a consumer, I was a creator.  This is the same sense of empowerment we want to hone in our students and teachers who are involved in the maker movement.  Indeed, this is what it means when you hear that education is preparing students for jobs that don't yet exist. We are preparing them to think, explore and imagine!

As authors, we are constantly mining the world for our 'next' idea. When School Library Journal leads with a "Maker Issue," this is a good sign that the concepts are pretty entrenched.  






Makerspace, Hackerspaces, IDEA Labs, Innovation Studios, Fab Labs, whatever we call them, they are popping up in public libraries, in former furniture stores and a school near you.  Go CREATE!  Go get inspired and then turn those ideas and the ones they inspire into a piece of literature that will keep the movement going!

_________________________________________________________________________________
1  "Why the Maker Movement matters to educators | SmartBlogs ..." 2013. 23 Aug. 2015 <http://smartblogs.com/education/2013/08/20/why-the-maker-movement-matters/>