Using Xcode snippets during interviews

Application

Although I haven't come across it yet, I was wondering if anyone has experienced an interview where they wanted you to code up a basic view live. If they did ask you to: did they allow you to use custom snippets while prepping the view or it was expected to all be done manually.

Posted May 4, 2022, 7:45 AM UTC

17
sudo-rm-r•

I would actually see this as a plus. It means you understand xcode and know how to use it effectively to save time.

4
[deleted]•

[deleted]

1
gasigo•

I never had anyone trying to use snippets, I probably wouldn't mind unless your snippet is the whole project. If it's just things you're constantly typing and want to save time, I can't see why not.

2
[deleted]•

[deleted]

1
Fluffy_Risk9955•

A lot of the times I write very similar stuff. I've captured most of these things in snippets with some variable in it, just like when you type in a call to a function in Swift and the variables are marked. This allows me to quickly create an app in UIKit, without having to resort to 3rd party libraries that form dependencies in an app of a client.

So, yes I use snippets a lot when I'm building an app. For example the main function for an asynchronous main function in a custom NSOperation. Objective-C or UIKit? I got a snippet for both.

A class that use a lot? Snippet.

A set of classes that's used a lot? A one Swift file snippet.

CoreBluetooth? Most of the time a similar setup is required. Snippet.

Receiving KVO messages? Snippet

Results what takes a week to write from scratch now becomes a few hours at best.

2
[deleted]•

[deleted]

1
Fluffy_Risk9955•

If I hire an iOS developer I do the following. I hand the person a test assignment. To build a small app in a few days of time. Make a network call. Populate some table view and a detailview. This way I can assess the skills of the engineer. I'll review the code with things in mind like this:

  • How's the architecture?
  • How are the commits in git?

During the interview I'll ask some questions about the app like:

  • Why did you choose to use Alamofire?
  • Why did you choose this architecture?
  • But, also questions like you used final in this view controller. What does it do?

I need to see if they understand what they created. If you don't understand what you created and why, I'm not going to hire you.

2