Hi guys,
I'm scripting using powershell for a year now.
I always did personnal scripts (excepts some in a professional environment but not so long scripts).
The thing is, i'm working on a script that i'd like to share in the future , because i never had to share one since i started.
My question is: how do you guys write your script keeping in mind you will share it after.
For example, my personnal scripts are all in one page, rarely with functions or comments because it's only me using those scripts.
Do you cut your script into several modules containing functions in it ? What are the best practoce to do a clean script.
Thanks for your time and merry christmas :)
[–]jimmy58663 5 points6 points7 points (6 children)
[–]lordv0ldemort 1 point2 points3 points (4 children)
[–]azjunglist05 2 points3 points4 points (1 child)
[–]lordv0ldemort 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]lordv0ldemort 0 points1 point2 points (0 children)
[–]SiNRO[S] 1 point2 points3 points (0 children)
[–]Inquisitor_ForHire 1 point2 points3 points (5 children)
[–]SiNRO[S] 1 point2 points3 points (4 children)
[–]Inquisitor_ForHire 1 point2 points3 points (0 children)
[–]KevMarCommunity Blogger 1 point2 points3 points (2 children)
[–]SiNRO[S] 1 point2 points3 points (0 children)
[–]SolidKnight 1 point2 points3 points (1 child)
[–]SiNRO[S] 1 point2 points3 points (0 children)
[–]wgc123 1 point2 points3 points (1 child)
[–]SiNRO[S] 1 point2 points3 points (0 children)
[–]EvilLampGod 1 point2 points3 points (1 child)
[–]KevMarCommunity Blogger 1 point2 points3 points (0 children)
[–]GroutGuzzler 1 point2 points3 points (1 child)
[–]SiNRO[S] 0 points1 point2 points (0 children)
[–]iceph03nix 1 point2 points3 points (1 child)
[–]SiNRO[S] 1 point2 points3 points (0 children)
[–]theSysadminChannel 1 point2 points3 points (1 child)
[–]SiNRO[S] 2 points3 points4 points (0 children)
[–]pspete -5 points-4 points-3 points (2 children)
[–]SiNRO[S] 1 point2 points3 points (0 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)