-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Inspect the DefaultCompress Class for Changes and Improvements #94
Comments
Updated the documentation for the class description, DefaultCompress. This was long over due and the dependencies where not entirely correct previously. Because the focus will be on PowerShell Core, the documentation should reflect solely on that - not on Windows PowerShell 5.1, as that environment cannot work with PSCAT. #94
Technically, we are talking about the 'class' not the 'object'. #94
This is not truly part of this ticket, but I will go ahead an allow it so I can move forward without holding this hostage for a long period of time. #94
I know what I am trying to do, but others more technical in POSH may not. The intention was to 'think' of these hidden variables as 'Private' in the C++ world, but that principle is not extinct nor possible in POSH as the variable is always visible. #94
Instead of assigning the value during the creation of the DefaultCompress object, we will instead declare and initialize without having to use the class constructors. #94
It is strongly recommended to /_NOT_/ move these directories around as the entire program will not play nice doing so -- with that do /NOT/ encourage it. Remove the SetRootLogPath() and SetLogPath() from the DefaultCompress class. #94
Because we can assign default values of member variables when the object is created without needing a class constructor, we can assign the default values to the following member variables: $__rootLogPath, $__logPath, and $__objectGUID without needing to have the same assignment in two different constructors. #94
Despite I do not use this script file anymore, lets try not to completely forget this. #94
When the required logging directories could not be created, provide a message box and further details onto the terminal buffer for the reasoning of the error. #94
I do not think it is possible to obtain the dotNET Core anymore; I think I wrote this in the early days when dotNET Core was not entirely bundled within POSH Core? I could had swore you had to install both back in the day, but not really needed these days? Hard for me to confirm 😕 #94
- Updating documentation - $fileNameExt was never included in the initialization list - Moved the assignments for $fileName, $fileNameExt, $execReason right below the initialization list. - Provide a message box to the user when things go horribly wrong. #94
When an error occurs, present a message box to the user when something happens. #94
Revised the function such that there is no mention nor support of 'Reports', as that is no longer a feature within the class. #94
In a conversation today, I noticed - through some self reflection - that I fell into that 'perfection trap' again. I will focus on what /needs/ to be changed, but don't make it perfect - it'll never be perfect. I will look over the functions again if incase I notice something out of whack, I can make the changes as needed. Otherwise, if the changes are not necessary - I'll close this ticket and call it done. |
I will go ahead and close this ticket. |
Attaching this to #73 |
I think it is time to do one last comb over to make sure that the code is properly aligned. Make sure that the documentation and comments are correct, make sure that the code is accurate with no redundancies or superfluous statements. To perform this task on the entire class, all of the member functions will need to be inspected as we as the member variables. It would also be best to inspect the enumerators as well.
Action:
The text was updated successfully, but these errors were encountered: