<?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_6</id>
	<title>Mobile App Development 2021W Lecture 6 - 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_6"/>
	<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Mobile_App_Development_2021W_Lecture_6&amp;action=history"/>
	<updated>2026-04-06T04:00:40Z</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_6&amp;diff=22882&amp;oldid=prev</id>
		<title>Soma: /* Video */</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Mobile_App_Development_2021W_Lecture_6&amp;diff=22882&amp;oldid=prev"/>
		<updated>2021-01-27T19:49:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Video&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:49, 27 January 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Video==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Video==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The video from the lecture given on January 27, 2021 [https://homeostasis.scs.carleton.ca/~soma/mad-2021w/lectures/comp1601-2021w-lec06-20210127.m4v is now available].&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Notes==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Notes==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Soma</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Mobile_App_Development_2021W_Lecture_6&amp;diff=22881&amp;oldid=prev</id>
		<title>Soma: Created page with &quot;==Video==  ==Notes==  &lt;pre&gt; Lecture 6 ------------  Domain specific languages (DSL)  - versus general purpose languages  - language designed to specify solutions in a specific...&quot;</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Mobile_App_Development_2021W_Lecture_6&amp;diff=22881&amp;oldid=prev"/>
		<updated>2021-01-27T18:06:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Video==  ==Notes==  &amp;lt;pre&amp;gt; Lecture 6 ------------  Domain specific languages (DSL)  - versus general purpose languages  - language designed to specify solutions in a specific...&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;
==Notes==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lecture 6&lt;br /&gt;
------------&lt;br /&gt;
&lt;br /&gt;
Domain specific languages (DSL)&lt;br /&gt;
 - versus general purpose languages&lt;br /&gt;
 - language designed to specify solutions in a specific domain&lt;br /&gt;
 - SwiftUI can be thought of as a DSL&lt;br /&gt;
   - syntax and semantics are specific to SwiftUI, sometimes in non-obvious ways&lt;br /&gt;
- but swiftUI is implemented in Swift&lt;br /&gt;
  - so must follow Swift syntax as well&lt;br /&gt;
&lt;br /&gt;
DSLs are everywhere in CS, but nowadays we tend to do APIs instead&lt;br /&gt;
&lt;br /&gt;
APIs are used to express solutions to a specific problem&lt;br /&gt;
 - but they don&amp;#039;t introduce new syntax, just semantics&lt;br /&gt;
&lt;br /&gt;
API = application programming interface&lt;br /&gt;
 - essentially, any library defines an API&lt;br /&gt;
&lt;br /&gt;
forEach&lt;br /&gt;
 - used to loop, like for&lt;br /&gt;
 - but you normally specify an array and a function&lt;br /&gt;
    - the function is then run on each element of the array in turn&lt;br /&gt;
 - so it is close to map operation&lt;br /&gt;
    - but maps return an array of return values&lt;br /&gt;
    - forEach has no return value&lt;br /&gt;
 - you don&amp;#039;t explicitly specify the number of iterations&lt;br /&gt;
   - but it is implicitly defined by the size of the array passed in&lt;br /&gt;
   - nice because you don&amp;#039;t have to think about figuring out the size of the array&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
Objective C&lt;br /&gt;
 - we&amp;#039;re not covering Obj-C in class&lt;br /&gt;
 - but it is important to know about when doing iOS development&lt;br /&gt;
&lt;br /&gt;
Swift was designed to be a modern language, but had to interoperate with Obj-C&lt;br /&gt;
&lt;br /&gt;
So, what was Obj-C missing?&lt;br /&gt;
  - safety&lt;br /&gt;
&lt;br /&gt;
C isn&amp;#039;t safe&lt;br /&gt;
 - unrestricted memory access&lt;br /&gt;
 - C programs segfault (crash)&lt;br /&gt;
 &lt;br /&gt;
Obj-C isn&amp;#039;t safe&lt;br /&gt;
 - only runtime verification of messages&lt;br /&gt;
&lt;br /&gt;
Objective C is C plus runtime messages (specified with [ ] syntax)&lt;br /&gt;
 - directly inspired by Smalltalk&lt;br /&gt;
 - smalltalk, everything is an object, and objects communicate through messages&lt;br /&gt;
   - &amp;quot;purest&amp;quot; of the object-oriented languages&lt;br /&gt;
&lt;br /&gt;
The lack of safety in Obj-C makes it very flexible, but can create problems for less experienced programmers and can cause problems at scale&lt;br /&gt;
&lt;br /&gt;
Modern languages try to catch as many problems at compile time as possible&lt;br /&gt;
 - hence, optional types&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Soma</name></author>
	</entry>
</feed>