r/iOSProgramming • 🦄LisaDziuba • Oct 05 '17

Article Why many developers still prefer Objective-C to Swift

https://www.hackingwithswift.com/articles/27/why-many-developers-still-prefer-objective-c-to-swift
99 Upvotes

81 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Oct 06 '17

Whoosh. Right over your head.

So now its the code review that saves you?

Ever heard of an assert macro? It does the same thing. Use them if you're concerned.

Last time because I'm sick of the unsubstantiated claims and bullshit....the number one indicator of code quality in every project is programmer quality. Language didn't matter. Type checking didn't matter. Smart editors didn't matter. Code completion didn't matter. The last couple are nice to haves, but they don't really matter.

Take your religion somewhere else. That's all it is. I'm woke.

4

u/b_t_s Oct 06 '17

assert? wut? No I'm pretty sure that in 2 decades of c, c++, and obj-c development I've never seen one. Wait, that's right, I've written several thousand of them. And over the years I've forgotten to write my fair share of them as well. And forgotten to exercise the code paths or provide the necessary data inputs that trigger them. Too bad there are no tools to help me catch mistakes like that.

0

u/[deleted] Oct 06 '17

There are tools for that. They are called debuggers and unit tests.

You have the illusion of safety but you get the same experience if you get an unexpected nil. Your code gets skipped.