Failed an interview code challenge (Swift). Would some kind developer look at my code and give me some pointers?

1st off, sorry about not passing. I did one a while back, it was 2 hrs 1st run, 24 hrs later submit whatever additional you want to submit.

I too focused on getting the logic to work. It was a "connect four" game and I've only done a few tutorials years ago for game, my focus is business logic.

I haven't gone thru all the code, but I'm not on Xcode 8 so I got tons of errors, looks like Swift 3 was quite an update :D

I'll go thru the code and go thru the comments here and see what I can come up with.

Just wondering why you spend 7 hrs then submitted 2 days later? The other question did you do this from any tutorial or was their any rules about going out and doing a tutorial?

The reason I ask, (please understand that I'm no interview expert) but it seems like they were asking for quite a bit for a 'quickie' app. I guess that depends on if you've ever done a Reddit reader, I never have.

The other reason for asking is that if it was 7 hrs of your work, then waiting 2 days might imply that it was 2 days of your work. At that point, someone could have found a great tutorial on Reddit readers complete with code and could have done that (I'm not saying you did).

I did mine 100% without any google lookup or tutorial. I just had to get a clear exp of the rules. That was clear by the code that I made, there was a faster way to go, but I didn't want to use other people's code.

You mentioned that you didn't focus on the UI, if it was 7 hrs and you took 2 days, why didn't you do up some nice UI? UI is pretty important for an app to move.

I asked on my challenge about UI vs logic, he said focus on the logic. (that's good for me as my UI stuff is dated :D)

Again, I'll look at the code and read the comments, I haven't done much in Swift 3 yet.

/r/iOSProgramming Thread Parent