The CSS selector `bar .foo:last-child` is surprising. It only ever applies to the last child of bar, iff it has the class foo.
miniblog.
Related Posts
I'm super impressed by how many lint rules can be implemented with just eslint's no-restricted-syntax and selectors. Example:
{
selector: "ExportNamedDeclaration[declaration=null][source=null]",
message: "Add `export` directly to the function instead of a block export."
}
So many UIs are fuzzy text completion now. For example: ivy in Emacs, VS Code's command selector and Firefox's address bar.
They scale really well, have good discoverability, and they're forgiving of typos. Is this a local optimum in UI design?
Hungarian notation definitely has its uses. I find writing effectful! predicate? or $selector very helpful for reading code.