#indieweb 2022-10-21

2022-10-21 UTC
jacky, slydud, timdream, kjs, slyduda[m], angelo, bterry1, [timothy_chambe], [fluffy], IWSlackGateway, gRegor and geoffo joined the channel
#
[tantek]
do we have a page about accounts for non-people like pets, bots, inanimate things, objects, landmarks, weather, or say https://twitter.com/noevalleytoilet ?
[jeremycherfas], ren and mro joined the channel
#
Ruxton
has been away from IRC for many months, whats going on?
#
capjamesg
Welcome back Ruxton!
KubaOrlik[m], odnes, barnaby, ash[m], threewordchant, reed, AramZ-S[m], lqdev[m], anarchivist, KatherineMoss[m], aynish[m], jordemort, slyduda[m], lefuturisteMatth, voidcontext[m], Nezteb[m], nloadholtes[m], Christoph[m]12, adipathak[m], Tommi[m], Pyroxtheythem[m], h4kor[m], kandr3s[m], jeremycherfas, jeremy, mro, lanodan, bterry1, jonnybarnes, gRegorLove_, geoffo and gRegorLove__ joined the channel
#
GWG
Ruxton is back...yay
#
Loqi
[indienews] New post: "Send a Webmention in 10 (or fewer) lines of Python code" https://jamesg.blog/2022/10/21/send-webmention-in-python/
#
capjamesg
Technically you can do it in two lines. But error validation matters :D
djsime1, jacky, mro, EncryptedGiraffe, conoscoilkungfu[, bterry1, jacky_ and n8chz joined the channel
#
[tantek]
that's a lot of lines to send a webmention yeah
#
capjamesg
[tantek] It's technically one :D
#
capjamesg
But the rest are importing the library and adding some exception handling.
#
capjamesg
I thought "Send a webmention in one line of Python" would be misleading since without exception handling you might get an un-handled error if a site doesn't support webmentions.
#
[tantek]
capjamesg, you could break it down to pieces. "Discover a webmention-friendly site in one line", "Send a webmention to a receptive site in one line"
#
[snarfed]
fwiw I think the "one line" framing is totally fine. engineers know the point there isn't strictly accurate counting, imports error handling etc
#
jacky
error handling? (lol)
#
jacky
[tantek]: I'd like one, I have a stub for my dog but I do wanna post things about her there eventually
jacky and bterry1 joined the channel