17
programming with touchdevelop touchdevelo p introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it. This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes. © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and Windows Live are trademarks of the Microsoft group of companies. All other trademarks are property of their respective owners.

Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

Embed Size (px)

Citation preview

Page 1: Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

programming with touchdevelop

touchdevelopintroduction

Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it. This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes. © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and Windows Live are trademarks of the Microsoft group of companies. All other trademarks are property of their respective owners.

Page 2: Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

programming with touchdevelop

technology shifto smartphones outsell PCso smartphones might be first and

possibly only computing device for many people

o smartphones perform many common PC tasks

Page 3: Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

programming with touchdevelop

smart phone specsiPhone 4 minimum Windows Phone 7 specs

Processor ? 800 Mhz

Display 960x640 800x480

Memory 512 MB 256 MB

“Disk” 16-64 GB 8 GB

more than your PC: hardware-accelerated graphics, touchscreen WiFi, cellular (GSM 3G or CDMA), bluetooth high-resolution camera(s) GPS, accelerometer, gyroscope, compass, ambient

light sensor, proximity sensor, FM tuner, …

Page 4: Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

programming with touchdevelop

smartphone useso text messagingo taking photoso internet browsingo emailingo downloading appso gamingo social networkingo navigatingo watching videoo …

what you haven’t done on your phone yet:

writing code,creating entire apps!

Page 5: Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

programming with touchdevelop

walled gardenmany platforms only allow user to run apps from vetted “app store” or “Marketplace”

have you already tried to create a mobile app?

Page 6: Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

programming with touchdevelop

what if…o we could write an app on the phone

directly?• without a PC

o and share it with your friends?

Page 7: Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

programming with touchdevelop

challengeso small screeno no keyboard, but touchscreeno easily lost

Page 8: Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

programming with touchdevelop

touchdevelop mobile application

development environmento create applications

(aka “scripts”) on the phone itself

o no PC requiredo access to phone

sensors, camera, music, web, etc.

o share scripts with other people

Page 9: Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

programming with touchdevelop

demoo similar to built-in “take the tour”

tutorial, built song player

Page 10: Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

programming with touchdevelop

this is for youo for students

• engaging experience

• work with your personal data (pictures, songs, …)

• create games

• on the go

o lowers bar of entry to programming• create tailored apps for micro-business

Page 11: Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

programming with touchdevelop

language+editoro typed language

• enables precise auto-completion suggestions

• imperative

• object-oriented, but doesn’t allow definition of new objects

o semi-structured editor• structured at statement level

• unstructured at expression level

• structured at token level

Page 12: Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

programming with touchdevelop

available APIsall phone features are available via touchdevelop:o camera, touch, accelerometer, compass,

gyro, microphone, …o contacts, calendar, email, …o pictures, songs, …o web queries, search, maps, social networkso graphics with physics engineo tiles

✿http://touchdevelop.com/Documents/whatcanido.pdf

✿ http://touchdevelop.com/help/api ✿ http://touchdevelop.com/help/languagecloud

Page 13: Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

programming with touchdevelop

script sharingscript bazaar in cloud:central authority for script sharingo backupo anyone can publish a scripto script source code

is made availableo discover new scripts!o all published scripts are

analyzed (privacy)

Page 14: Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

programming with touchdevelop

website

Page 15: Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

programming with touchdevelop

book + slides

available free online

touchdevelop.com/book

touchdevelop.com/slideso introduction to

programming on a phone

o how to use app + language

o for teachers + students

Page 16: Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

programming with touchdevelop

real appso submit scripts as apps to Marketplace!o requires App Hub developer account

(free for students via Dreamspark)o app needs to pass regular certification process on

App Hubo

Learn more…

Page 17: Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,

programming with touchdevelop

receptiono TouchDevelop is popular (released April 2011)

• > 150K downloadsin top 1% of all apps (out of 60.000) of Windows Phone Marketplace

• Rated 4.7/5 by users

o great for teaching• engaging programming experience

• using personal device and data (songs, pictures, etc.)

o embraces new reality• language and editor optimized for touchscreen

• first-class access to sensors and services

• sharing and learning with friends in the cloud