introduction to TouchDevelop

difficultmangledMobile - Wireless

Nov 12, 2013 (3 years and 7 months ago)

88 views

programming
with
touchdevelop

touchdevelop

introduction

Disclaimer: This document is provided “as
-
is”. Information and views expressed in this document, including URL and other Interne
t
Web site references, may change without notice. You bear the risk of using it. This document does not provide you with any le
gal

rights
to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purpos
es.

©
2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and Windows Live are trademarks of the Microsoft group o
f
companies. All other trademarks are property of their respective owners.

programming
with
touchdevelop

technology shift

o
smartphones
outsell PCs

o
smartphones might be first and
possibly only computing device for
many people

o
smartphones

perform many

common PC
tasks



programming
with
touchdevelop

smart phone
specs

iPhone 4

minimum Windows Phone 7 specs

Processor

?

800
Mhz

Display

960x640

800x480

Memory

512 MB

256 MB

“Disk”


-
㘴⁇6

㠠8B

more than your PC:


hardware
-
accelerated graphics, touchscreen


WiFi
, cellular (GSM 3G or CDMA),
b
luetooth


h
igh
-
resolution
camera(s)


GPS, accelerometer, gyroscope, compass,
a
mbient light
sensor, proximity sensor, FM tuner, …

programming
with
touchdevelop

smartphone
uses

o
text
m
essaging

o
t
aking
p
hotos

o
internet browsing

o
e
mailing

o
d
ownloading
a
pps

o
g
aming

o
s
ocial
n
etworking

o
n
avigating

o
w
atching video

o


what you haven’t done
on your phone yet:


writing code,

creating entire apps!

programming
with
touchdevelop

walled garden

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


have you already
tried to create a
mobile app?

programming
with
touchdevelop

what if…

o
we could write an app on the phone
directly?


w
ithout a PC

o
and share it with your friends?

programming
with
touchdevelop

challenges

o
small screen

o
no keyboard, but touchscreen

o
easily lost

programming
with
touchdevelop

touchdevelop

mobile application
development environment

o
create applications
(aka “scripts”) on the
phone itself

o
no PC required

o
access to phone
sensors, camera,
music, web, etc.

o
share scripts with other
people

programming
with
touchdevelop

demo

o
similar to built
-
in “take the tour” tutorial,
built
song player

programming
with
touchdevelop

this is for you

o
for students


e
ngaging experience


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


c
reate games


on
the go

o
l
owers
bar of entry to programming


create tailored
apps for micro
-
business


programming
with
touchdevelop

language+edito
r

o
typed language


e
nables precise auto
-
completion suggestions


i
mperative


o
bject
-
oriented, but doesn’t

allow definition of new objects

o
semi
-
structured editor


s
tructured at statement level


u
nstructured at expression level


s
tructured at token level

programming
with
touchdevelop

available APIs

all 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 networks

o
graphics with physics engine

o
tiles






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



http://touchdevelop.com/help/api



http://touchdevelop.com/help/languagecloud


programming
with
touchdevelop

script sharing

script bazaar
in cloud:

central authority for script sharing

o
backup

o
anyone can publish a script

o
script source code

is made available

o
discover new scripts!

o
all published scripts are

analyzed
(privacy)

programming
with
touchdevelop

website


programming
with
touchdevelop

book + slides

available
free online

touchdevelop.com/book

touchdevelop.com/slides

o
introduction to
programming on a
phone

o
how to use app +
language

o
for teachers + students

programming
with
touchdevelop

real apps

o
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
Hub

o

Learn more…


programming
with
touchdevelop

reception

o
TouchDevelop

is popular

(released April 2011)


> 150K downloads

in 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


u
sing
personal device and data (songs, pictures, etc.)

o
e
mbraces
new
reality


l
anguage
and editor optimized for touchscreen


f
irst
-
class
access to sensors and services


s
haring
and learning with friends in the cloud