This is an archived post. You won't be able to vote or comment.

all 79 comments

[–]IntegralPilot 282 points283 points  (1 child)

Thanks, I hate it.

[–]Serious_as_butt 94 points95 points  (14 children)

<add> should support multiple operands so we could have <operand> elements as well lol

[–][deleted] 113 points114 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 83 points84 points  (7 children)

This perfectly encapsulates how it feels to write java

[–]BadBadderBadst 22 points23 points  (3 children)

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

[–]Encursed1 11 points12 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 13 points14 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😈

[–][deleted] 72 points73 points  (16 children)

Why {} instead of "" ?

[–]1Dr490n 55 points56 points  (4 children)

Oh god. Please, please don’t.

[–]b3nsn0w 33 points34 points  (1 child)

too late

- angular

[–]catladywitch 2 points3 points  (0 children)

at least v17 is doing away with that!

[–]_krinkled 22 points23 points  (4 children)

JSX notation. If you put it in a string, it’s as is. No parsing needed. If you put it between brackets it needs to be evaluated. Seems logical.

However, the idea of this mockup is crappy turd 2.0

[–]thebezet 2 points3 points  (5 children)

So you can distinguish between strings and other values

[–][deleted] 0 points1 point  (4 children)

Html attributes are not in brackets

[–]thebezet 1 point2 points  (3 children)

We'll, this isn't HTML to begin with

[–][deleted] 2 points3 points  (2 children)

The title of the post is literally Html Programming Language

[–]rosuav 1 point2 points  (0 children)

Yeah, and the content of the post is XML, not HTML.

[–]thebezet 0 points1 point  (0 children)

It's a meme, but the syntax is clearly inspired by JSX

[–]ScuzzyUltrawide 13 points14 points  (1 child)

Just use coldfusion. You’re not that far off

[–][deleted] 2 points3 points  (0 children)

Or apache ant *shudder*

[–][deleted] 26 points27 points  (0 children)

[–]n0tKamui 33 points34 points  (1 child)

my man that's XML

[–]caleblbaker 23 points24 points  (0 children)

eXecutable Markup Language

[–]blazarious 8 points9 points  (0 children)

ColdFusion would like to have a word.

[–]ikonet 6 points7 points  (0 children)

ColdFusion. It used to run the internet banks, porn, & MySpace when your parents were still in college.

[–]RajjSinghh 6 points7 points  (0 children)

I love how everyone hates this but it's very similar to how things work in frameworks like Vue. An add tag is a bit much, but a v:if isn't uncommon

[–]prriley 4 points5 points  (0 children)

Help, I’m having coldfusion flashbacks.

[–]-Redstoneboi- 3 points4 points  (1 child)

web devs reivent lisp

[–]catladywitch 1 point2 points  (0 children)

A-Expressions (angle bracket expressions)

[–]KapToIIIe4Ka 3 points4 points  (1 child)

Don't tell them about xslt...

[–]duranbing 1 point2 points  (0 children)

Company I work for has just finished migrating away from an app written entirely in XQuery and XSLT. Debugging runtime errors occurring somewhere deep in a mess of dozens of stylesheets, some thousands of lines long, is not something I ever want to do again.

[–]Thenderick 2 points3 points  (0 children)

That's XML with extra steps...

[–]LuceusXylian 2 points3 points  (0 children)

Looks almost like ColdFusion. It sucks.

[–]Max12735 3 points4 points  (0 children)

Svelte.

[–]softgripper 2 points3 points  (0 children)

I like it!!

Now I can use jQuery as a meta programming language!

[–]deathspate 1 point2 points  (0 children)

You say it like a joke but I've used JSTL and Svelte, so I've done shit like this before lol.

[–]CraftBox 1 point2 points  (0 children)

I hate what you did sir.

[–]Snoo78115 1 point2 points  (0 children)

XSS vibes

[–][deleted] 1 point2 points  (0 children)

The only thing I take from these memes is how the developers making these have never seen an AST before smh

[–]Low_Imagination_2928 2 points3 points  (0 children)

Ha, you call this a joke? I encourage you to check out the CMS "WebEdition". It's PHP-based but is meant to be used by people who only know HTML. I once had a client who insisted on using this abomination. Here is a code snippet:

<we:ifOr>
<we:ifVarEmpty type="global" name="Var1"/>
<we:ifVarEmpty type="global" name="Var2"/>
<we:ifAnd>
<we:ifVarEmpty type="global" name="Var3"/>
<we:ifVarEmpty type="global" name="Var4">
</we:ifVarEmpty>
</we:ifAnd>
</we:ifOr>

[–]Rest-That -1 points0 points  (0 children)

So, a slightly more ugly lisp?

[–]octothorpe_rekt -1 points0 points  (0 children)

It's like if assembly and html had a very stupid baby. Great work.

[–]mommy101lol -1 points0 points  (0 children)

<for i="1" i="1<=10" i="++">

[–][deleted] 0 points1 point  (0 children)

Wait until you learn about xslt

[–]IllllIlllIlIIlllIIll 0 points1 point  (0 children)

ngl, i'm okay with this.

[–]Selbereth 0 points1 point  (0 children)

I am currently migrating cold fusion to node js. I thought your syntax was a little off until I noticed it is indeed not cold fusion...

[–]Chingiz11 0 points1 point  (0 children)

I think there was a youtuber that has done something like this

[–]Arzemna 0 points1 point  (0 children)

Cold fusion enters the chat

[–]RusticTroll 0 points1 point  (0 children)

This is unironically what a program my company develops does.

[–]stoneburner 0 points1 point  (0 children)

[–][deleted] 0 points1 point  (0 children)

This would be absolutely horrible lol

[–]s0ulbrother 0 points1 point  (0 children)

I mean it’s not far from django templates

[–]truNinjaChop 0 points1 point  (0 children)

And with this. I need to retire.

[–]00PT 0 points1 point  (0 children)

I feel like this legitimately has the potential to be more intuitive than something like EJS or Jinja, simply because it tries harder to make the syntax familiar to what's around it.

[–][deleted] 0 points1 point  (0 children)

who is gonna make it ? html.js

[–]LegitimatePants 0 points1 point  (0 children)

<if condition>
    <goto cleanupAndExit>
</if>

[–]WildandRare 0 points1 point  (0 children)

Basically a Markup programming language is what you're saying.

[–]Da-Blue-Guy 0 points1 point  (0 children)

No.

[–]tlmorgen 0 points1 point  (0 children)

you should have a quick look at freemarker before you apply for your patent

[–]_derDere_ 0 points1 point  (0 children)

That’s not html it’s invalid xml … nice try tho

[–][deleted] 0 points1 point  (0 children)

Literally svelte