(no title)
zump | 9 years ago
Seriously, the worst feeling ever is tracing through a huge function tree, only to run into function pointer dereference. Then you have to go on a wild goose chase to find out when, where and what it will be assigned to.
STATIC TYPES PEOPLE.
pwdisswordfish|9 years ago
zump|9 years ago
dllthomas|9 years ago
What you are asking for is much more closely related to static dispatch than static typing.
dahart|9 years ago
What's most interesting about your point is that what the article suggests -- naming and de-nesting callbacks -- is in a way what you're warning against. By naming it and physically moving it, execution that was contained within a single block of code is now jumping around, and can move to other places where you have to go looking.
Even though it's considered an anti-pattern for good reasons, there are some advantages to nested callbacks.
MrBuddyCasino|9 years ago