CNET también está disponible en español.

Ir a español

Don't show this again

Swift Playgrounds functions

Swift Playgrounds basic explanations

Swift Playgrounds 'for loop' explanations

Swift Playgrounds editing

Swift Playgrounds noodling around

Swift Playgrounds characters

Swift Playgrounds editing and testing

Swift Playgrounds not just for kids

Swift Playgrounds game of life

Swift Playgrounds object oriented programming

Swift Playgrounds code changes

Apple's Swift Playgrounds app introduces computer science concepts like decomposition, or breaking one large task into several smaller, more manageable ones.

Published: / Caption: / Photo: Stephen Shankland/CNET
1
of 11

Swift Playgrounds functions

Swift Playgrounds basic explanations

Swift Playgrounds 'for loop' explanations

Swift Playgrounds editing

Swift Playgrounds noodling around

Swift Playgrounds characters

Swift Playgrounds editing and testing

Swift Playgrounds not just for kids

Swift Playgrounds game of life

Swift Playgrounds object oriented programming

Swift Playgrounds code changes

Apple's Swift Playgrounds app tries to show how programming is like some real-world tasks.

Published: / Caption: / Photo: Stephen Shankland/CNET
2
of 11

Swift Playgrounds functions

Swift Playgrounds basic explanations

Swift Playgrounds 'for loop' explanations

Swift Playgrounds editing

Swift Playgrounds noodling around

Swift Playgrounds characters

Swift Playgrounds editing and testing

Swift Playgrounds not just for kids

Swift Playgrounds game of life

Swift Playgrounds object oriented programming

Swift Playgrounds code changes

Apple's Swift Playgrounds app uses an example of planting seeds to describe how a "for loop" automates repeated tasks.

Published: / Caption: / Photo: Stephen Shankland/CNET
3
of 11

Swift Playgrounds functions

Swift Playgrounds basic explanations

Swift Playgrounds 'for loop' explanations

Swift Playgrounds editing

Swift Playgrounds noodling around

Swift Playgrounds characters

Swift Playgrounds editing and testing

Swift Playgrounds not just for kids

Swift Playgrounds game of life

Swift Playgrounds object oriented programming

Swift Playgrounds code changes

Apple's Swift Playgrounds app uses graphics to shows how a collection of commands can be grouped into a single function that can be invoked again and again.

Swift Playgrounds is a touchscreen app and you don't have to type much; suggested commands are at the bottom of the screen.

Published: / Caption: / Photo: Stephen Shankland/CNET
4
of 11

Swift Playgrounds functions

Swift Playgrounds basic explanations

Swift Playgrounds 'for loop' explanations

Swift Playgrounds editing

Swift Playgrounds noodling around

Swift Playgrounds characters

Swift Playgrounds editing and testing

Swift Playgrounds not just for kids

Swift Playgrounds game of life

Swift Playgrounds object oriented programming

Swift Playgrounds code changes

In Apple's Swift Playgrounds app, you can change text, such as adding the word "human," and then run the program to see how it works.

Published: / Caption: / Photo: Stephen Shankland/CNET
5
of 11

Swift Playgrounds functions

Swift Playgrounds basic explanations

Swift Playgrounds 'for loop' explanations

Swift Playgrounds editing

Swift Playgrounds noodling around

Swift Playgrounds characters

Swift Playgrounds editing and testing

Swift Playgrounds not just for kids

Swift Playgrounds game of life

Swift Playgrounds object oriented programming

Swift Playgrounds code changes

Apple's Swift Playgrounds app features three animated characters who gather gems and flip toggle switches on and off. You can create custom functions to control how each character moves, turns and takes other actions.

Published: / Caption: / Photo: Stephen Shankland/CNET
6
of 11

Swift Playgrounds functions

Swift Playgrounds basic explanations

Swift Playgrounds 'for loop' explanations

Swift Playgrounds editing

Swift Playgrounds noodling around

Swift Playgrounds characters

Swift Playgrounds editing and testing

Swift Playgrounds not just for kids

Swift Playgrounds game of life

Swift Playgrounds object oriented programming

Swift Playgrounds code changes

Apple's Swift Playgrounds app has an Answer module that outlines how basic text interactions work on the computer.

Published: / Caption: / Photo: Stephen Shankland/CNET
7
of 11

Swift Playgrounds functions

Swift Playgrounds basic explanations

Swift Playgrounds 'for loop' explanations

Swift Playgrounds editing

Swift Playgrounds noodling around

Swift Playgrounds characters

Swift Playgrounds editing and testing

Swift Playgrounds not just for kids

Swift Playgrounds game of life

Swift Playgrounds object oriented programming

Swift Playgrounds code changes

Apple geared Swift Playgrounds toward kids, but adults can learn about programming through the app too.

Published: / Caption: / Photo: Stephen Shankland/CNET
8
of 11

Swift Playgrounds functions

Swift Playgrounds basic explanations

Swift Playgrounds 'for loop' explanations

Swift Playgrounds editing

Swift Playgrounds noodling around

Swift Playgrounds characters

Swift Playgrounds editing and testing

Swift Playgrounds not just for kids

Swift Playgrounds game of life

Swift Playgrounds object oriented programming

Swift Playgrounds code changes

One of the Swift Playgrounds challenge modules is the classic Conway's Game of Life using emoji. You can change them or change the rules that govern how the cells in the grid live or die.

Published: / Caption: / Photo: Stephen Shankland/CNET
9
of 11

Swift Playgrounds functions

Swift Playgrounds basic explanations

Swift Playgrounds 'for loop' explanations

Swift Playgrounds editing

Swift Playgrounds noodling around

Swift Playgrounds characters

Swift Playgrounds editing and testing

Swift Playgrounds not just for kids

Swift Playgrounds game of life

Swift Playgrounds object oriented programming

Swift Playgrounds code changes

No matter how much Apple's Swift Playgrounds app simplifies things, object-oriented programming takes some getting used to.

Published: / Caption: / Photo: Stephen Shankland/CNET
10
of 11

Swift Playgrounds functions

Swift Playgrounds basic explanations

Swift Playgrounds 'for loop' explanations

Swift Playgrounds editing

Swift Playgrounds noodling around

Swift Playgrounds characters

Swift Playgrounds editing and testing

Swift Playgrounds not just for kids

Swift Playgrounds game of life

Swift Playgrounds object oriented programming

Swift Playgrounds code changes

Apple's Swift Playgrounds app offers a shapes section that lets you fiddle with a variety of Swift commands on the left side of the screen and see what happens on the right.

Published: / Caption: / Photo: Stephen Shankland/CNET
11
of 11
Up Next

iPhone 2018: Most-wanted features