Interested in learning the Swift programing language? Now that it’s open source, it’s a great time to give it a try. Get started right from your web browser using the IBM Swift Sandbox.

IBM_HourOfCode-01

 

#Hour of Code Basics

The Hour of Code is a global movement reaching tens of millions of students in 180+ countries. The grassroots campaign goal is for tens of millions of students around the world to try an Hour of Code during December 7-13, in celebration of Computer Science Education Week. It is a one-hour introduction to computer science, designed to demystify code and show that anybody can learn the basics.

 

1.) Learn About Swift

Swift is a one of the most popular languages for Mobile application development today and getting started is as easy as 1-2-3!
Begin by spending 20 – 30 minutes reading some of the documentation about the Swift programing language. You can also take a quick tutorial to see how the code is written.

 

2.) Code in Swift

Now let’s get coding. Spend 30 minutes applying what you learned from the documentation by coding in Swift with the IBM Swift Sandbox.

You can pull down a “Source Sample”, and hit the “Run” button to see the results. You can easily edit and modify the code to see what results you can create. You can also paste in some of the code samples from the tutorial above.

IBM Swift Sandbox-MacBook@2x

 

3.) Dive Deeper in Swift

Now that you’ve learned a few things about Swift, you can present your finding to your class or, if you are doing this on your own, at a local meetup. You can also dive deeper and read more in the Swift Documentation.

 

A word of caution

OK, at this point you’re diving head-first into Swift. However, it is important to note that the Linux port of Swift is not yet in parity with the Foundation library on OS X (Xcode). Some of the basics that you might expect, or see in snippets elsewhere online, may not be available. You can learn more about this and other known issues on the Github open source site.

 

Educators:

Learn more about the Computer Science Education Week and the HourofCode campaign at hourofcode.org.

Follow our Swift@IBM portal https://developer.ibm.com/swift/ for more insights on how Swift is moving from the client to the server and why Swift will be important to businesses today.

Learn more about how students may get involved in Open Source Swift at Swift.org.

Have fun this week!

Aaron Kettl (@aaronkettl), Advisory Designer, IBM Mobile Innovation Lab

2 comments on"#HourofCode: Learn Swift in three easy steps today!"

  1. Love all the resources that IBM provide

  2. yes i would like to join the discussion

Join The Discussion

Your email address will not be published. Required fields are marked *