For what I do, the description sounds like more effort than it is worth.FourthWorld wrote: ↑Thu Jan 07, 2021 11:52 pmThere may be other benefits, but these hit the highlights of why behaviors are so empowering for larger projects.
However, that is neither here nor there, since I don't use them, and therefore don't know enough about them to even speak coherently about them, for the question posed by the OP what Craig and I presented could be considered as an option and certainly is something I've used quite often.
On the other side of that, I'm not sure I'd agree this part of what Richard said was any different or better than our alternate suggestion -
I think whether your using behaviors, or whether your putting the script centrally in the message path, the above (portability) would apply equally, i.e. your still maintaining a single code base for those objects. I don't know why copy and paste is in there, neither I nor Craig suggested any such and it wouldn't be needed using the method we suggested any more than using a behavior would need it.FourthWorld wrote: ↑Thu Jan 07, 2021 11:52 pmPortability comes from externalizing code. Whether as a button script in a library stack, or a script-only stack, I can maintain a single code base where fixes benefit everything I'm working on that uses it. With traditional copy-n-paste methods I'd need to go back to each copy and update, and hope I don't forget one.
Consistent naming of controls would certainly be of benefit with the method I use, all the more so if the scripts are located farther away in the path than the group level let's say, but I think consistent naming is a benefit no matter what else you do. Even writing just straight up scripts, with in the object level, consistently naming your objects tells you at a glance the objects purpose.
However, I'm pretty sure from some of the code I've read that consistent naming of objects isn't something most people using Lc do. I sure didn't see it in any of the lessons I've read in Mc / Lc, nor have I ever seen it in any of the code I've read in any of the IDEs (unless your looking at variables).