r/javascript • u/[deleted] • Jun 30 '17
Days Since Last JavaScript Framework
https://dayssincelastjavascriptframework.com/32
u/cyberst0rm Jun 30 '17
this sounds like a cry for help...anyone want to mock up a framework to keep track?
15
6
4
u/Shaper_pmp Jul 01 '17
The joke is good, but god damn that's some fuck-ugly HTML.
I mean it's technically valid, but it's still unnecessarily gross.
2
u/tswaters Jul 01 '17
You mean the lack of container element, being minified or all the meta tags? It looks minimalistically beautiful to me.... except for all the meta tags, but such is life.
1
u/Shaper_pmp Jul 01 '17
You mean the lack of container element
Yes - the lack of html, head or body tags specifically, and trying to save a couple of bytes by not quoting HTML attributes, etc.
Although now you mention it, if you're trying to save space to the point you'll not quote attributes and leave out html/head/body to save a handful of bytes, why on earth would you then waste a hundred times as many absolutely stuffing the markup with more than 10 almost-useless meta tags like msapplication-tap-highlight and apple-mobile-web-app-status-bar-style?
Nothing about that markup makes any sense.
7
5
3
Jun 30 '17
was expecting this to be more than just <strong>0</strong> :/
10
u/freebit Jun 30 '17
<span style="font-weight:700;">0</span>There ya go! :)
14
Jun 30 '17
needs more web scale:
const span = document.createElement('span'); span.style.fontWeight = '700'; span.textContent = '0'; document.body.insertBefore(span, document.body.firstChild);6
2
u/danielhep Jun 30 '17
Maybe someone should write a library to help with that? I mean four lines of code for such a simple thing... come on.
3
31
u/[deleted] Jul 01 '17
Oh come on, everyone knows it should be NaN