3 ms·
The Objective-C community also has a language that allows all sorts of weirdness and also (perhaps in part because of that freedom) has a uniquely pervasive emp
by glhaynes 12y ago
The Objective-C community also has a language that allows all sorts of weirdness and also (perhaps in part because of that freedom) has a uniquely pervasive emphasis on convention. Wacky stuff is tolerated and even appreciated in the appropriate contexts but generally shunned and avoided otherwise. It seems likely that the Swift community (overlapping in such large part with the Objective-C community) will inherit this.
- SmileyKeith 12y agoWhat are you thinking about specifically?
- glhaynes 12y agoWith regard to Objective-C's ability for weirdness? Its dynamic nature could easily lead to really weird/surprising process flow. It seems like lots of developing Obj-C programmers know about method swizzling but I wouldn't necessarily expect a similarly-experienced C++ programmer to be familiar with such things in practice. On the conventionality side: Cocoa is known for its consistency in naming and behavior.
- SmileyKeith 12y agoSwizzling is a weird one in the community. But if I see #import <objc/runtime.h> something has gone wrong (you have to include that for swizzling and other seemingly dangerous stuff)
- mpweiher 12y agoI think it's perfectly fine for meta-level code. Such meta-level code should be encapsulated well and be very useful.