Like A Girl

Pushing the conversation on gender equality.

Code Like A Girl

Creating a new Xcode project

It’s so easy to open a new project, start coding and bring your ideas to life.

However I encourage you to pause for a moment. Do you think this project is likely to be something great in the future? Could you see yourself continuing on with this in a few months?

If the answer is yes, then you may benefit from structuring your project and setting it up well from the beginning.

Here are some steps that I follow.

  1. Initialise your project with git and connect it to a remote repository.
    New to doing that? Take a look at Part 1: add git to your new Xcode project.
    Don’t know what git means? That’s ok. Follow the above link anyway. When you are ready to learn more about git, I’ve written a beginner’s guide to Gitflow.
  2. Think about the structure and the purpose of your project. Writing a brief readme is a great way to start. Take a look at Part 2: structure your folders in Xcode.
  3. Decide on the architecture you would like to follow. Sketch some simple block diagrams if that helps.
  4. In step 2 you may have already started thinking about features. Now let’s think about the flow of the app, a.k.a. the screens or the wireframes. Sketch that out quickly.
  5. Add the pods you’d like to use. I use Alamofire and SwiftyJSON for accessing APIs. Here’s a walkthrough if you’ve never done that before.

Now you can start coding, knowing that the upfront investment you made today will be very much appreciated by Future You!