Spent the majority of today simplifying the nastiest part of my code using C# delegates, which turns out, are very diff from Obj-C delegates
-
-
Replying to @benedictfritz
@benedictfritz Are they that different? I wouldn't call myself an Obj-C buff, but I thought they were still just callbacks1 reply 0 retweets 0 likes -
Replying to @david_laskey
@david_laskey Everything I’m about to say might be wrong. But, but in Obj-C delegates have a pretty specific pattern of use.1 reply 0 retweets 0 likes -
Replying to @benedictfritz
@david_laskey Obj-C delegates are mostly used for separating concerns – e.g. the view should not manage the data.1 reply 0 retweets 0 likes -
Replying to @benedictfritz
@david_laskey Instead the view exposes a delegate that allows the controller to manipulate the data.1 reply 0 retweets 0 likes -
Replying to @benedictfritz
@david_laskey C# delegates, in my looking-into-them-today, seem to be the main means of passing around functions.1 reply 0 retweets 0 likes -
Replying to @benedictfritz
@david_laskey In Obj-C there are blocks and selectors for that sort of work, so delegates remain more specific in use.1 reply 0 retweets 0 likes
@david_laskey But I’m no C# expert, so there could be a different way of doing that work that I just don’t know about.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.