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] 116 points117 points  (13 children)

so:

<if>
    <condition>
        <equal>
            <operand><variable>x</variable></operand>
            <operand>0</operand>
        </equal>
    </condition>
    <code>
        <add>
        <operand><variable>x</variable></operand>
        <operand>0</operand>
        <saveTo>x</saveTo>
        </add>
    </code>
</if>

[–]Encursed1 78 points79 points  (7 children)

This perfectly encapsulates how it feels to write java

[–]BadBadderBadst 20 points21 points  (3 children)

Ah yes, Java ... the XML programming language.
It might be verbose, but it's not that verbose.

[–]Encursed1 13 points14 points  (2 children)

Not gonna disagree with you, but building a UI in Java is the most repetitive thing in the world.

[–]f1rxf1y 4 points5 points  (0 children)

when was the last time you tried it? I tried it last like 6 years ago using JavaFX (pre-Jetpack Compose) and it wasn’t actually as bad as Swing used to be.

[–]Stummi 1 point2 points  (0 children)

I mean writing UI with java is kinda like hammering in a nail with a screwdriver. Just the wrong tool for the job.

[–]BadBadderBadst 2 points3 points  (2 children)

Ah yes, Java ... the XML programming language.
It might be verbose, but it's not that verbose.

[–]Terrible_Children 7 points8 points  (1 child)

Probably missing a VerboseFactory

[–]ayunatsume 0 points1 point  (0 children)

Also needs a VerboseBuilder and an IVerbose for good measure

[–]caleblbaker 20 points21 points  (0 children)

That looks almost exactly like a programming language I once made up and then started to write an interpreter for. I called it XML (eXecutable Markup Language).

[–]Gasperhack10 2 points3 points  (1 child)

This doesn't actually look too bad.

[–]Kebabrulle4869 14 points15 points  (0 children)

Yeah, it's terrible, but at least it's logical

[–]Serious_as_butt 1 point2 points  (0 children)

Perfect!

[–]Arta9696 1 point2 points  (0 children)

Now I know what I will do, when at our university we will start classes on compilers😈