VNUHCM
Bài trước Bài kế tiếp
  • Nội dung học
  • Trợ giúp
    Bạn có thắc mắc khi đang học?
    Hướng dẫn cách học Những câu hỏi thường gặp Email cho giáo vụ
    • Tiếng Việt
    • English
    • Thông tin Thành viên
    • Khoá học đăng ký
    • Đăng xuất
  • Cohota
  • HƯỚNG DẪN HỌC TẬP

  • Xem chi tiết >>
    Bạn đã hoàn thành 0% khoá học
  • HƯỚNG DẪN SINH VIÊN ĐĂNG NHẬP HỆ THỐNG
    • Hướng dẫn đăng nhập
    • Hướng dẫn vào khóa học
  • Introduction
    • Welcome
  • Unit 1: Values
    • Introduction - Unit 1: Values
    • Get Started With Values
    • Play with Values
    • Playground Basics
    • Naming and Identifiers
    • Simulation
    • Strings
    • Constants and Variables
    • Word Games
    • Build a PhotoFrame App
    • Design for People
  • Episode 1: The TV Club
    • Introduction - Episode 1: The TV Club
    • Searching for Content
    • Sharing Personal Information
    • Ordering Online
    • Reflection: Episode 1
  • Unit 2: Algorithms
    • Introduction - Unit 2: Algorithms
    • Get Started with Algorithms
    • Play with Programs
    • Functions
    • Types
    • Parameters and Results
    • Making Decisions
    • BoogieBot
    • Data Visualization
    • Build a QuestionBot App
    • Design an Experience
  • Episode 2: The Viewing Party
    • Introduction - Episode 2: The Viewing Party
    • Accessing the Show
    • Streaming on the Network
    • Reflection: Episode 2
  • Unit 3: Organizing Data
    • Introduction - Unit 3: Organizing Data
    • Get Started with Organizing Data
    • Play with Complex Data
    • Instances, Methods, and Properties
    • Arrays and Loops
    • Structures
    • Enums and Switch
    • Testing Code
    • Processing Data
    • Pixel Art
    • Password Security
    • Visualization Revisited
    • Build a BouncyBall App
    • Design a Prototype
  • Episode 3: Sharing Photos
    • Introduction - Episode 3: Sharing Photos
    • Capturing Images
    • Posting on Social Media
    • Reflection: Episode 3
  • Unit 4: Building Apps
    • Introduction - Unit 4: Building Apps
    • Get Started with App Development
    • Play with App Components
    • Color Picker
    • ChatBot
    • Rock, Paper, Scissors
    • MemeMaker
    • Build an ElementQuiz App
    • Design for Impact
  • Appendix
    • Episode Technical Concepts
    • Glossary
Tổng quan điểm khóa học
Đánh giá

Tiến độ
Tên tiêu chí Trọng số (%) Điểm Tiến độ (%)
Unit 1: Values

Playground Basics

Unit 1: Values|Play

What you'll build

  • A programming setup that you can type in and get answers to basic calculations.

What you'll learn

  • How to type and change code in a playground.
  • Where to look for the results of your work.
  • How to add notes that will help you remember what your code means.
  • What it looks like if something goes wrong.

Key vocabulary

  • Comments
  • Comment out
  • Error
  • Xcode Playground
  • Results sidebar

Introduction

Playgrounds allow you to experiment with programming ideas without building an entire app. You’ll write some code, watch it run, think about it a bit, change some lines, and watch it run again. Down the road, you can turn your successful experiments into a fully featured app. But for now, just play—and learn.

Go Build

Open the Playground Basics.playground file in your course resources and follow the instructions.

Screenshot of the PlaygroundBasics playground

Reflection Questions

What surprised you most about using the playground in this lesson?

What other kinds of calculations could you store and run in a playground?

Summary

You worked on simple problems in a real programming environment and saw the results of the computer doing some work for you. You even saw an error from some mistyped instructions and checked where it was coming from so that you could fix the issue. Now you’re ready to start one of the most fundamental concepts in programming—using names to label your work. Labeling your work allows you to reuse and remix the results so the computer can solve increasingly difficult problems.

Báo lỗi