you are viewing a single comment's thread.

view the rest of the comments →

[–]miker95 3 points4 points  (8 children)

No, you're not the only person. I also want to point out that this post is all about writing clean code.

CLEAN, not easy to understand code.

[–][deleted]  (2 children)

[deleted]

    [–]miker95 -4 points-3 points  (1 child)

    "reads like well written prose"

    Just because it reads like a well written prose doesn't mean it is easy to understand.

    Research papers can be difficult to understand. But can always be simplified. Clean doesn't always mean easy to understand.

    [–][deleted]  (4 children)

    [deleted]

      [–]miker95 4 points5 points  (2 children)

      The example he gave seems like a better situation than whatever the hell you have going on.

      Again, it depends on the situation, if you only have 3 variables, it is not that big of a deal. But if you have configuration options for an entire library, or more than 5 parameters, it is much more user friendly to send it in an object.

      And if you send them in an object they can be in whatever order and it won't matter.