Readit News logoReadit News
rcade commented on OPML is underrated   kmaasrud.com/blog/opml-is... · Posted by u/thunderbong
thro1 · 2 years ago
It's about outliners. You move just one thing.
rcade · 2 years ago
Child elements of character data can be moved around too.
rcade commented on OPML is underrated   kmaasrud.com/blog/opml-is... · Posted by u/thunderbong
thro1 · 2 years ago
> but it was a bad design decision to store long blocks of HTML inside XML attributes instead of XML elements.

not at all - it's that what allows the simplest structure for nesting of outline elements.

An <outline> is an XML element, possibly containing one or more attributes, and containing any number of <outline> sub-elements.

rcade · 2 years ago
XML elements can contain both text and child elements. Character data didn't have to be stored in an attribute to allow outline nesting.

<?xml version="1.0" encoding="UTF-8"?>

<node>

    <node> 

      <![CDATA[ Hello I am text ]]>

      <node> ... </node>

      <node> ... </node>

    </node>
</node>

rcade commented on OPML is underrated   kmaasrud.com/blog/opml-is... · Posted by u/thunderbong
epaulson · 2 years ago
It's not so much that OPML is the interesting part here, it's that it's a file. A few weeks back Andrej Karpathy had a twitter thread[1] about blogging software and shared this link on 'File vs App' - https://stephango.com/file-over-app - and that really was great for ecosystem interoperability. I can download the file using whatever tool is appropriate, store it however I want, and then upload it somewhere else using whatever tools is appropriate. I have the OPML export I took of my subscriptions from the day Google Reader shut down and there's still a fighting chance that other services could actually import that file.

It's also worth noting that OPML is only the container format here. Agreeing on a container format is obviously important and we won't get very far for interop if we can't even agree on the container format, but OPML is supposed to be a generic tree of 'outline' format, and conveniently RSS subscriptions (and folders) look like a tree.

I sorta expected that there would be a second standard that says "here's how you use this generic OPML container format to represent RSS feed subscriptions" but oddly that's actually included right in the OPML spec[2]. In fact RSS subscriptions are the only application format defined in OPML - there's a 'type' field defined for <outline> element and if type is set to 'rss' then there's also a required xmlUrl of the feed and optional things like the html link for the blog, the version of RSS used. This is the data and part of the spec that makes the actual subscription list exchange work.

But again the only entry for 'type' defined in the OPML spec is 'rss'. If you want to use OPML as a container for something else, like Youtube subscriptions or Twitter followers, you of course can but you gotta find some way to get everyone to agree on how to interpret the 'type' you set for that <outline> element. And as far as I know, no one's done anything like that for any other domain.

So it'd be awesome if more domains defined 'type' fields and set out some specs so I can export my video streaming subscriptions or Amazon wishlist or whatever but without defining more 'type' fields OPML is really not any more interesting than a CSV of URLs.

[1] https://twitter.com/karpathy/status/1751379269769695601 [2] http://opml.org/spec2.opml

rcade · 2 years ago
If someone wanted to extend OPML into another domain, even if they got others to agree on their proposed type value and the new attributes added to support that type, there's nothing to stop a collision with somebody else choosing the same attribute names.

There also is nothing to stop the author of the OPML specification from opposing the new type.

It would be far easier to create a new XML format.

rcade commented on OPML is underrated   kmaasrud.com/blog/opml-is... · Posted by u/thunderbong
bjoli · 2 years ago
Sometimes I feel I am the only person in the world who likes XML. It just followed the trajectory of all formats, where it is used in places it shouldn't have been used.

It is moderately readable and writable, and the tooling is great. Whenever I have to write it Emacs verifies the doctype for me and handles the structural part of it.

And, as the document shows, xslt makes it easy as hell to scan the contents of a file.

OPML is a good example in my opinion. I used it maybe once a year and it has never failed me

rcade · 2 years ago
I love love love XML, but when I encounter an effort to use it to carry presentation like HTML alongside executable code -- such as Apache Jelly -- I regret the choices that brought me to that place in my life.

I wouldn't call OPML a good example of XML for reasons I detail elsewhere in the thread. But if you need a subscription list of feeds for import or export it's alright.

rcade commented on OPML is underrated   kmaasrud.com/blog/opml-is... · Posted by u/thunderbong
rcade · 2 years ago
I wouldn't call it underrated.

OPML is useful because people use it, but it was a bad design decision to store long blocks of HTML inside XML attributes instead of XML elements. Look at the escaped HTML inside these "text" attributes:

http://scripting.com/index.opml

Because the HTML is stored in attributes, it can't be wrapped in a CDATA block. There's also no limit to how long the text can be.

OPML is also a moving target without a standard. Any time there's a desire to represent something new with the format, attributes are added without any public participation from existing implementers. The value of the "type" attribute on outline elements determines whether new arbitrary attributes can be present.

Because of this unorthodox extension process, the OPML format has become a catch-all for unrelated uses: outlines, blog posts, RSS/Atom subscription lists, programming source code, and more.

All of the uses could've been represented as XML formats. XML didn't need OPML for storing and transmitted arbitrary data. We already had XML for that.

The original thing OPML was created to do -- represent outlines -- is severely hampered by the fact there's no way to store the expansion state of collapsed nodes of an outline.

rcade commented on Atom feed format was born 20 years ago   rssboard.org/news/213/ato... · Posted by u/mrzool
talideon · 3 years ago
The craziest thing I see though is people importing the Atom namespace into RSS feeds to get some of the elements. At that point, I can't fathom what advantages there is to the producer to not just produce an Atom feed.

RSS 1.0 was basically the first attempt to produce something like Atom without reinventing too much, but Dave threw his toys out of the pram, so the only option was to reinvent it with a different name and clean up the remaining sharp corners.

It's tragically funny. Atom is both more correct and easier to produce and parse than any RSS variant.

Were I to join Automattic in the morning, the first thing I'd try is to attempt to get them to abandon their weird RSS mashup as their default feed format. There's no good reason why Wordpress still generates RSS feeds.

Yes, I'm a bit bitter, but I was in the feed wars, and it still stings.

rcade · 3 years ago
Atom is a great feed format with a rock-solid spec.

I wouldn't call it a weird mashup for WordPress to use atom:link in their RSS feeds. It does things no RSS element can do, such as allow a feed to identify its own URL.

For those who don't know, every WordPress site with an RSS feed also has an Atom feed available by adding "/atom" to the end of the RSS feed URL, such as this:

RSS feed: https://wordpress.com/blog/feed/

Atom feed: https://wordpress.com/blog/feed/atom/

rcade commented on Atom feed format was born 20 years ago   rssboard.org/news/213/ato... · Posted by u/mrzool
ulrischa · 3 years ago
Why is the name Atom?
rcade · 3 years ago
I think the inspiration was that an atom is a foundational building block of matter and a lot of things could be built with a well-specified universal feed format and publishing format.

The time spent debating names, disqualifying names, requalifying names and voting on names was like the battle of the newscasters on Anchorman. Pure carnage.

rcade commented on Atom feed format was born 20 years ago   rssboard.org/news/213/ato... · Posted by u/mrzool
thaumasiotes · 3 years ago
So what? That has nothing to do with my comment.

There are feed formats named "RSS". There is a feed format named "Atom". And there is a concept named "RSS". The RSS formats, like the Atom format, are all implementations of the RSS concept. Generally, when you subscribe to an RSS feed somewhere, it will be in the Atom format. It's still called an "RSS feed" for the simple reason that that is the name of the concept.

> it's sometimes used as the name of the functionality but it's improper.

No it isn't. What would you gain by insisting that RSS feeds delivered via Atom have to be called something different than RSS feeds delivered in legacy formats? Did we rename TLS when we updated the cipher suites?

Why, in your opinion, is rssboard.org even bothering to write about Atom?

rcade · 3 years ago
I wouldn't say that an Atom feed is an implementation of the "RSS concept." That muddies the water too much. Because RSS and Atom are distinct feed formats, calling an Atom feed "RSS" would confuse a lot of people.

Instead I'd say that Atom feeds and RSS feeds are each an implementation of the syndication concept.

Deleted Comment

rcade commented on W3C and My RSS Spec   scripting.com/2023/06/17/... · Posted by u/Tomte
donpark · 3 years ago
He is now asking. Are you saying it's too late?
rcade · 3 years ago
Because of his new request for an attribution change, the credit line now reads, "This document is authored by the RSS Advisory Board and is offered under the terms of the Creative Commons Attribution/Share Alike license, based on an original document published by the Berkman Klein Center for Internet & Society authored by Dave Winer, founder of UserLand Software."

https://www.rssboard.org/rss-specification

This also includes a change to reflect that the Berkman Center for Internet & Society became the Berkman Klein Center for Internet & Society in 2016.

u/rcade

KarmaCake day59November 27, 2007
About
Computer book author and web publisher Rogers Cadenhead
View Original