Don’t do that #20: Use too many parameters in one line (use splatting instead)

By | April 21, 2015

Don’t do that: Too many parameters in one line is hard to read and to debug:

Another “bad” way to is by using backticks (` escape character in Powershell) because it is hard to see and also because a whitespace after a backtick will return an error.


Do that: My favourite way is to use the Splatting technique (uses a hashtable to pass parameters to a command).


previous-buttonNext button blue

Leave a Reply

Your email address will not be published. Required fields are marked *