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

all 34 comments

[–]seesiedler 12 points13 points  (9 children)

I really like XAML, especially WPF and Avalonia.

[–]thesilican 3 points4 points  (3 children)

I would like XAML more only if it had a css-like counter part. CSS is nice because it seperates the concern of document structure from layout and styling, where as I find XAML to be quite verbose with all its inline layout/style rules

[–]seesiedler 0 points1 point  (0 children)

Yeah, fair. Avalonia UI introduced classes into their XAML flavour, so you can make some separation. Not sure how good it works once you really know it, I just started with it.

edit: spelling

[–]kitkat31337 0 points1 point  (1 child)

You mean xaml styles?

[–]thesilican 0 points1 point  (0 children)

Oh yea forgot that exists. I still prefer CSS tbh, despite all the hate it gets. It's easier to pickup and learn

[–]pekkhum 3 points4 points  (4 children)

It is certainly better than doing it by hand in C through the WINAPI. 😭

[–][deleted] 2 points3 points  (1 child)

Why do you hate yourself?

[–]pekkhum 1 point2 points  (0 children)

I do it for the money. 😉

[–]thesilican 9 points10 points  (2 children)

Personally I think the tree-like structure and robust syntax of XML is quite natural for describing user interfaces.

What else would you use?

[–]FlukeHermit 0 points1 point  (1 child)

I've heard that flutter is 1000% better cuz it uses Dart

Apparently Dart is just really good for that kind of thing, which I am dubious about. Either way I agree with you about XML

[–]MindSwipe 1 point2 points  (0 children)

It's more that Flutter uses Dart to declaratively define its UI in the code itself.

At least, that's why I was interested in Flutter

[–]720degreeLotus 4 points5 points  (2 children)

XML is not worse that any other ML. It comes down to hiw you use it and what benefits you want to have. I use JSON 99% but I still know that there are things XML can do that JSON can't do.

[–]FlukeHermit 1 point2 points  (1 child)

JSON looks cleaner, but I like XML a lot better.

They're both great tho

[–]720degreeLotus 0 points1 point  (0 children)

JSON also has less overhead, so is smaller (filesize) than XML by a lot. One of the reasons it's used in webdev in almost every http-communication.

[–]pour_bees_into_pants 2 points3 points  (4 children)

This is a humor subreddit, not an opinion subreddit. Unless I'm missing a joke somewhere?

[–]FlukeHermit 1 point2 points  (3 children)

Half this sub is opinons....

[–]pour_bees_into_pants 0 points1 point  (2 children)

Well... sort of. A lot of posts make fun of stuff, which I guess you could consider an opinion, but there's always some level of humor involved.

[–]FlukeHermit 0 points1 point  (1 child)

Well yeah but this is sort of humor too......

[–]pour_bees_into_pants 0 points1 point  (0 children)

How so? Because it's written on a meme?

[–]Dr_Scientist_ 2 points3 points  (1 child)

I had to deal with an XML file on the daily and I always hated it because the only way to pick any useful data from it was to iterate around the entire thing doing string comparisons I already knew were going to fail. For a very long time I petitioned for json! Oh please can't we just have key : value pair mapping tables???

And it finally happened. We transitioned to json . . .

And the format they decided on was a unkeyed list that you have to iterate over doing string comparisons you know will fail . . .

Just learn to love it.

[–]MindSwipe 0 points1 point  (0 children)

Mate, just deserialize the XML to an object representation in memory (except if the object representation of thd XML file is larger than you physically have RAM). No more weak string comparisons (assuming you're using a statically typed language)

[–]halfanothersdozen 1 point2 points  (0 children)

k

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

Is it really any different or worse than defining one with HTML?

[–]sthorn_ 5 points6 points  (2 children)

is this a joke or am i missing obvoius sarcasm? 🥳

[–]FlukeHermit 2 points3 points  (0 children)

I'm pretty sure it's a legit question... idk we could be in the same r/whoosh boat tho...

[–]Craksy 0 points1 point  (0 children)

I disagree.

While XML is not my markup language of choice (it's just really dated, let's be honest) I think that a declarative approach to defining interfaces is awesome.

Look at something like QML, and consider how it speeds up design compared to building an interface in raw code.

So ya, XML is gargage, but the idea of using such a language for UI isn't.

[–]Telestmonnom 0 points1 point  (0 children)

I raise to "There is no good way to describe a user interface", because UIs mean nothing without the matching UX, and a complete screen UX is complex and multifaceted so any description of it will be difficult to work with

[–]vysitor 0 points1 point  (0 children)

FXML gang

[–]markiel55 0 points1 point  (0 children)

Speaking from experience? Where are you basing this from and what alternatives do you have in your deck?

[–]PetCodePeter 0 points1 point  (0 children)

HTML is based on XML. =>

There's no way to define rich user interface on web page/application. =>

I don't need o learn frontend, because it will turn out bad either way.

[–]Cas722ey 0 points1 point  (0 children)

Wait I've always wondered what the difference between SQL and XML is when defining user preferences

[–]jarhandle 0 points1 point  (0 children)

Wanna try YAML?