To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/a6394d86-c4c1-4070-80e1-cca9840c776d%40googlegroups.com.Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
I'm not sure what weight Polymer Dart has on general Polymer JS development, but I think it needs to be mentioned that in Polymer Dart, the attributes property's purpose has already shifted towards documenting/code validity checking: it is always required that a published property be defined in the element's Dart implementation [...]
Generally it’s preferable to use the attributes attribute because it’s the declarative approach and you can easily see all of the exposed properties at the top of the element.
You should opt for the publish property when either of the following is true:
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAJup4OX%2Bayp-dYtBG-8zzvD%3DAa8WAQOGBRcnnjRy27Tm9Spi1A%40mail.gmail.com.
yeah, I guess to me, those reasons aren't worth the mental overhead for having two ways of doing the same thing. Since people can choose "publish", humans and tools can't really rely on "attributes" telling the full story, so it kind of undermines the declarative value of "attributes". Honestly I would be fine with either "attributes" or "publish" if it was the only way. Anyway, just my opinion FWIW :)
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAHbmOLZrFs%3DA24hGyP9Ab8uHDeMqsSUU1%2BQB%3Dd7dpUzSC8TEKg%40mail.gmail.com.
As I mentioned, our philosophy at the moment is that the code itself should be as close as possible to optimized for run-time use. Additionally, we prefer that the bower-able packages have as little non-runtime content as possible. Both principles are aimed to reduce our general footprint.However, this is all on a spectrum.Current exceptions to the code rule include meta-data in comments, which today we use for documentation and cataloging. We could conceivably expand this metadata to accommodate tooling, it's all a matter of balance.
Designer (nee Sandbox) uses separate metadata files to do it's thing. Our experience is that IDE tools can take advantage of more metadata than we are comfortable putting directly into the run-time file.Current exceptions to the package rule include legal claptrap (which we want to reduce; at this level of granularity, reproducing each of those files N times is poor ergonomics), the demo file, and the index.html file (all of which I'm still stressing about =P).