r/badcode • • Dec 20 '20

c# Was looking through my code and found this.

Post image
697 Upvotes

86 comments sorted by

View all comments

Show parent comments

1

u/totti173314 Dec 21 '20

Why? I like xml. Learning android is one of the best times I've had learning to code anything. I'm still learning android.

1

u/fukitol- Dec 21 '20

Take a look at yaml some time, or even json. XML was a great data interchange and configuration format when it was the only thing available. Now, we have other options and the only reason anyone even uses xml is legacy software or java.

1

u/totti173314 Dec 21 '20

Oh, ok. Haven't used either of those yet, and you didn't need to list java seperately from legacy software if xml is that bad compared to json/yaml and java still uses it

2

u/fukitol- Dec 21 '20

Well Java is anything but legacy. A lot of new code, obviously, is written in it. It's just a lot of Java tooling is built around XML due to Java seeing really widespread use when xml was having its heyday.