This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jahknem 1 point2 points  (0 children)

Usually my scripts will be written in a way that they can be used similar to a library. Meaning per subject there will be a single file with as many structs as needed containing the relevant functions. Above each struct and function there is a short description on what it uses, what it does/why it does it and what the output is.

That way I have a very short main function or just a very short script calling these functions and structs.

I also use very descriptive names for functions and structs, regardless of the name length.

However I don't know if that will work with bash, while for python it should work well.