Beginner - Intermediate @shahedC WakeUpAndCode.com

Embed Size (px)

Citation preview

  • Slide 1
  • Beginner - Intermediate @shahedC WakeUpAndCode.com
  • Slide 2
  • Introduction > Variables, Operators & Loops > Classes & Methods > Files & Exceptions Additional Topics
  • Slide 3
  • PeriodBackground/Experience 1997 present Microsoft web/software development 2011XNA games on XBLIG for Xbox 360 2D Math Panic Angry Zombie Ninja Cats 2012Tools for XNA developers XBLIG Sales Data Analyzer (OnekSoftLabs.com) XNA Basic Starter Kit (CodePlex) Online: http://facebook.com/OnekSoftGameshttp://facebook.com/OnekSoftGames
  • Slide 4
  • PeriodBackground/Experience 2013 Ninja Cat Runner on Win8, WP8, Web (Construct 2) Video Q&A with MS Tech Evangelist Frank La Vigne Founder/Admin of FB groups: Construct2, Xbox One & Unity Indie Devs Started Public Speaking in DC area and East Coast 2014 Public Speaking on Indie Game Development Joined Microsoft as a Sr. Technical Evangelist Gallant Glider on Win8, WP8, Web (Construct 2 Universal App) Video Q&A: http://youtu.be/lRjrQPvVOpohttp://youtu.be/lRjrQPvVOpo MVA: http://aka.ms/DevGames-Const2 http://aka.ms/DevGames-Const2
  • Slide 5
  • Source: Official Xbox Magazine, March 2014, Page 65 `
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • References Properties Panel Code Editor Toolbar Solution Explorer Ouput Start (Run)
  • Slide 10
  • Slide 11
  • Slide 12
  • Start/Continue
  • Slide 13
  • Introduction > Variables, Operators & Loops > Classes & Methods > Files & Exceptions Additional Topics
  • Slide 14
  • Slide 15
  • Variables class Method ( ) Data Types Integer String var? Assignment Output namespace using statements // 1-line comment /* multi-line comments */
  • Slide 16
  • Slide 17
  • TypeOperators Unary Postfix Operators ++ -- Unary Prefix Operators ++ -- + - Multiplicative Operators * / % (modulus) Additive Operators + - Assignment Operators = higher lower
  • Slide 18
  • TypeOperators Equality == != Logical AND & Logical XOR ^ Conditional AND && Conditional OR || Conditional Ternary Operator ?:
  • Slide 19
  • Slide 20
  • Declare & Assign StringBuilder Special Characters Concatenate Literal string.Format() Char Array String Functions
  • Slide 21
  • Slide 22
  • for loop while loop continue break switch-case statements default break if/else blocks
  • Slide 23
  • Slide 24
  • Slide 25
  • 1 2 3
  • Slide 26
  • constructors properties Instance variable public method private methods (overloaded) class declaration this keyword
  • Slide 27
  • parent class complex object public method private variable
  • Slide 28
  • Slide 29
  • Slide 30
  • 1 2 3
  • Slide 31
  • 1 2 3
  • Slide 32
  • Set to Copy always enter sample data
  • Slide 33
  • Use System.IO namespace for StreamReader Handle possible exceptions with try-catch block
  • Slide 34
  • Slide 35
  • Introduction > Variables, Operators & Loops > Classes & Methods > Files & Exceptions Additional Topics
  • Slide 36
  • Slide 37
  • Slide 38
  • name of enum initialization not required enum keyword }
  • Slide 39
  • if-else check initialization } } switch-case check
  • Slide 40
  • Slide 41
  • Slide 42
  • static class static method this keyword before first parameter data type matches extended class e.g. string
  • Slide 43
  • data type to be extended call extension method just like Instance method
  • Slide 44
  • Slide 45
  • Slide 46
  • placeholder within right after method name placeholder used for one or more parameters
  • Slide 47
  • actual data type, e.g. within in place of placeholder a different data type!
  • Slide 48
  • Slide 49
  • Slide 50
  • } add values individually } add multiple values at once (separated by commas) Declare Lists of different types e.g. and
  • Slide 51
  • iterate through values using foreach loops
  • Slide 52
  • Slide 53
  • Slide 54
  • Two data types for key-value pairs Initialize multiple values (separated by commas) Initialize individually
  • Slide 55
  • retrieve value, using [key] in square brackets
  • Slide 56
  • Slide 57
  • Slide 58
  • initialize number array retrieve contents
  • Slide 59
  • similar to SQL dot-notation e.g. myNums.Where() => goes to syntax for input into expression
  • Slide 60
  • Slide 61
  • Slide 62
  • Slide 63
  • Slide 64
  • Slide 65
  • Slide 66
  • note public method
  • Slide 67
  • call public method assert returned result pass in input parameters and expected result
  • Slide 68
  • Slide 69
  • Email: [email protected] Twitter: @[email protected]@shahedC