Upload
vizwik
View
167
Download
0
Embed Size (px)
Citation preview
1. Why visual code works2. Structure of an App3. Visual Data Flow4. Scripts5. Operations6. Data Types7. Control Flow: Blocks, Loops, & Calls8. Examples
Contents
Visual as a basis for code...
14 characters5 operations6 links4 rules=No syntax errors
52 characters7 keywords used3 assignments6 lines of code18 coding rules=50+ potential syntax errors
A/B Test: HTML5 vs Vizwik
Raw HTML 5
108 Hours
2 coders
design done
LOC: 1350
Deployment: 5hr
Status: Incomplete
Cost: $3500
Upload: 10s
Vizwik
19 hours
1 coder
1 designer
LOC: 18 scripts
Deployment: 1 min
Status: Complete
Cost: $500
Upload: 2s
Boolean: True | False
Number: 125 , 12.34
Text: This is some text
List: (,,, ...)
Object: { name : value, ... }
Data Types
Event Handling: Tap
On Tap
Event Object
DnD
Event Object : {
id : ‘amXXXXXX’,
name : ‘Button’
X: 123, Y: 22
time: May 23, 2014, 2pm
}
1. Blocks
2. Conditional Block
3. List Loop Block
4. Number Loop Block
5. Call and Return
Control Flow
Blocks
Sequential Blocks
Blocks group other blocks together to allow them to be controlled, such as sequencing
Conditional Block
Match is test to run first case if true
Run Block conditionally based on value of input
Conditional Block
If input does not match label, then jump to 2nd case
Jumping between cases in a block conditionally
agora mobile
List Loop Block
Execute a Block for each element in a list.
Loop Input
Looped Value (optional)
List of numbers
Numeric Loop Block
Execute a Block a specified number of times.
Loop Decrement (-)Increment (+)
Non-Looped Input/Output (optional)
Count
End Test
Scripting Examples1. Printing Values2. Navigate between Views3. Set View Item Properties - Color, visibility, 4. Get/Set Values - calculate5. Set Image 6. Playing Audio 7. Add/Remove List Items8. Maps - add marker9. Media Upload - Gallery
10. Timers and Animation11. Collision Detection12. Prompts, Options, Menus13. Draw on a Canvas
How to reach us...
www.vizwik.com
www.facebook.com/vizwik
www.twitter.com/agoramobile
www.vizwik.com/blog
www.googleplus.com/vizwik
www.youtube.com/vizwik