Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Source Code for scripts. Coding practices. #22

Open
DHorse2 opened this issue Dec 6, 2021 · 0 comments
Open

No Source Code for scripts. Coding practices. #22

DHorse2 opened this issue Dec 6, 2021 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@DHorse2
Copy link
Owner

DHorse2 commented Dec 6, 2021

WARNING: I you want to make extensive changes and can't manually walk through code and are err... debugger reliant? you will have difficulty making modifications.
You certainly want to use an Agile or Rad methodology or more plainly, test it after each change.
It's easy to modify if you stick to this practice.

Mainly people would want to change the order of the zones or the placement of the MFT (master file table) / Dir zone group.
The Dir group it the directories without their contents. It is recommended that this be next to the MFT.

Regarding debugging:
Mydefrag writes the script to the MyDefrag.debuglog file (found in the MyDefrag installation directory) only if it contains errors. You can insert one to get a copy.

Where this can be a problem is that run times are extremely long compared to other apps.
It (normally) doesn't spend this time writing to the disk, it is selecting among millions of items on a per zone basis.
These selects are complex. They each take several minutes and take an order of magnitude longer than disk I/O.

In situations where zones are being reordered or the Gap resized it's a problem.
You can do nightly runs. Importantly, once the run starts you can continue modifying the code.
Although you may be too young to have ever worked with punch cards this will give you a feeling for it.

Patience is you friend. If you enjoy watching grass grow or paint dry you have found your place in the universe here.

@DHorse2 DHorse2 added the documentation Improvements or additions to documentation label Dec 6, 2021
@DHorse2 DHorse2 self-assigned this Dec 6, 2021
@DHorse2 DHorse2 pinned this issue Dec 6, 2021
@DHorse2 DHorse2 changed the title No Source Code for scripts. Coding practices. (Work is slowed I am off sick.) No Source Code for scripts. Coding practices. Dec 20, 2021
@DHorse2 DHorse2 changed the title (Work is slowed I am off sick.) No Source Code for scripts. Coding practices. No Source Code for scripts. Coding practices. Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant