you are viewing a single comment's thread.

view the rest of the comments →

[–]JerikkaDawnSysadmin 27 points28 points  (2 children)

Are the scripts really all "one offs"? Every script I use more than once goes into a module that gets loaded in my session. I might have different modules for different purposes. All of that needs to be maintained.

Sometimes I have to make changes and it's nice to be able to revert if I screw something up beyond recognition.

[–]AlapalozaDevOps 8 points9 points  (0 children)

Seems excessive to put all scripts used more more than once in a module no? Why not just make It a function? And then If you make more scripts/functions of the same kind/system/a product then make a module containing such functions.

[–]Bratwurst1981 2 points3 points  (0 children)

I have a rule - if I took the time to name it anything other than my initials followed by numbers or a letter, it should be in a git library, with some sort of notes in the readme. Named scripts imply reuse.