David wrote: > A major reorg of the code would be a nice thing to do, assuming enough time > and inclination.
Time and inclination are the keys. I've got the inclination, but finding the time is the hard part as you all know. > Do you think it could be done in such a way that the code would continue to > be functional as it was being reorganized, or would we have a period of time > where the CVS enlistment would have less functionality than the > distribution? Therein lies the delima. I don't want to check in changes in that would stop any snapshot from CVS from working. I think it is possible by refactoring bit by bit, without causing DQSD to stop working or lose functionality. Testing by as many as possible as quickly as possible will be one of the keys. Again, to not lose sight of the motivation for these changes, which include: a. Get the icon problem to stop without asking the shell to ask apps to refresh their icon, because some apps simply don't respond as they should. And, even though this is really the apps responsibility, it appears as though it's DQSD's problem. b. Clean up the code so that it is easier for new programmers to figure out the flow. c. Remove dependencies on the order that scripts are included (as much as possible). Again, the problem: a. Too much activity is happening by DQSD when the shell is trying to do other work at startup. Postponing that activity until the shell has done its normal startup work would fix the problem. b. Delaying the DQSD startup activity is not possible now because script is run as it is loaded, which is not controlled by anything in DQSD other than the inclusion of the script files. How to attack this stuff... a. Moving as much global script into functions as possible, one script file at a time if possible. b. Moving the initialization of _all_ globals into a single method. Those are my quick thoughts. Your thoughts? ------------------------------------------------------- This sf.net email is sponsored by: DEDICATED SERVERS only $89! Linux or FreeBSD, FREE setup, FAST network. Get your own server today at http://www.ServePath.com/indexfm.htm _______________________________________________ DQSD-Devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dqsd-devel
