CodeCompletion.io

Episode 44: The Biggest, Richest Child

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.

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

🚧 #CompleteTheCode

This week's #CompleteTheCode:

Why is this SwiftUI code not advisable, and how can you fix it?
1
2
3
4
5
6
7
8
// 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 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.
  1. git add -p will allow you to stage hunks of code interactively from the command line.
  1. git worktree add allows you to checkout a specific branch to a separate directory.
  1. git grog generates an ascii-art graphical log showing branch points leading up to the current commit.

🎁 Sponsor

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

📺 Watch the Stream