Wisdom

Use elements, not attributes, when something needs to grow

Quote

The problem with attributes is they're just a one and done. You get it's a key value, you get it you get one value, right? And if you try to stuff something else in there, you have to use delimiters.

Episode 134: ChapterGPT (episode page, opens in a new tab) 01:01:22 (play audio from this timestamp, opens in a new tab)

Speaker-labeled

Summary

An XML attribute is one-and-done: one key, one value, and anything more needs delimiters. If a feature will need to expand, make it its own tag so it stays extensible.

Also said

  1. Episode 155: Landing Zone (episode page, opens in a new tab) 00:31:48 (play audio from this timestamp, opens in a new tab)

    They have the tags that we use have to be definitive, so that apps know what to do with the content that the tag is referencing.

    Speaker-labeled