Spyke
feddit.de

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.

75

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.

24

Pff. I know someone who generated programs using XSLT.

2
kbin.social

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

8

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.

3
swg-empire.de

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?

60
Björnreply
swg-empire.de

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

14

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.

1

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

1
dan
upvote.au

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

21
feddit.de

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

8

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

1

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

1
lemmy.nz

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

15

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.

1
kbin.social

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

10

You reached the end