this post was submitted on 16 Jan 2025
479 points (99.0% liked)
Technology
60540 readers
6713 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each another!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
Approved Bots
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I get that the idea of rss is sort of a universal protocol for publishing articles, which is really cool, but damnit if you make me parse XML in 2025. As a developer, I would be ok if they modernized RSS feeds.
Something like this
There's very robust libraries for most every language that can parse rss for you easily.
But a lot of languages have native support for parsing JSON without the need for a library. When it’s handled by the language, it’s more likely to be done to spec, doesn’t increase bundle size (if that matters to you), and will be considered as updates to the language are made.
I can speak to go, ruby, and PHP: Their libraries for support is per-spec.
Json is pretty great, and sure, if someone wants to make RSS2, using JSON, that'd be fine. But, RSS came long before JSON was even an idea, and XML was the only way we figured out.
RSS's format is, in fact, so old, there's been a huge amount of time refining those language's libs to support RSS just dandy. You never even need to look at the XML.
Idk maybe I'm wrong. I worked for a news outlet for a couple years and I just remember generating and parsing XML to be more work then generating a JSON feed.
It's not even just parsing. I just remember crawling the parsed JSON tree to not be as nice as navigating a JSON object.
JSON!