I'm wondering, who out there is still actively developing using selector 
methods?

For a long time now (way back since v6, perhaps even before that...) I have 
tended to encapsulate all of my code into Project Methods such that Form and 
Object level methods consist of nothing more than a Case...End Case block of 
Form Events that then then call an appropriate Project Method. We all pretty 
much work at some time or another with legacy code that usually has no 
conventions whatsoever. Any new code I add to such a codebase will follow the 
selector method convention.

Do you still adhere to the selector method philosophy or have you moved onto an 
alternative 4D programming style? If so, can you describe it and why you have 
found it a better approach than selector methods? It's easy to stick with old 
ways and not adapt to better approaches so I'm interested to learn and explore 
better techniques within 4D.

One of the reasons I am asking this question is that many years ago there was 
the wonderful QuickCode Pro plugin written by Aparajita which sadly ceased 
working with 4D v6, I think. As I recall, prior to that Aparajita had 
privileged access to the 4D source code to enable QCP to work its magic but at 
some point that access was rescinded and QCP sadly reached EOL. QCP was perfect 
for navigating selector methods using the Case tool as this technique often 
results in large methods.

With 4D 2003, I started to write my own QCP toolbar replacement using native 
4D, at the time using the DynamicStructure plugin (that too has disappeared now 
I think) and some other tricks to read and parse method source code. With newer 
versions of 4D some new possibilities have opened up and I am considering 
re-visiting this project in theory without needing to rely on any external 
plugins. Does anybody already have something like this that that they have 
written for their own use? Would anybody be interested in such a 4D component?

Thanks for your thoughts and input.

Regards,
 
Narinder Chandi,
ToolBox Systems Ltd.
-- 



**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to