Episode 44
The Biggest, Richest Child
August 31st, 2021
1 hr 6 mins 30 secs
Season 1
Tags
About this Episode
Welcome to Code Completion, Episode 44! We are a group of iOS developers and educators hoping to share what we love most about development, Apple technology, and completing your code!
Follow us @CodeCompletion on Twitter to hear about our upcoming livestreams, videos, and other content.
Today, we discuss:
- Code Completion Club: https://codecompletion.io/jointheclub
- Indie App Spotlight, with a new app for you to check out:
- Music Info by Jordan Hipwell (@JordanHipwell): https://jordanhipwell.com/MusicInfo/
- Our thoughts on Apple’s CSAM strategy
- Hot off the press: Apple’s class action settlement with US Developers: https://www.apple.com/newsroom/2021/08/apple-us-developers-agree-to-app-store-updates/
- Panic’s workaround: https://twitter.com/cabel/status/1366878238539087872
- Dice by PCalc: https://pcalc.com/dice/
Also, join us for #CompleteTheCode and Compiler Error, two segments that test both your knowledge and our knowledge on Swift, Apple, and all things development!
Your hosts for this week:
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.
Sponsor
This week's episode of Code Completion is brought to you by Pennant. Go to https://apps.apple.com/app/apple-store/id622463230?pt=1765080&ct=CodeCompletion&mt=8 today to check it out!
Complete the Code
Why is this SwiftUI code not advisable, and how can you fix it?
// Why is this SwiftUI code not advisable, and how can you fix it?
var body: some View {
if isLoggedIn {
Text("You are logged in!")
} else {
Text("You must first log in!")
}
}
Be sure to tweet us with hashtag #CompleteTheCode if you know the answer!
Compiler Error
This week's Compiler Error has a theme: Git commands!
1 - git whatchanged --since="2 weeks ago"
will show a log of commit messages that have been made since 2 weeks ago.
2 - git add -p
will allow you to stage hunks of code interactively from the command line.
3 - git worktree add
allows you to checkout a specific branch to a separate directory.
4 - git grog
generates an ascii-art graphical log showing branch points leading up to the current commit.