#indieweb 2017-05-23

# [kevinmarks] joined the channel
#
Zegnat
Sleep well then aaronpk!
#
cweiske
now his phone pings him because you pinged him and he's awake again :/
#
Zegnat
If I did, we will be able to see it on the sleep graph in ~ 8 hours https://aaronparecki.com/sleep
#
cweiske
I don't understand those lines and colors
# KevinMarks_ joined the channel
#
Ruxton
cweiske: they're saved from fitbit I think, left-most-side is start of sleep, right-most end of sleep, dark blue = sleep, light blue peaks = restless, red = awake
#
[kevinmarks]
Not fitbit, the other one
#
Zegnat
Oh, colour me surprised, the feed service I use now supports JSON Feeds: https://feedbin.com/blog/2017/05/22/feedbin-supports-json-feed/
#
cweiske
"JSON Feed will help alleviate these problems, because it’s easier to get right."
#
cweiske
XML feeds are broken if they are generated by hand instead of using an xml serializer
#
cweiske
so if you write the json feed by hand you have the same problem
#
cweiske
doesn't change anything
#
KartikPrabhu
sounds like a problem with XML feeds
#
cweiske
no, it's a people problem.
#
KartikPrabhu
not really.
#
cweiske
if people think they can do it by hand and it fails, it's their fault for not using a lib that serializes correctly
#
cweiske
same for json.
#
KartikPrabhu
yes, so make writing a feed simpler
#
KartikPrabhu
not hide it under serializers
#
cweiske
? how is json easier to write? you need a json serializer, too
#
KartikPrabhu
I know how to write code and I mess up my feed generating code too
#
KartikPrabhu
cweiske: not defending JSON :)
#
KartikPrabhu
any sidefile would have the same problems
#
[kevinmarks]
Json is easier to serialise to than xml, because it is closer to language structures in dynamic languages
#
[kevinmarks]
But it's just as fragile.
#
[kevinmarks]
You have fewer escaping issues
#
KartikPrabhu
[kevinmarks]: that only means that languages have JSON serialisation done but don't boter with XML
#
[kevinmarks]
No, with xml you need to make choices about what is an element and what is an attribute, that don't map well to language objects
# friedcell joined the channel
#
cweiske
KartikPrabhu, PHP has had xml serialization long before json_encode was there. people didn't use it for feeds.
#
[kevinmarks]
I used it for xoxo
#
cweiske
I made a generalization that of course does not apply to everyone
#
[kevinmarks]
Php is weirder in that you can make a php file as an xml template, and it will work until escaping screws it up
#
cweiske
you could do the same with json
#
[kevinmarks]
Hm. You could, but that feels weird. Php naturally teaches you to make html pages that way, so xml ones seem like a variation
#
cweiske
that sounds like a probable explanation
#
[kevinmarks]
It's more of an affordance thing.
#
[kevinmarks]
Json is legal syntax in python and javascript, so it feels more natural there somehow
#
[kevinmarks]
In java, both are alien so are wrapped up in an abstraction necessarily
#
Zegnat
I am a little tempted to try and make a JSON Feed that will crash JSON parsers.
#
Loqi
[markpilgrim] How to consume RSS safely
# benwerd joined the channel
#
cweiske
oh. diveintomark is now a known-based site.
# j4y_funabashi joined the channel
#
j4y_funabashi
morning all
# JulianFoad[m] joined the channel
# nikivi joined the channel
# Guerillero|BNC joined the channel
# Pierre-O joined the channel
# takyoji[m] joined the channel
# M-mxuribe joined the channel
# plindner joined the channel
# pniedzielski[m] joined the channel
# garlox[m] joined the channel
# M-tom joined the channel
# myfreeweb joined the channel
# Salt[m] joined the channel
# schmarty joined the channel
# M-podviaznikov joined the channel
# mindB joined the channel
# SpEcHiDe joined the channel
# jcgregorio[m] joined the channel
# M-hotzeplotz joined the channel
# afrogeek[m] joined the channel
# rdesfo[m] joined the channel
# strk[m] joined the channel
# Guest86807[m] joined the channel
# jaduncan[m] joined the channel
# j-hernandez[m] joined the channel
# crasch[m] joined the channel
# dgold[m] joined the channel
#
Zegnat
[kevinmarks], I would just take every JSON test that resulted in a crash and try to put them under an extension "_crash":{…}. http://seriot.ch/parsing_json.php
# adactio joined the channel
#
petermolnar
[kevinmarks] re how to consume rss safely: convert the content to markdown with pandoc and back to html.
# amz3 joined the channel
# jemostrom joined the channel
# KevinMarks joined the channel
#
@jgmac1106
@pfefferle @dshanske Do you know if these only work on #indieweb approved themes? No matter how much I hack at func… https://twitter.com/i/web/status/866964185405698048
(twtr.io/1S1frHwMw7U)
# mlncn joined the channel
#
Zegnat
Jeena, is HWC Gbg still a thing?
# gucci_meow joined the channel
#
Jeena
It was a long time ago we had one, mostly because not a lot of people were attending and then I didn't have the time and nobody asked about it so I didn't quite have the incentive to do something.