CodeCompletion.io

Episode 7: Code Completion SE

Welcome to Code Completion, Episode 7! We are a group of iOS developers and educators hoping to share what we love most about development, Apple technology, and completing your code on this brand new show!

Follow us @CodeCompletion on Twitter to hear about our upcoming livestreams, videos, and other content.

Be sure to also sign up to our monthly newsletter, where we will recap the topics we discussed, reveal the answers to #CompleteTheCode, and share even more things we learned in between episodes.

You are what makes this show possible, so please be sure to share this with your friends and family who are also interested in any part of the app development process.

⭐️ This Week's Topics

  • iOS 14's rushed release.
  • New Features in Swift 5.3.
  • The A14 making it's debut on iPad before iPhone.
  • The return of Touch ID on the iPad's top button.
  • The new Apple One subscription service.

🚧 #CompleteTheCode

This week's #CompleteTheCode:

The code below will output Hello, Ben!. How would you change line 3 so it outputs Hello, Dimitri! instead?
1
2
3
4
5
6
7
8
9
10
11
var name = "Dimitri"

var introduce = {
    // What change can you make to the above line
    // to output "Dimitri" rather than "Ben"?
    print("Hello, \(name)!")
}

name = "Ben"

introduce()

Be sure to tweet us with hashtag #CompleteTheCode if you know the answer!

⚠️ Compiler Error

  1. Introduced in 1987, the Macintosh SE was a Special Edition of the 128k Mac that was the first Mac to offer a color display as an option, although limited to 8 bits.
  1. Introduced 2 years later as a processor update of its predecessor, the Macintosh SE/30 was unofficially expandable to a whopping 128 MB of RAM, an amount that was greater than many future models, and its board and front panel were available as official upgrades for the original Macintosh SE.
  1. A surprise to many, the SE naming made a comeback in 2016 as the iPhone SE, a Special Edition of iPhone 6S that used the iPhone 5S case, and would mark a new tier of low-cost iPhones with up-to-date components.
  1. Available today, the Apple Watch SE follows in the footsteps of the iPhone SE, but rather than use the internals of the flagship Series 6, it is instead closer to a limited variant of the Series 5, with an S5 package on a chip, but without an always-on display and electrocardiogram sensor.
Compilation Results

This time, Johnny went first, followed by Fernando and Ben. Let's see how they did!

4. Available today, the Apple Watch SE follows in the footsteps of the iPhone SE, but rather than use the internals of the flagship Series 6, it is instead closer to a limited variant of the Series 5, with an S5 package on a chip, but without an always-on display and electrocardiogram sensor.

Everyone thought this was true, and given the timing, it would be surprising if they didn't, making this one a code completion! Learn More →

3. A surprise to many, the SE naming made a comeback in 2016 as the iPhone SE, a Special Edition of iPhone 6S that used the iPhone 5S case, and would mark a new tier of low-cost iPhones with up-to-date components.

Fernando wasn't so sure about this one and detected some code smell, but it was also a code completion after all! Learn More →

2. Introduced 2 years later as a processor update of its predecessor, the Macintosh SE/30 was unofficially expandable to a whopping 128 MB of RAM, an amount that was greater than many future models, and its board and front panel were available as official upgrades for the original Macintosh SE.

Johnny wasn't too sure about the first two, but picked this one instead, which was unfortunate since it was also a code completion! Learn More →

Which leaves…

1. Introduced in 1987, the Macintosh SE was a Special Edition of the 128k Mac that was the first Mac to offer a color display as an option, although limited to 8 bits.

…which Ben could not believe, since it was the compiler error! Although color displays were available for some earlier Apple computers, they would not make it to the Macintosh line for a few more years due to memory and processing requirements. Not only that, “SE” did not stand for “Special Edition”, but “System Expansion”! Learn More →

🎁 Sponsor

This week's episode of Code Completion is brought to you by Super Easy Timer! Search for Super Easy Timer on the Mac App Store today to give it a try!

📹 Watch the Stream