Live data from Hacker News

A 220b spreadsheet app in HTML/JS

xem.github.io

21–30 of 105 posts

Re: A 220b spreadsheet app in HTML/JS

#23
Initially, I wa puzzled by how the grid could be showing placeholders (the grey "A1", "A2", etc.) when there's no placeholder attribute defined in the source code. Then I discovered that the code running in the demo is not actually the showcased 220-byte source code at all. The code is still impressively small, but you should fix this — it's misleading as is.

Re: A 220b spreadsheet app in HTML/JS

#30

Initially, I wa puzzled by how the grid could be showing placeholders (the grey "A1", "A2", etc.) when there's no placeholder attribute defined in the source code. Then I discovered that the code running in the demo is not actually the showcased 220-byte source code at all. The code is still impressively small, but you should fix this — it's misleading as is.

I think that's probably just because it's been revised and the placeholders were added after.

To be fair, it only adds an extra 18 chars, taking it up to 238-byte in size.

EDIT Here it is once you add the extra property:

    (o=b=>{for(j in a)for(i in a)y=a[i]+-~j,b?document.write([["

"][i]]+""):eval(y+(".value"+o[y]).replace(/[A-Z]\d/g," +$&.value"))})(a="ABCD")

Post reply on HN