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

Slides:



Advertisements
Similar presentations
Introduction to Macromedia Director 8.5 – Lingo
Advertisements

Touchdevelop api api acceleromete r measure acceleration Disclaimer: This document is provided as-is. Information and views expressed in this document,
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.
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.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
请点击以下链接下载 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:
1 Chapter 4 The Fundamentals of VBA, Macros, and Command Bars.
请点击以下链接下载 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
CSC 8310 Programming Languages Meeting 2 September 2/3, 2014.
Exploring Microsoft Excel 2002 Chapter 8 Chapter 8 Automating Repetitive Tasks: Macros and Visual Basic for Applications By Robert T. Grauer Maryann Barber.
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.
A First Program Using C#
Advanced topics in touchdevelop touchdevelop outlook ongoing research Disclaimer: This document is provided “as-is”. Information and views expressed in.
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.
I/o inputs and outputs Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Touchdevelop api api: leaderboard when you are supposed to be somewhere Disclaimer: This document is provided “as-is”. Information and views expressed.
JavaScript, Fourth Edition
ASP.NET Programming with C# and SQL Server First Edition Chapter 3 Using Functions, Methods, and Control Structures.
Touchdevelop api api: sending electronic bits to people Disclaimer: This document is provided “as-is”. Information and views expressed in this document,
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.
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 values … and types 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.
Introduction to TouchDevelop Lesson 3 – Comments & Lists Created by S. Johnson
Screens naming screens and concepts v2.8 Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
[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!
Lecture III Syntax ● Statements ● Output ● Variables ● Conditions ● Loops ● List Comprehension ● Function Calls ● Modules.
Primary Contact Territory Category On-boarding Status Relationship Type Deal Territory Deal Confidentiality Potential conflict Conflict Cleared.
Basic coding… with TouchDevelop!!
Access Lesson 1 Understanding Access Fundamentals
Introduction to TouchDevelop
Exploring Microsoft Excel
T. Jumana Abu Shmais – AOU - Riyadh
Introduction to TouchDevelop
CSCI N207 Data Analysis Using Spreadsheet
Web Programming and Design
Presentation transcript:

introduction to touchdevelop statements overview 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 statements o command, simple statement o var, local variable declaration o if … then … else o for each [var] in … where … do … o for 0 ≤ [var] < … do … o while … do o comments o do nothing

introduction to touchdevelop adding o tap one of the + in the statement menu o tap intended statement button

introduction to touchdevelop editing o first, enter condition/bound/ collection o tap the hardware back button when done

introduction to touchdevelop editing o to modify condition/bound/collection, select entire expression o to modify body, select statement in body

introduction to touchdevelop command o any expression is a statement o unassigned expression results are simply forgotten o use the store in var button to assign the value into a fresh local variable ☀ use to be called expression or do stuff…

introduction to touchdevelop var o very similar to the command but with a placeholder to store the expression value ☀ while var is mostly a syntactic sugar which automatically gets added when assigning into a fresh local, this button was introduced to reduce the confusion of beginners looking for the var keyword.

introduction to touchdevelop if … then … else o empty else-branch is shown in compact form, but cannot be removed o to edit condition, select the entire if then else block.

introduction to touchdevelop for each [var] in … where … do … o iterates over a collection actually equivalent to a loop from i :=0 to (collection→count-1), assigning collection→at(i ) to loop variable [var] in each iteration o iteration variable is automatically synthesized to rename it, use it in the body, tap on it, and rename o use ‘where’ clause to filter, if desired equivalent to ‘if’, but more efficient o example: for each song in media→ songs where song→duration > 180 do song→post to wall

introduction to touchdevelop demo / exercise ► let’s write this script: for each song in media→ songs where song→duration > 180 do song→post to wall

introduction to touchdevelop for 0 ≤ [var] < … do … o iterates from 0 (includes) to an upper bound (exclusive) o iteration variable is automatically synthesized to rename it, use it in the body, tap on it, and rename o example: for 0 ≤ i < 4 do i→post to wall prints

introduction to touchdevelop for 0 ≤ [var] < … do … o surprised by the ordering on the wall? try this: for 0 ≤ i < 4 do i→post to wall time→sleep(1)

introduction to touchdevelop while … do … o executes loop body while condition is true o example: i := 0 while i < 4 do i →post to wall i := i + 1 prints

introduction to touchdevelop demo / exercise ► let’s write this script: i := 0 while i < 4 do i →post to wall i := i + 1

introduction to touchdevelop scope o in the app, scope is indicated by indentation (and gray lines) o to add a statement in a particular scope, select an existing statement in that scope, and tap +

introduction to touchdevelop comments o comments do nothing o (unlike many other language, comments are maintained in the “abstract syntax tree” to play nice with the editor)

introduction to touchdevelop do nothing o empty place holder statement

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