It's not hard to be true to the intent of the author of a feed, and create a good experience for the reader. #
In the real world some feed items have titles and some don't. Here's a screen shot of my blog. I've put red arrows pointing to the items that don't have titles. You could argue I suppose that they should have titles. That I should take a 9-word item and give it a two-word title. But I don't do that. And it shows up in my feed without a title, because the item does not have a title. And that's not up to anyone but me, the author of the feed. #
Here's a screen shot of how a popular feed reader displays those items. It isn't terrible, but it's imho wrong. The first item has a [no title] message where a title would go. Why? Look at it from the human reader point of view. What information does that convey, above what the writer was saying, in bigger type and in bold. NO TITLE. I don't know about you but to me that looks like criticism, an error message, from the software to the person who wrote the post. Sometimes all the posts show up with that message. This time only one did. And for the others, they repeat the first bits of the post. Again, why? The human read them once, why put the same words they just read on the screen again? That seems quite wrong to me. #
Now I don't know why they designed their software this way, but I can guess -- when they started they designed it assuming all posts had titles, and it took a while before they discovered that some items don't. So they shoehorned those into the app without disrupting the design of the product. But this has been going on for a very long time, many years, basically since Google Reader decided, incorrectly, that all feed items must have titles. #
With Mastodon supporting RSS, and Mastodon booming in popularity, feed readers should expect to see a lot more feeds with items without titles, unless for some reason Mastodon does what Twitter did many years ago, under pressure from Google Reader to add titles to items, and just withdraws the feeds. All because they couldn't adjust to a reality they hadn't planned for. #
Never display NO TITLE. It's not a good use of your space, the reader's time and it's wrong. The author didn't use those words. They're your words. You don't have a right to put your words in space reserved for the words from feeds. #
Instead display the first words from the description element of the item where you would put the title. If there are too many words, flow them into the space you've allocated for the description, but do not repeat words from the description. Again, you'd displaying something that isn't in the feed. The author did not repeat the words, so you can't do that. #
That's it, unless I'm missing something, and if I am, tell me. You can send me email, dave@scripting.com, and if you don't want me to publish it, say so and I won't. I don't want to embarrass anyone, I just want to solve this problem and move on to a feed world where feeds with items without titles are handled well by the reader software. #
BTW, one more thing, some feeds will have both kinds of posts, items with titles and items without. My feed is like that. The item for this post will have a title because the post has a title. #
Last update: Thursday December 8, 2022; 6:08 PM EST.
You know those obnoxious sites that pop up dialogs when they think you're about to leave, asking you to subscribe to their email newsletter? Well that won't do for Scripting News readers who are a discerning lot, very loyal, but that wouldn't last long if I did rude stuff like that. So here I am at the bottom of the page quietly encouraging you to sign up for the nightly email. It's got everything from the previous day on Scripting, plus the contents of the linkblog and who knows what else we'll get in there. People really love it. I wish I had done it sooner. And every email has an unsub link so if you want to get out, you can, easily -- no questions asked, and no follow-ups. Go ahead and do it, you won't be sorry! :-)