<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://homeostasis.scs.carleton.ca/wiki/index.php?action=history&amp;feed=atom&amp;title=Mobile_App_Development_2021W_Lecture_2</id>
	<title>Mobile App Development 2021W Lecture 2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://homeostasis.scs.carleton.ca/wiki/index.php?action=history&amp;feed=atom&amp;title=Mobile_App_Development_2021W_Lecture_2"/>
	<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Mobile_App_Development_2021W_Lecture_2&amp;action=history"/>
	<updated>2026-04-09T13:13:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Mobile_App_Development_2021W_Lecture_2&amp;diff=22768&amp;oldid=prev</id>
		<title>Soma: Created page with &quot;==Video==  Video from the lecture given on January 13, 2021 [https://homeostasis.scs.carleton.ca/~soma/mad-2021w/lectures/comp1601-2021w-lec02-20210113.m4v is now available]....&quot;</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Mobile_App_Development_2021W_Lecture_2&amp;diff=22768&amp;oldid=prev"/>
		<updated>2021-01-13T18:51:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Video==  Video from the lecture given on January 13, 2021 [https://homeostasis.scs.carleton.ca/~soma/mad-2021w/lectures/comp1601-2021w-lec02-20210113.m4v is now available]....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Video==&lt;br /&gt;
&lt;br /&gt;
Video from the lecture given on January 13, 2021 [https://homeostasis.scs.carleton.ca/~soma/mad-2021w/lectures/comp1601-2021w-lec02-20210113.m4v is now available].&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lecture 2&lt;br /&gt;
------------&lt;br /&gt;
&lt;br /&gt;
Readings&lt;br /&gt;
  Swift Basics:&lt;br /&gt;
    https://docs.swift.org/swift-book/LanguageGuide/TheBasics.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TA&amp;#039;s will be keeping track of participation, posting in cuLearn periodically&lt;br /&gt;
 - if you think you weren&amp;#039;t given credit for a lecture, talk to a TA&lt;br /&gt;
 - note we have a record between the Teams chat and audio from lectures&lt;br /&gt;
&lt;br /&gt;
SwiftUI terminology is similar to HTML/CSS, but this is because both come from terminology for GUIs, which come from terminology for printing (on paper)&lt;br /&gt;
 - look up TeX, in particular the TeXbook&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Is swiftUI front end?&lt;br /&gt;
 - will answer later&lt;br /&gt;
&lt;br /&gt;
Cross-platform development&lt;br /&gt;
 - environment I&amp;#039;m developing for is different from the one in which I write code&lt;br /&gt;
   - developing on MacOS, but code will run on iOS&lt;br /&gt;
 - typically difficult, but with modern IDEs it is almost seamless&lt;br /&gt;
   - almost!&lt;br /&gt;
&lt;br /&gt;
@State variables&lt;br /&gt;
 - denotes variables that directly affect the interface&lt;br /&gt;
 - if their values change, the interface must be updated&lt;br /&gt;
&lt;br /&gt;
$ notation&lt;br /&gt;
 - in SwiftUI, means a binding to the variable should be passed&lt;br /&gt;
 - functionally it is like a pointer, but much safer, ie pass by reference not value&lt;br /&gt;
&lt;br /&gt;
&amp;quot;if let X&amp;quot;&lt;br /&gt;
 - checks whether X is nil or not&lt;br /&gt;
 - allows you to check for failed conversions, etc (e.g., if Double(s) finds that S&lt;br /&gt;
    was not a number)&lt;br /&gt;
&lt;br /&gt;
If you say &amp;quot;F = Double(Fs)&amp;quot;, F is not of type Double, it is of type Double?&lt;br /&gt;
 - it could be a double, or it could be nil&lt;br /&gt;
 - you can&amp;#039;t use  it until you check, or you force usage with !&lt;br /&gt;
   - don&amp;#039;t use !, because if you are wrong your program crashes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&lt;br /&gt;
[https://homeostasis.scs.carleton.ca/~soma/mad-2021w/code/lec02.zip lec02 xcode project]&lt;/div&gt;</summary>
		<author><name>Soma</name></author>
	</entry>
</feed>