britechguy
Well-Known Member
- Reaction score
- 5,133
- Location
- Staunton, VA
I tried this today for the first time. I'm a decent coder for Command Prompt batch scripts, but it's freakin' tedious to create them entirely by-hand and from scratch. One of the screen readers I work with allows a single installed instance on any given computer, and each user's configuration for it are kept under their %APPDATA% folder. At the same time, one can have as many instances as one wishes of portables for the same screen reader, and all user configuration data is in a folder named userConfig that resides under the portable's root folder.
I wanted to whip something up that allowed the transfer of the user configuration from any portable instance to the correct location under %APPDATA% folder for that user. Based upon about 12 lines of pseudocode, it not only generated a fully functioning BAT script, but also alerted me to a couple of things that I neglected to do that would make the process more robust.
Yes, you've got to review the stuff, but it is "creation at the speed of light," even with post-generation vetting, compared to creating the same thing from scratch.
It's also a realtime demonstration of the meaning of the observation I posted earlier today:
Most problems precisely defined are already partially solved.
~ Harry Lorayne, Memory Makes Money
. . . with the pseudocode being the precisely defined logic laying out what is to be done.
I wanted to whip something up that allowed the transfer of the user configuration from any portable instance to the correct location under %APPDATA% folder for that user. Based upon about 12 lines of pseudocode, it not only generated a fully functioning BAT script, but also alerted me to a couple of things that I neglected to do that would make the process more robust.
Yes, you've got to review the stuff, but it is "creation at the speed of light," even with post-generation vetting, compared to creating the same thing from scratch.
It's also a realtime demonstration of the meaning of the observation I posted earlier today:
Most problems precisely defined are already partially solved.
~ Harry Lorayne, Memory Makes Money
. . . with the pseudocode being the precisely defined logic laying out what is to be done.