There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

mathemachristian ,

I will never understand how XML came into being when lisp already existed.

alokir ,

I don’t either)))))))))

xmunk , (edited )

(reminds (it (of (story me))))

Hupf ,
Pipoca ,

Would you really rather see <Foo> than )?

There’s a reason why most popular languages use } rather than end if or fi. The added verbosity doesn’t actually help people read your code more than e.g. indentation or editors with paren matching or rainbow parens.

bjoern_tantau ,
@bjoern_tantau@swg-empire.de avatar

This is not HTML. It isn’t even XML. It’s not as bad as designers putting “code” into ads, but it’s close.

Also, ever heard of XSLT?

LukeChriswalker ,

I mean it’s valid XML

It’s just not useful

bjoern_tantau ,
@bjoern_tantau@swg-empire.de avatar

It isn’t valid XML. No root node.

LukeChriswalker ,

We may just not see it but fair point

0x0 ,

The editor would need to start counting lines at zero.

bjoern_tantau ,
@bjoern_tantau@swg-empire.de avatar

The line numbers show us that we’re seeing the whole file.

LukeChriswalker ,

Oh ur right

Ew I didn’t notice

That’s awful

Joe_0237 ,

They only (probably) show us that we are seeing the begining of the file. Also relative line numbing is a thing in vim for example.

jaybone ,

Could it be an xml entity (or whatever it’s called) that you reference from another xml file? Do those require root nodes?

walter_wiggles ,

You should check out this new project, supposed to be twice as fast as HTML. It’s called XHTML.

LinuxSBC ,

I thought that was the HTML used by Twitter.

squaresinger ,

I recently had to work with XSLT (may it’s inventor burn in hell for their crimes).

That’s pretty much programming in XML. It’s probably the worst possible thing.

LukeChriswalker ,

XSLT is fine

If you have a program generate it

squaresinger ,

Sadly, it was done manually. I had to migrate it to this brand new bleeding edge technology, Apache Velocity. That’s not great either, but it’s much less terrible than XSLT.

For that task I had to learn two templating languages at the same time to port it from one to the other. Wasn’t an easy task.

aksdb ,

Pff. I know someone who generated programs using XSLT.

GigglyBobble ,

Can't even imagine. I've got fed up by the short time I had to configure Maven in plain xml...

shasta ,

Is there another way?

squaresinger ,

Yes, there is: github.com/takari/polyglot-maven

I am just not sure if that’s much better. Maven is just a huge pain in the rear.

Hazzia ,

Bro the project I’m on uses XSLT and the first time I saw it I legitimately thought I was having a stroke because I could not accept that anybody would be stupid and/or masochistic enough to actually want something like that.

However, I’ve now made it my mission to master it because it makes me feel like a high-born wizard speaking of ancient secrets in a tower high above humanity

squaresinger ,

I totally know that feeling :)

Well, in the 90s, XML was the future. Luckily, not a lot of this future remains.

Just imagine what HTML would be like if JSON had been available back then.

dan ,
@dan@upvote.au avatar

This reminds me of Apple plist files, which appear to have been invented by someone that doesn’t know how XML works.

SubArcticTundra ,
@SubArcticTundra@lemmy.ml avatar

What even are those?

Diplomjodler ,

Which is true for the majority of all XML files I’ve ever come across in the wild.

SubArcticTundra ,
@SubArcticTundra@lemmy.ml avatar

I think XML only makes sense if your data is heavily tree-like

misterzero ,

In that case, why not use JSON?

SubArcticTundra ,
@SubArcticTundra@lemmy.ml avatar

JSON spreads out tree nodes vertically (with all the attributes), whereas in XML it’s usually one node per line. This is just my very niche opinion though

Joe_0237 ,

because you have a thing against solutions that are both beter and easier

Presi300 ,
@Presi300@lemmy.world avatar

No.

skullgiver , (edited )
@skullgiver@popplesburger.hilciferous.nl avatar

deleted_by_author

  • Loading...
  • ram ,
    @ram@bookwormstory.social avatar
    
    <span style="color:#323232;">Putting code between backticks shows it as codeblocks and doesn't strip the symbols
    </span><span style="color:#323232;">
    </span><span style="color:#323232;">
    </span><span style="color:#323232;">
    </span><span style="color:#323232;">Hello
    </span><span style="color:#323232;"><p>world
    </span>
    

    View source to see the markup

    https://bookwormstory.social/pictrs/image/dcdbe0e5-2e52-4271-bae0-5d12a0436253.png</p>

    HardlightCereal ,

    \

    InFerNo ,

    What color theme is that?

    Anticorp ,

    Looks like Vampire.

    macumbamacaca ,
    @macumbamacaca@feddit.nl avatar

    Which of these wonderful languages is this? en.wikipedia.org/…/Category%3aXML-based_programmi…

    Loudambiance ,

    Is it just me, or does the append statement not indicate where you are appending the "number" element to?

    simonced ,

    Meanwhile in APL, you just 20 50 60 90, 10

    DylanJava ,

    Who ever designed this deserves to be killed.

    Joe_0237 ,

    someone should make lisp but with html syntax

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines