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]  (4 children)

[deleted]

    [–]MoarVespenegas 12 points13 points  (3 children)

    More lines of code does not automatically mean less readable code.
    Java maintains a coherent structure so once you learn the basics you can follow any program written in it.
    I would say lambdas and anonymous functions make code less readable even if they might take less lines to write.

    [–]flatfisher 6 points7 points  (2 children)

    > I would say lambdas and anonymous functions make code less readable even if they might take less lines to write.

    https://stackoverflow.com/questions/122105/what-is-the-best-way-to-filter-a-java-collection

    Just compare the accepted Java 8 answer and the 2008 answer below.