Episode 40: Merge Commits Are Evil
Welcome to Code Completion, Episode 40! 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
- Join the Code Completion Club at https://codecompletion.io/jointheclub!
- Indie App Spotlight, with a new app for you to check out:
- The need for git as a modern developer
- Basic usage of git
- MacOS versioning is similar but different
- Using Git as a note taking tool (in the command line, preferably) to get more comfortable with it.
- Good commit messages and staging
- Setting up a global git ignore file
- Git Apps:
- Doing a self reviews before having others review your code
- Setting up branch protections to keep from messing up
- Dimitri’s Git starter link and wiki
- Bonus: Spooning by Bitbucket
🚧 #CompleteTheCode
This week's #CompleteTheCode:
Assuming these steps need to be performed in the order they are presented, how would you improve this code?
1 2 3 4 5 6 7
// Assuming these steps need to be performed in the order // they are presented, how would you improve this code? let results = array .map { $0.path } .filter { $0.hasPrefix("/Documents") } .compactMap { $0.components(separatedBy: "/").last } .prefix(maxEntries)
Be sure to tweet us with hashtag #CompleteTheCode if you know the answer!
🎁 Sponsor
This week's episode of Code Completion is brought to you by Huuungry. Click here or search for Huuungry on the iOS App Store today to give it a try.