xml namespaces is one reason I don't like using xml much, conceptually having just a second nested element if neccesary would work too, but namespaces have yet another way to represent the same conceptual data in it :
/
machas left
MattJ
Namespaces aren't quite the same as just having another element, because they allow you to identify elements and prevent conflicts when people extend
nephele
They are not exactly the same, no, but conceptually there is not that much difference
marchas left
jubalhhas left
malthehas left
kikuchiyohas left
atomicwatchhas joined
marchas joined
spectrumhas joined
jubalhhas joined
pulkomandyhas left
pulkomandyhas joined
nephelehas left
atomicwatchhas left
atomicwatchhas joined
marchas left
nephelehas joined
marchas joined
goffihas joined
kikuchiyohas joined
sonnyhas left
sonnyhas joined
nephelehas left
sonnyhas left
sonnyhas joined
nephelehas joined
nephelehas left
pulkomandyhas left
pulkomandyhas joined
sonnyhas left
sonnyhas joined
sonnyhas left
sonnyhas joined
pulkomandyhas left
pulkomandyhas joined
kikuchiyohas left
sonnyhas left
sonnyhas joined
kikuchiyohas joined
Martinhas left
Martinhas joined
sonnyhas left
sonnyhas joined
sonnyhas left
sonnyhas joined
sonnyhas left
sonnyhas joined
Yagizаhas left
homebeachhas left
Matrix Traveler (bot)has left
Server Stats Discoverer (traveler bot)has left
Server Stats Discoverer (traveler bot)has joined
Matrix Traveler (bot)has joined
homebeachhas joined
marchas left
lovetoxhas left
lovetoxhas joined
9lakeshas joined
debaclehas joined
9lakeshas left
pasdesushihas joined
emushas joined
goffihas left
goffihas joined
malthehas joined
Kevhas left
Kevhas joined
Ge0rGhas left
Ge0rGhas joined
paulhas left
paulhas joined
nephelehas joined
9lakeshas joined
goffihas left
goffihas joined
goffihas left
goffihas joined
goffihas left
goffihas joined
goffihas left
goffihas joined
malthehas left
Kevhas left
Kevhas joined
antranigvhas joined
hiranhas joined
goffihas left
goffihas joined
marmistrzhas left
marmistrzhas joined
sonnyhas left
sonnyhas joined
sonnyhas left
sonnyhas joined
antranigvhas left
antranigvhas joined
marchas joined
qrpnxzhas left
qrpnxzhas joined
qrpnxzhas left
qrpnxzhas joined
goffihas left
antranigvhas left
Kevhas left
Kevhas joined
Kevhas left
debaclehas left
Kevhas joined
sonnyhas left
sonnyhas joined
antranigvhas joined
antranigvhas left
Kevhas left
hiranhas left
Kevhas joined
homebeachhas left
Matrix Traveler (bot)has left
Server Stats Discoverer (traveler bot)has left
Server Stats Discoverer (traveler bot)has joined
Matrix Traveler (bot)has joined
homebeachhas joined
qrpnxzhas left
qrpnxzhas joined
marchas left
marchas joined
qrpnxzhas left
qrpnxzhas joined
Kevhas left
Kevhas joined
marmistrzhas left
jubalhhas left
Ge0rGhas left
junaidhas left
junaidhas joined
test1has joined
malthehas joined
test1has left
Squeaky Latex Folf
It's nice knowing where some features in a stanza come from
hiranhas joined
Squeaky Latex Folf
Do you know how hard it is to get search engines to find what you're looking for?
Squeaky Latex Folf
Especially if you don't know the name of something
marc0shas left
marc0shas joined
malthehas left
hiranhas left
lovetox
i hate when the data you search is the name of the tag
lovetox
like in https://xmpp.org/extensions/xep-0108.html
lovetox
i find that bad design
goffihas joined
lovetox
under the assumption that every element is exendable, this means i have to iter the childs, then compare the found tag name against some kind of allowed list
Zash
treat it as an enum?
lovetox
yes but thats actually not what i want in an extendable protocol
lovetox
someone maybe wants to introduce a new element
marc0shas left
marc0shas joined
lovetox
long story short, this makes things unnecessary error prone
marc0shas left
marc0shas joined
lovetox
instead do
<activity>
<general>relaxing</general>
<specific>reading</specific>
</activiy>
lovetox
this way i dont need to iterate through childs, i can just tell, get me that element text
marc0shas left
marc0shas joined
lovetox
it does not matter what other client stuff into this, it will never alter my way of finding what i need
SouLhas left
lovetox
and its perfectly extendable if someone wants to put some new general activity which is not in the list the XEP defines, i can still take it and present it as an activity
MattJ
I know what you're saying, but that's also harder, you can't just stick arbitrary text in there to "extend" it
lovetox
on the other side if i find a new child which is not in my list, i dont even know if the goal was to extend the lists of activitys, or if this is some completely different shit
MattJ
You wouldn't get an unknown child in the same namespacr✎
MattJ
You wouldn't get an unknown child in the same namespace ✏
MattJ
That's the point
lovetox
you mean everything in that namespace is an activity
Kevhas left
marchas left
MattJ
Everything defined as an activity, yes
marchas joined
lovetox
.....
MattJ
Extending it would use a new namespace (as shown in examples)