"Yeah. The feed parsers I've written have "flattened" those multiple link elements into separately named properties, such as xmlUrl, htmlUrl, enclosure, comments, etc. It's the only way to keep your code sane instead of constantly checking for multiple values and iterating over them."
- Dan MacTough
"I agree with you, and I don't think that's a stretch at all. Consider the case of a podcast enclosure (rel="enclosure") -- perhaps there is no need to have a link (rel="alternate") for that entry, but then there is no web page to point to."
- Dan MacTough
"You are correct: it is the link with the rel="alternate" attribute. In that feed. In other Atom feeds, the rel attribute is absent -- according to the spec (http://tools.ietf.org/html/rfc..., the absense of the rel attribute should be interpreted as equivalent to rel="alternate". Atom is very expressive, but it is a pain in the ass to parse into a struct."
- Dan MacTough
RT @ThayerAvenue: Pitchers and catchers report in 3 weeks, thank God. Because there aren't 2 teams that could make me care less about the Superbowl now.
"In the escapeParam function, you probably need a semicolon at the end of this line to avoid unexpected behavior: return str.replace(/'/g, "\\'")"
- Dan MacTough
postlocal: A 1,500-year-old Jewish community left clues for how today’s Jews might answer the question: To tree or not to tree? http://t.co/qMoESWib
"What a great post. I was having this discussion just the other day. I was using math as a subject that programming would be good at helping kids learn, but logic is great too -- two sides of the same coin, really."
- Dan MacTough
Blazing fast node.js: 10 performance tips from LinkedIn Mobile. http://t.co/rfFfPb44
"So many great points: (1) sexism; (2) marketing, not news; (3) piss-poor technology reporting. This is so widespread. It's almost a service that the New York Times -- self-proclaimed pinnacle of journalism -- managed to hit every one of those notes with one piece, thus highlighting the pervasive problems in what passes for tech journalism."
- Dan MacTough
"Hmm. I'd rather the feed's title be the same as the blog's title (if it's a blog feed, as opposed to a linkblog). Both of which should be more than "The Blog," but still succinct and distinctive. You've got other metadata (in both the blog's HTML and the feed's RSS) to indicate who the author is, provide a fuller description of the blog/feed, whatever. When I first saw the title "Dave Winer's "Scripting News" weblog" somewhere, I was actually confused -- Is that Dave's official feed or is it someone'e Yahoo Pipe filtered version. Now I know, of course! Just sayin'."
- Dan MacTough