jdev - 2022-10-23


  1. junaid

    just me or very few projects have implemented XEP-0009

  2. MattJ

    It's not very common these days. RPC in general has fallen out of favour as an API model.

  3. Zash

    Generic RPC like that at least. Kinda redundant when <iq> is RPC-ish enough by itself, and then we have XEP-0050+XEP-0004

  4. adx

    Can someone point me to the spec where it says what kind of characters can't be in a MUC nick/JID resourcepart? I can't seem to find any specifics besides "probably everything UTF-8"

  5. Zash

    adx, it can be found via https://xmpp.org/extensions/

  6. Zash

    > RFC 7622 XMPP Address Format

  7. Zash

    Except that's not the one in use, but the previous one

  8. Zash

    So, good luck on your RFC adventure ;)

  9. Zash

    s/the previous/a previous/

  10. Zash

    It might vary by implementation.

  11. Zash

    I would recommend preparing a place under your desk to cry if you're delving into these issues.

  12. adx

    yeah, that's what i've been browsing, but more of a deep dive needed apparently

  13. adx

    > I would recommend preparing a place under your desk to cry if you're delving into these issues. oh boy, love me some lonely nights

  14. Zash

    So https://www.rfc-editor.org/rfc/rfc6122 is probably the safe thing to look at until PRECIS gets more widely implemented. Then there's https://www.rfc-editor.org/rfc/rfc7700 that's specifically for nicknames.

  15. lovetox

    does anyone in code use something different then "jid" for jids?

  16. lovetox

    like it means jabberid, but i guess we want to get rid of the jabber name? and i wondered even when i got rid of it in the UI

  17. lovetox

    the whole code is still litered with jabber here and jabber there

  18. lovetox

    but jid is also so nice and short as var name and ver descriptive, like every dev ever who reads that will exactly know what this is

  19. lovetox

    xmpp_address is quite long, addr could mean a lot of other things

  20. pep.

    `sed -i -e 's/jid/xid/g'`? :p

  21. Zash

    xid.. hah, pep. was faster

  22. lovetox

    xid :D

  23. lovetox

    i didnt think of that

  24. lovetox

    was going for xaddr

  25. lovetox

    but ok beside the fun, does actually anyone use this in code?

  26. lovetox

    or will i be the only lost soul :D

  27. pep.

    Nah we use Jid here (slix, poezio, xmpp-rs)

  28. Zash

    In prosody there's a few cases like `uploader` that holds a JID

  29. Zash

    or `user_bare` which holds ... a bare JID

  30. Link Mauve

    lovetox, Jappix and Movim both went for xid in their code IIRC, but I find it a bit weird since so much documentation is about JID.

  31. Link Mauve

    By now it’s became a proper noun, and not about Jabber any longer.

  32. debacle

    pep. Global changes with sed are so dangerous!

  33. debacle

    lovetox Rename gajim to gaxim when?

  34. pep.

    debacle, in a repository it's fine, you can see your changes as unstaged :)

  35. debacle

    but it is so easy to miss an unintended change, if there are too many

  36. pep.

    CI and tests will catch it right? :P

  37. pep.

    A bit of optimism

  38. pep.

    And most of all, your compiler!

  39. pep.

    #InTheCompilerWeTrust

  40. moparisthebest

    > but it is so easy to miss an unintended change, if there are too many Not in a good language, thanks Rust