Aug
11
2007
Model Glue Tips Part 2: Use Naming conventions for your Event Handlers.
Posted by Mark Drew at 10:00 AM
4 comments - Categories:
model-glue
Posted by Mark Drew at 10:00 AM
4 comments - Categories:
model-glue
Mark Drew wrote on 09/22/08 4:13 PM
I might touch on that, but I just wanted to give some tips, rather than some major insights in this series :)johann wrote on 09/22/08 4:13 PM
I completely agree with a good naming convention for your event handlers. In the MG app that I work on every day, there are many "sub apps" within it and I don't know how we would have kept track of all the events without a naming convention like you mentioned. Also, we would probably have collisions on duplicate event names if we did not have a naming convention.Mark Drew wrote on 09/22/08 4:13 PM
Naming conventions are indeed a "Good Thing (tm)". I think the first time I encountered this kind of thing was in Fusebox, of course it used the <circuit>.<fuseaction> which meant there were no collisions since it was all based on switches (and you cant have two case statements for the same variable)
sal wrote on 09/22/08 4:13 PM
part 3 coming up? perhaps some subapplications??;-)
good series.
cheers