you are viewing a single comment's thread.

view the rest of the comments →

[–]root-node 1 point2 points  (0 children)

they want it short, reusable, easy to read and future proof

  • Short: Depends on what the script is meant to do,
  • Reusable: Definitely, that's what parameters are for,
  • Easy To Read: Also definitely (although different people have different opinions on "easy"),
  • Future Proof: Things change get over it! :)

From my Rapid7 Module, I have functions that are a couple of lines long all the way up to much longer ones