Introduction to touchdevelop values … and types Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including.

Slides:



Advertisements
Similar presentations
Touchdevelop api api acceleromete r measure acceleration Disclaimer: This document is provided as-is. Information and views expressed in this document,
Advertisements

Programming with touchdevelop working with loaned phone what about them? Disclaimer: This document is provided as-is. Information and views expressed in.
Touchdevelop api api: web downloading and uploading Disclaimer: This document is provided as-is. Information and views expressed in this document, including.
Touchdevelop api api: tiles customize your home screen Disclaimer: This document is provided as-is. Information and views expressed in this document, including.
Touchdevelop api api: songs play music Disclaimer: This document is provided as-is. Information and views expressed in this document, including URL and.
Introduction to touchdevelop actions aka methods/functions/procedures Disclaimer: This document is provided “as-is”. Information and views expressed in.
physics engine + graphics
events reactive programming
Touchdevelop api api: location & maps show geo locations Disclaimer: This document is provided “as-is”. Information and views expressed in this document,
Introduction to touchdevelop if then else conditional statement Disclaimer: This document is provided “as-is”. Information and views expressed in this.
access to everything over the web
Advanced topics in touchdevelop privacy transparent privacy control via information flow analysis Disclaimer: This document is provided “as-is”. Information.
touchdevelop vs. apps with Visual Studio
Libraries in touch develop Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet.
请点击以下链接下载WinHEC的演讲材料
© 2014 Microsoft Corporation. All rights reserved.
请点击以下链接下载 WinHEC 的演讲材料 Download WinHEC presentations here:
Programming with touchdevelop discovering discover touchdevelop Disclaimer: This document is provided “as-is”. Information and views expressed in this.
Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,
请点击以下链接下载 WinHEC 的演讲材料 Download WinHEC presentations here:
请点击以下链接下载 WinHEC 的演讲材料 Download WinHEC presentations here:
请点击以下链接下载 WinHEC 的演讲材料 Download WinHEC presentations here:
请点击以下链接下载 WinHEC 的演讲材料 Download WinHEC presentations here:
请点击以下链接下载 WinHEC 的演讲材料 Download WinHEC presentations here:
Javascript Client-side scripting. Up to now  We've seen a little about how to control  content with HTML  presentation with CSS  Javascript is a language.
请点击以下链接下载 WinHEC 的演讲材料 Download WinHEC presentations here:
Touchdevelop api api: messaging sending sms Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including.
Screens naming screens and concepts Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL and.
Introduction to touchdevelop math basic arithmetic operations Disclaimer: This document is provided “as-is”. Information and views expressed in this document,
Touchdevelop api api: home script your digital media Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including.
Programming on the Go Chapters 1and 2 Siddharth Patel
Touchdevelop api api sound & microphone record sound Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including.
Touchdevelop api api: calendar when you are supposed to be somewhere Disclaimer: This document is provided “as-is”. Information and views expressed in.
Windows Azure Web Sites Speaker Title Organization.
WEB DESIGN AND PROGRAMMING Introduction to Javascript.
Advanced topics in touchdevelop touchdevelop outlook ongoing research Disclaimer: This document is provided “as-is”. Information and views expressed in.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Programming with touchdevelop class mechanics working with a phone in the classroom Disclaimer: This document is provided “as-is”. Information and views.
Touchdevelop api api: contacts people you know Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including.
Conditions and Terms of Use
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
I/o inputs and outputs Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet.
Touchdevelop api api: leaderboard when you are supposed to be somewhere Disclaimer: This document is provided “as-is”. Information and views expressed.
Touchdevelop api api: sending electronic bits to people Disclaimer: This document is provided “as-is”. Information and views expressed in this document,
Introduction to touchdevelop statements overview Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including.
Touchdevelop api api: social sharing Twitter, Facebook, … Disclaimer: This document is provided “as-is”. Information and views expressed in this document,
Programming with touchdevelop teacher’s checklist go over this before starting the course Disclaimer: This document is provided “as-is”. Information and.
Advanced topics in touchdevelop touchdevelop vs. apps with Visual Studio comparison Disclaimer: This document is provided “as-is”. Information and views.
I/o inputs and outputs Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet.
Introduction to touchdevelop ✿ art read only resources Disclaimer: This document is provided “as-is”. Information and views expressed in this document,
Touchdevelop api api gyroscope measure device rotation rate Disclaimer: This document is provided “as-is”. Information and views expressed in this document,
Social experience everything that is not coding Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including.
Scripts what’s in a script – basic language concepts Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including.
Scripts what’s in a script – basic language concepts Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including.
1 of 16 Microsoft ® Business Solutions–Navision ® Development I – C/SIDE Introduction.
Editing code mastering code input and navigation Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including.
Introduction to touchdevelop statements overview Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including.
Programming with touchdevelop about RiSE who is RiSE at Microsoft Research Disclaimer: This document is provided “as-is”. Information and views expressed.
Chapter 1 Introduction to PHP Part 1. Textbook’s Code DOWNLOADS PHP and MySQL for Dynamic Web Sites Complete Set of Scripts.
Today’s Agenda Business Value Discussion Slide Partner business value proposition (what's in it for the partner, partner case studies, revenue model)
Screens naming screens and concepts v2.8 Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL.
[Insert your logo here.] For Marketing Professionals [Insert brief description of guide.]
Sage Franch | Technical Evangelist Susan Ibach | Technical Evangelist.
Programming with touchdevelop More to think about! Curiosity - what's inside the cube? Thank you Sarah!
Primary Contact Territory Category On-boarding Status Relationship Type Deal Territory Deal Confidentiality Potential conflict Conflict Cleared.
Introduction to PHP Part 1
Scope, Objects, Strings, Numbers
Internal social media units
access to everything over the web
Presentation transcript:

introduction to touchdevelop values … and types 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.

introduction to touchdevelop basic value types o Boolean true, false o Number IEEE floating point numbers, double precision o String there is no separate character type, consider using strings of length 1 o DateTime date + time

introduction to touchdevelop other types o All other types have “reference semantics” Values of all other types are references to actual data Copying values only copies references, not actual data o Examples: Song, Picture, … all collection types

introduction to touchdevelop ‘invalid’ o All types have an ‘invalid’ value Including Boolean, Number, String, DateTime For numbers, ‘invalid’ is different from NaN o To check if a value is null, use value→is invalid o To get an invalid value of a type, use invalid→[type name]

introduction to touchdevelop ‘invalid’ example var x := senses→current location if x→is invalid then “GPS not working”→post to wall time→stop

introduction to touchdevelop ‘invalid’ example var last := invalid→sprite for each current in my sprite set do if not last→is invalid then last→hide last := current current→show board→update on wall

introduction to touchdevelop collection types o there are many useful collection types o to create a new instance, use collections→create [collection type] o example: var c = collections→create location collection

introduction to touchdevelop special collections o number map mapping of Numbers to Numbers keys can be numbers different from 0, 1, 2, … ‘post to wall’ prints a chart o sprite set think of a simple “sprite collection” however, it is created from and belongs to a particular ‘board’

introduction to touchdevelop initial values o local variables get initial value from assignment expression example: x := 1 o parameters get initial value from calling context o returns are initially ‘invalid’ o global variables ( data) most are initially ‘invalid’ (!) however: Number: 0, Boolean: false, String: “”, Date: 1/1/0001

introduction to touchdevelop title o item 1 o item 2 song→post to wall ☀ anecdote ☁ (link to sample) ► an exercise ✿ a reference