Model Glue Tips Part 2: Use Naming conventions for your Event Handlers.
August 11, 2007 ·
Continuing from the previous post, I wanted to talk about naming conventions, I am sure everyone has a way of doing this and will argue (a bit like IDE or OS wars) till they are blue in the face. This is the way I try and do it, maybe because I started out using fusebox, but it makes sense to me.
If you have split out your Model Glue file as mentioned in my previous post, you will already have event-handlers that deal with different areas of your application, why not do the same with the event handlers, then you can see exactly what you are dealing with.
For example, if we are doing Security related functions (in my ModelGlue_Security.xml file) it makes sense to name the event-handlers something like "security.dologin" or "security.dologout" then you will be able to see exactly what part of the application you are dealing with.
I hope this makes sense and is useful!
Tags: model-glue








5 responses
1 sal // Sep 22, 2008 at 4:13 PM
;-)
good series.
cheers
2 Mark Drew // Sep 22, 2008 at 4:13 PM
MD
3 johann // Sep 22, 2008 at 4:13 PM
johann
4 Mark Drew // Sep 22, 2008 at 4:13 PM
5 Boyloasse // Jul 21, 2011 at 10:26 PM
Excellent web site. A lot of helpful information here. I am sending it to several pals ans also sharing in delicious. And obviously, thank you in your sweat!
hello!,I really like your writing very so much! proportion we keep up a correspondence extra about your article on AOL? I need a specialist in this house to resolve my problem. May be that is you! Taking a look forward to look you.