#dev 2019-09-04

2019-09-04 UTC
qotta, KartikPrabhu and [fluffy] joined the channel
#
[fluffy]
you’ll probably be “happy” to know that some of the stuff at the day job I’ mleaving actually does to REST “properly” in that it makes use of verbs like DELETE and whatever
#
[fluffy]
well okay just DELETE
#
[fluffy]
no PUT or PATCH
#
Ruxton
[07:35:36] nobody follows REST properly anyway <-- broad generalisation, correctly verbed REST API's are some of the most well-made APIs in existence.
zee joined the channel
#
aaronpk
That wasn't my argument ;-)
#
dansup
Pixelfed now has location tagging! https://staging.pixelfed.net/discover/places
[xavierroy], BenLubar, gRegorLove, Mr-0dday_, vika_nezrimaya, ichoquo0Aigh9ie, cweiske and [KevinMarks] joined the channel
#
[KevinMarks]
PUT and PATCH are dangerous
#
dansup
[KevinMarks]: how so?
#
[KevinMarks]
They require callers to fully understand the resources' structure, and they set up a read/modify/write race condition.
#
[KevinMarks]
Much safer to use POST and keep the knowledge of the resource structure and ability to do atomic updates in the server.
#
cweiske
#1 is solved with validation
#
dansup
well, if you are using mongo yeah. otherwise ACID handles atomic updates
#
dansup
transactions ftw
#
Ruxton
argubaly the HTTP verb you use to do the update isn't the issue, how is PUT/PATCH more likely to cause race conidtion over POST? it's all abput what you're doing upon receiving the request
#
cweiske
POST creates a new record, so you can't have a race condition over exisiting data :)
#
Ruxton
ugh. need a new MBP keyboard, 890,IOP,KL; are not pressing properly :/
#
Ruxton
cweiske: but if you use post for updating.. it's the same problem?
#
cweiske
maybe not, depending on what [KevinMarks] means
#
cweiske
if PUT requires you to send the full content for updating, then it would overwrite data modified in the meantime
#
cweiske
PATCH doesn't have this problem
#
cweiske
but it seems to me as if kevin wants to use POST for patching
#
[KevinMarks]
Yes, PUT causes the race condition but PATCH has the structure problem - the client needs to completely understand the resource to know how to patch it. If you change the structure, all the old clients will corrupt it.
#
cweiske
.. if you change your POST parameters, all the old clients will stumble
#
[KevinMarks]
Yes, but at least try won't corrupt the server data
#
cweiske
#1 is solved with validation
#
cweiske
besides, you're talking about api versioning.
#
[KevinMarks]
I'm talking about avoiding api versioning
#
cweiske
I missed that announcement
#
[KevinMarks]
Maybe this comes from having worked on an OS that had to maintain binary api compatibility. I'm wary of requiring everything to change at once.
[Rose], [tonz], [grantcodes], [tonz]1, [jgmac1106], jgmac1106, [Will_Monroe] and [KevinMarks] joined the channel
#
aaronpk
This is a different argument, but I agree with what Kevinmarks is saying. It's not the http verb specifically that's the problem, it's the REST idea itself. It's one of those things that's nice in theory, but just isn't practical for most things
#
aaronpk
kind of like the OSI model, which is total crap beyond the lowest couple layers
#
sknebel
I have no idea why the OSI model gets referenced so much. teaching it for our actual networks is a bit like getting people into the details of XML when you try to teach them HTML5
#
aaronpk
It's a trap
#
jgmac1106[m]
Ruxton I am wondering if I am just done with macbook... Every release just gets worse and Apple cares less
#
cweiske
you'd have to change your nickname then
[tantek], [schmarty] and jgmac1106_ joined the channel
#
@brianleroux
It occurs to me that Twitter's data is designed to be static (uneditable) and thusly a *perfect* serverless app. We should clone it, enable a pub/sub timeline with webmention, publish to AWS SAR and GTFO of here.
(twitter.com/_/status/1169253233996386305)
#
@jgmac1106
↩️ Folks talk about this in #IndieWeb-dev channels. Websub supported chat with webmentions be really neat. Biggest issue with Mastodon for me, besides admins acting as feudal lords, is no webmention support. #mb bunch just hand on… https://quickthoughts.jgregorymcverry.com/2019/09/04/brianleroux-folks-talk-about-this-in-indieweb-dev
(twitter.com/_/status/1169254636022358016)
#
@jgmac1106
↩️ Bunch of folks have made micropub and microsub readers that support webmentions, think many (though at limits of my knowledge) use websub for polling...I am currently building a webmention badging platform (https://quickthoughts.jgregorymcverry.com/s/16EDoz)
(twitter.com/_/status/1169260874466549762)
vika_nezrimaya joined the channel
#
[schmarty]
that doesn't sound accurate, jgmac1106
#
[schmarty]
i don't know of any microsub implementation (or reader of any kind) that supports sending or receiving webmentions.
#
[schmarty]
some micropub endpoints likely handle sending webmentions, but not receiving them.
#
aaronpk
also websub is used to *avoid* polling
[fluffy] joined the channel
#
[fluffy]
And you still want to poll periodically to get missed updates like in case of momentary outages
#
[fluffy]
Like I see it more as a mechanism to fast-track an update between polling intervals
alex_marcus, [prtksxna], [calumryan], jgmac1106_, bnh^ and [jgmac1106] joined the channel
#
[jgmac1106]
please feel free to correct me in tweet, as I said I was unsure
djmoch and Babebraham joined the channel
#
@jgmac1106
↩️ I was correct in my assumption of probably being wrong, some unattributed quotes from the #IndieWeb-dev channel correcting my assumptions "i don't know of any microsub implementation (or reader of any kind) that supports sending or… https://quickthoughts.jgregorymcverry.com/2019/09/04/brianleroux-i-was-correct-in-my
(twitter.com/_/status/1169289831517741056)
KartikPrabhu, gRegorLove and [snarfed] joined the channel
#
[snarfed]
idly wonders about scraping m.facebook.com with a test account's logged in cookie, for backfeed
#
[snarfed]
(since, hell, we're already doing it for instagram now)
jgmac1106_ and [Will_Monroe] joined the channel
#
[snarfed]
just as bad an idea as the notif email scraping, probably
#
[schmarty]
how is that working so far?
DerrickFDiscord[ joined the channel
#
[snarfed]
it works, but only a handful people have tried, and only a few times. some people haven't been able to get FB to turn on their notif emails at all. (including me, at least on my main account)
#
[schmarty]
not a ton of activity there 😅
#
GWG
[snarfed]: I am going to look at the webmention header issue next
#
GWG
It is going to have to be an option
[fluffy] joined the channel
#
GWG
Because of the previous issues that caused a reversion
KartikPrabhu joined the channel
#
bekomotion[m]
oi [schmarty] I'd suggest to get in touch with Matt from SocialFixer. He knows the FB stream fairly well if scraping is still an option. I'd also be interested in the mailbox thingy if you still need Feedback.
#
[snarfed]
thanks! the technical parts of scraping are the easiest. the policy, avoiding blocking, etc are harder.
#
[snarfed]
as for the existing FB notif email scraping feature, it works now, the remaining thing to see is if anyone actually uses it going forward. signs point to no so far
#
bekomotion[m]
I'm phasing FB out from my streams at all. It's a long process tho. Started to poke ppl about alternate streams of their content.
#
bekomotion[m]
So for some time I'd like this but it's really low priority [for me]
#
bekomotion[m]
Read.
#
bekomotion[m]
Also the gory details.
#
bekomotion[m]
It was another nail in the ⚰️ for FB for me
jackjamieson, [tantek], GeorgeXieDiscord, VictorGDiscord[m, [dougbeal], CL3334[m], [jeremycherfas] and [calumryan] joined the channel
#
@glueckpress
↩️ @mor10 In the Indieweb world, they are! And webmentions.
(twitter.com/_/status/1169357917553856515)
#
@mor10
↩️ @glueckpress See, now you have to explain webmentions to the class.
(twitter.com/_/status/1169358515330150400)
#
@glueckpress
↩️ @mor10 Hi, class! Webmentions are likes, RTs, and mentions, but on your website. Example: https://glueckpress.com/10096/automattic-tumbling/
(twitter.com/_/status/1169359587998339073)
[jgmac1106] joined the channel
#
@schlagetown
↩️ I like all these ideas! A shared blogchain TOC widget sounds very useful. I don't use RSS much but a multi-source feed would be cool. Also want to look into e.g. webmentions, see if there may be some other indieweb-aligned possibilities for syndication / subscription.
(twitter.com/_/status/1169366682843910149)
[snarfed] joined the channel
#
[snarfed]
blogchain 😭
#
jgmac1106
tomcricthlow check the IndieWeb Glith page there is an RSS Planet set up you can connect to any public rss feed. I use inoreader as they allow you to create an rss feed of your feeds, feedly does not
dopplergange joined the channel
#
KartikPrabhu
"rss feed of your feeds" what's that?
#
[jgmac1106]
Meaning i can have a channel and make it public and generate an rss feed for juat that channel
#
KartikPrabhu
so someone follows your channel instead of the original sources?
#
[jgmac1106]
In Feedly you can make a bundle of sites you follow but there is no rss feed for the bundle
#
KartikPrabhu
that's pretty weird feed-ception
#
[jgmac1106]
Sometimes most just scroll the Planet
#
[jgmac1106]
I would share an example...but my server currently maxed out as I move a ton of files
#
[jgmac1106]
clmoocring.jgregorymcverry.com
#
[jgmac1106]
You could click on the Planet. Its just an iframe of an rss feed
[tantek] joined the channel
#
[tantek]
what is Glitch
#
Loqi
Glitch (formerly Gomix, HyperDev before that) is a tool allowing you to quickly prototype web applications in a complete IDE with built in version control, sharing, and more https://indieweb.org/Glitch
#
[tantek]
"shared blogchain" is excellent!
#
[tantek]
is still trying to dig himself out of the hole he dug updating his event posts to support ICS and (eventually) add to gcal
#
jgmac1106[m]
The glitch Planet project is nothing anyways, just 3 different grid areas where youbcan drop in RSS feeds... clmooc planet and web ring is growing
#
jgmac1106[m]
The National Writing Project is sponsoring the National Write Out project with the Park Service... Gonna be fun to watch it get bigger
#
jgmac1106[m]
I need to join the blogchain and then add a curse if you do not send webmentions to five other sites
tbbrown joined the channel
#
@brianjesse
What’s the rss feed equivalent of “so and so followed your feed” ? #rss #foaf #indieweb #webmention #diso #factoryjoe #track #friendfeed #laconica #bearhugcamp #gillmorgang #activitypub #ostatus
(twitter.com/_/status/1169393931550781440)
#
[jgmac1106]
a notification that you are being followed? They do that within readers, like you know how many wordpress.com, feedly, or inoreaders follow you but not across platform
#
[snarfed]
eg bridgy fed converts mastodon follows to u-follow-of webmentions
[KevinMarks] joined the channel