4 ms·
Objective C will always have room in my heart, but I'll never go back to it. There's too much .h ceremony.
by pohl 10y ago
Objective C will always have room in my heart, but I'll never go back to it. There's too much .h ceremony.
- sdegutis 10y agoMeh, I've spent about 20 hours on this project so far, and I'd estimate probably 2 minutes of that time was spent managing .h files.
- yoz-y 10y agoDo you have any concerns about maintainability? So far Apple has been advancing Obj-C interfaces along with Swift, but time will probably come when some new OS features will only be available through Swift.
- sdegutis 10y agoNope. See gurkendoktor's reply to me above. I agree with his/her reasoning.
- gurkendoktor 10y agoI actually enjoy having separate files for interface and implementation. It's a pain in C++ where you have to put your implementation details (instance variables) in the header, but in ObjC, headers are pretty clean. I've noticed that my Java-based coworkers often create well-documented interfaces with only a single implementation. They claim to do it for testability, but Mockito can deal with concrete classes as well - I suspect that they secretly enjoy looking at 10 lines of code that describe what a class does :)