I was recently changing a method to add in an additional parameter, and I couldn't help but wonder if there were "best practices" or "generally accepted rules" in deciding what order parameters of a method should go in? Obviously, you could put it in any order you like... I'm more wondering if there are any official (or unofficial) guidelines for this. My particular language is Java but I'm thinking this could apply to any language with arguments.
Example Parameter List:
public String generateMessage(Object o, String prefix, String suffix)
//generates a message such as: "prefix : objectName : suffix"
I am adding a boolean, which is whether the prefix should be shown.
public String generateMessage(Object o, String prefix, boolean isPrefixVisible, String suffix)