40: Merge Commits Are Evil

Code Completion - A podcast by Code Completion

Categories:

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. Today, we discuss: Code Completion Club: https://codecompletion.io/jointheclub Indie App Spotlight, with a new app for you to check out: Billsly by Clayton Watkins (@CaptainnClayton): https://apps.apple.com/us/app/billsly/id1560270556 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: GitHub Desktop: https://desktop.github.com Git Tower: https://www.git-tower.com/mac Fork: https://git-fork.com Git Kracken: https://www.gitkraken.com What a Pull request is, and why they are useful GitHub: https://github.com GitLab: https://about.gitlab.com Bitbucket: https://bitbucket.org/product 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: https://github.com/lambdaschool/ios-git-setup Bonus: Spooning by Bitbucket: https://www.youtube.com/watch?v=8wUOUmeulNs Also, join us for #CompleteTheCode, a segment that tests your knowledge on Swift, Apple, and all things development! Your hosts for this week: Spencer Curtis Dimitri Bouniol 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 Huuungry. Search for Huuungry on the iOS App Store today to give it a try: https://apps.apple.com/app/apple-store/id1448552588?pt=14724&ct=CodeCompletion1&mt=8 Complete the Code What’s the best way to check if the file that is passed in exists or not? // 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!