Better HN
topnewbestaskshowjobs
Log inSign up

codepsycho

1 karma · joined Apr 18, 2016 (10y ago) · 5 submissions

Submissions

comment 5y ago · link · parent

AFAIK it hasn't "added support". We've used material icons for a year or two now from Google Fonts. Good to see this getting adoption but it's been available for some time

comment 7y ago · link · parent

We have used Polymer (1, 2 & 3), lit-html and LitElement on large production websites for some time now.

Following the progression was a rocky road at times but it really does now provide a very lean base to build from. I rarely find the need to use a framework or some such library anymore unless for consistency within existing projects.

Reuseable components really are easy now and really are reuseable. It'll be very interesting to see where this project goes...

3.

Polymer – A few problems and their solutions(43081j.com ↗)

1 points · by codepsycho · 10y ago · discuss

comment 10y ago · link · parent

This is because:

> [] + {}

Becomes:

> [].toString() + {}.toString()

Empty array to a string is "" (empty string). Object to string is "[object Object]".

> {} + []

Becomes:

> +[]

The prefix turns the array into a number, same as Number([]). This seems to be because {} is interpreted as a code block, not an object, due to it being the first thing.

Put it in parentheses and it'll do toString like before.

5.

Declarative Routing in Polymer JS(43081j.com ↗)

3 points · by codepsycho · 10y ago · discuss