Comment

Comment by slim

The most useful library I built is "dome()" a javascript function that would return a dom element out of an array. So that dome(["a",{href:"http://news.ycombinator.com"},["img",{src:"http://news.ycomb..."}]]) would return a clickable icon for example.

I wrote the function in 2007 and I'm still using it today. It's a handful lines of code.

parent slim 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton