I'd like to propose that Sproutcore internally adopts a policy of
failing fast and noisily instead of just silently ignoring wrong calls.
This would make debugging and finding such calls so much easier.
Some examples where I encountered this in the past:
SC.ListView caching - invalid caches where just silently corrupted /
rebuilt.
SC.View, calling .design() multiple times just ignores the other calls
sc_super() when a super method was already set on a method it was just
overwritten
There's probably more but those I remember right now.
I think that is something that should be part of the coding style for
SproutCore to make it explicit and clear also for all contributors from
outside of strobe.
Regards,
Martin
The hook will allow devs to gather information (statechart info is
particularly nice). What we should not do is silently catch an
unanticipated error and continue.
Best,
Erich Ocean
SproutCore Training and Mentoring
http://erichocean.com/training/index.html
http://erichocean.com/mentoring/index.html