Hacker News new | past | comments | ask | show | jobs | submit login

KVO is horrendous. KVC is occasionally nice but often greatly overused. I certainly wouldn't miss either one.



"The solution to bad metasystems is not to ban metasystems, it is to design better metasystems that allow these things in a more disciplined and more flexible way."

http://blog.metaobject.com/2016/05/what-missing-in-discussio...

See also: The Siren Call of KVO and Cocoa Bindings http://blog.metaobject.com/2014/03/the-siren-call-of-kvo-and...


Yea, I think KVO could be done better. As I recall, Ember properties were pretty neat, and had a nice way of specifying dependencies. A lot less awkward than a bunch of + (NSSet )keyPathsForValuesAffectingValueForKey:(NSString )key methods.

I'd also want more strongly typed keys, less strings everywhere. I do use NSStringFromSelector as much as I can, but strings are unavoidable in IB.

Also the handling of one-to-many dependencies could be made a lot more intuitive as well.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: