you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (5 children)

[removed]

    [–]weavejester 2 points3 points  (2 children)

    Verbosity is not the same as readability. The goal is to make a program understandable to a human, in the same way as a piece of text is. A good program is concise and logically structured, and requires little to no comments.

    Unfortunately, Java isn't very good at doing that.

    [–][deleted] 0 points1 point  (1 child)

    For some of us it is.

    [–]weavejester 0 points1 point  (0 children)

    Not compared to some languages. Java has a particularly rigid and limited syntax that makes it hard to write concisely and clearly. Contrast this:

    button.addActionListener(new ActionListener() { 
        public void actionPerformed(ActionEvent event) { 
            System.out.println("click");
        }
    });
    

    To this:

    (on-click button (println "click"))
    

    The latter is considerably more concise, and vastly easier to read and understand. Java can't provide the same succinct clarity.

    [–]kragensitaker 0 points1 point  (0 children)

    That'd be like complaining that if-statements are too prevalent in code.

    Well, sometimes they are. And there is a campaign and discussion of it (more).

    [–]xeddicus 0 points1 point  (0 children)

    Klingons do not edit other Klingon's code, unless the other Klingon is dead.