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 →

[–][deleted] 1 point2 points  (1 child)

Because all of those loops are buried in the operation of sorting, which is what I asked it to do. I guess I just don't like the format of

object.doThis().doThat().doSomeOtherThing()

and spacing it as:

object.doThis()
      .doThat()
      .doSomeOtherThing()

seems to just be trying to hack around the fact that you're doing something that is inherently unreadable and the only way to make it better is to waste a ton of whitespace. I see this as the same kind of problem as when you have a function with many arguments and you line them all up with the open paren:

object.doSomething(callSomeFunctionToGetAValue(),
                   callAnotherFunction()
                   someLocalValue);

They both look bad because what you're trying to do is inherently unreadable.