Press the button. Slide to unlock. Tap the icon. The app or game fills your screen — and your senses. But how does that happen? How does that icon get on the screen? How does that bird fly across it? How does that plant obliterate that zombie? How do all these apps and games work? The answer is "code". And Apple's free Hour of Code workshops were designed to introduce kids to just that.

Apple's been doing Hour of Code for a few of years now. Last year, the company introduced its Swift Playgrounds to the mix. With new and improved lessons to go with it, and the ability to control robots — yes, robots! — it makes the same kinds of code used to create next-generation iPhone, iPad, and Mac apps not just accessible to everyone, but relatable.

Every year I go to my local Apple Store to check out the Hour of Code sessions and I try to sit in on at least one. And every year, kids and adults alike began filing in a short time before the workshops began, their spaces reserved online over the course of the last week. Parents accompanied the younger children, helping them find stools around the large wooden tables. At one end, a TV set stands with the Hour of Code material displayed for the whole store to see.

For some of the sessions, iPads minis are loaded with the course material and ready to go. An Apple specialist leads the group, supported by several other Apple Store staff members circling around and helping out.

Way back in the first year, one of the hour-long workshop consisted of a series of code-based puzzles the kids needed to solve. The puzzles used characters and imagery from popular games like Angry Birds and Plants vs. Zombies. Instead of focusing on the nuts and bolts of coding and forcing kids to write brackets and if statements, however, the children were asked to build pre-created modules, much like an Automator or Workflow module. They simply dragged blocks of code from the sidebar to the main canvas — code that told their on-screen characters to move or turn, as well as how much or how often.

Between puzzles, the kids got to see short videos from the likes of Bill Gates and Mark Zuckerberg, who emphasized the empowerment behind learning to code.

By allowing the kids to directly manipulate coding blocks on the iPad mini, it let them build an app without necessarily getting into the nitty-gritty of code writing, and the success of problem-solving a difficult puzzle left the kids excited to move on to the next adventure. The large Apple presence in both the Montreal and New York City stores we visited also meant that the children received a lot of personalized attention; they had to work to progress, but never had to feel like they were being left behind.

The kids weren't the only ones learning and growing: Many parents became enthralled. The puzzle-based aspect to the coding lessons gave parents a way to help their children, even if they weren't already familiar with code theory. But, at the same time, it gave those untrained in the art of coding a window to potentially learn the fundamentals and encourage growth in their children in the future.

This year, things went up several more notches — kids could learn to code Sphero robots. And not just the basic Sphere robots either, the Star Wars variants including BB-8.

The children started off at the big table, like years past, but after a brief introductory video, they were taken to a section near the front that had been roped off and taped up. Taped up as in a path had been carefully marked out for BB-8 to follow and it was up to the children to code the little droid through it.

It wasn't an on-rails experience either. The children had to make choices, test potential solutions and, if they made a mistake, debug it and try again. Because that's how you learn to code.

Apple does a great job providing a fun, enjoyable path into code for every child. At the end of the sessions, there are always a few who ask, "Why couldn't it be two hours of code?!"

The workshop may not have been designed so that they could leave and go program the next Pokémon Go or Plants vs. Zombies, but all of them wanted to. Whether or not any of them end up becoming developers, they all learned that — if they put in the work — they could.

It might have been an hour of code, but the spark it lit could last a lifetime. That's what makes programs like and App Camp for Girls — and tools like Swift playgrounds — so important. They help inspire and enable the next generation of coders.

Furthermore, these programs open the doors for adult mentors to help guide kids on the path to programming, even if they don't necessarily have high-powered coding backgrounds themselves. In the preface to Carl Sagan's book The Demon-Haunted World, Sagan talks about his parents being his most important teachers in helping him pursuing astronomy: They may not have had backgrounds in astrophysics, but they encouraged him to question the world, and that gave him the drive to push forward, to discover, to explore.

If programs like's can help parents translate the importance of coding to their children, they don't need to know how to formulate for loops or understand what variables are useful for. It all comes down to curiosity and problem-solving.

If you couldn't get to Hour of Code at your local Apple Store, there's lots more to explore on

Photos by Serenity Caldwell.