Hi All,I've been busy at work full time again in Dart for a few weeks. Not my first go at Dart, but the 6mo project was core + statistics/graphics and not much UI.Brief note on the project below.After spending weeks reviewing various "stacks" I went "short" :) again with Dart and grabbed at Polymer more or less because I don't relate to the bigMVC frameworks, and polymer made sense - as far as the simple examples that are out there.Just now I was reading an announcement of progress on Angular-Dart (trying to keep up) and decided to check out the GitHub depositories for theseprojects:ANGULAR4,371 commits6 branches72 releases667 contributorsPOLYMER1,249 commits9 branches18 releases17 contributorsI don't want to read too much into this, nor do I wish to ignore 'writing on the wall' '(if there is any).
What I'd really appreciate is, from the Dart near and longer term perspectives what relative resources are at work to complete and add features.Again, my feeling, based on a really not very in-depth review, was that Angular might be more likely to go head to head with "Rails" / Enterprisekind of stuff, whereas Polymer has more of a "here are the basic pieces - if you are know and use good OO practices you can do "anything".Would that be "fair" to both projects/approaches?
And finally, has Google dedicated some resources to the Polymer project? I mean like 3-4 guys working on this stuff most every day, or has thePolymer project, perhaps, had a few 3 party sponsors that have since gone on with other things? Another words, is Polymer entirely alive and wellin the hearts of my fellow Dartonians? The examples really provided a great start, but they were very basic, and haven't been updated or expandedmuch in the last 3 months...
Comments?
Thanks,_swarmii*Notes on the project: The current UI project is small'ish but 'very ajaxy', in that there all kinds of updates occurring as the user selects from some 6 different Selection/Optioncomponents (3 of 6 listBoxes with a few custom features added). (The project is a sort of generalized "DataServer Navigator" and it hooks up to our dataservers that areimplemented in Ruby to do efficient CRUD. WebSockets based. Its rather a "distributed entry" application for now.)
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.
switch to web_ui, switch to polymer, switch to angular, switch to ..., shit!
switch to web_ui, switch to polymer, switch to angular, switch to ..., shit!There is some truth in this...
I want to write web app in dart. I don't want to write a single line of html or css by hand. Reusable components in programming are: libraries and classes.
Can polymer help in that? Can I find menus, grids, etc as classes to be instantiated in dart proper? Is there any example of purely programmatic operation with polymer?
Every declarative language sooner or later (rather sooner) hits the wall, upon which the decision has to be made: either to cease to exist, or become Turing-complete language.Who wants to cease to exist? Naturally, everyone moves towards Turing-completeness. one feature at a time. It's a bottomless pit..The whole effort is driven by illusion that declarative language is more accessible for non-programmer. It's not. Non-programmer will hit the wall, too, soon after "hello world"", and will face a similar choice:either to give up, or to become a programmer..I had very bad recollections of one contract gig I had, the project started by non-programmers (or I don't know whom) using certain declarative (graphical!) language, which was impossible to maintain after hitting complexity wall.Just hated myself for doing this, despite good pay and everything... You can't believe what happens outside of your ivory tower guys.Create good programmatic API and library of reusable components - people will happily use it without depending on endless stream of new "frameworks", all doomed to begin with.
Every declarative language sooner or later (rather sooner) hits the wall, upon which the decision has to be made: either to cease to exist, or become Turing-complete language.Who wants to cease to exist? Naturally, everyone moves towards Turing-completeness. one feature at a time. It's a bottomless pit..The whole effort is driven by illusion that declarative language is more accessible for non-programmer. It's not. Non-programmer will hit the wall, too, soon after "hello world"", and will face a similar choice:either to give up, or to become a programmer..I had very bad recollections of one contract gig I had, the project started by non-programmers (or I don't know whom) using certain declarative (graphical!) language, which was impossible to maintain after hitting complexity wall.Just hated myself for doing this, despite good pay and everything... You can't believe what happens outside of your ivory tower guys.
Create good programmatic API and library of reusable components - people will happily use it without depending on endless stream of new "frameworks", all doomed to begin with.+1
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.
Every declarative language sooner or later (rather sooner) hits the wall, upon which the decision has to be made: either to cease to exist, or become Turing-complete language.Who wants to cease to exist? Naturally, everyone moves towards Turing-completeness. one feature at a time. It's a bottomless pit..
The whole effort is driven my illusion that declarative language is more accessible for non-programmer. It's not. Non-programmer will hit the wall, too, soon after "hello world"", and will face a similar choice:
either to give up, or to become a programmer..I had very bad recollections of one contract gig I had, the project started by non-programmers (or I don't know whom) using certain declarative (graphical!) language, which was impossible to maintain after hitting complexity wall.Just hated myself for doing this, despite good pay and everything... You can't believe what happens outside of your ivory tower guys.
Create good programmatic API and library of reusable components - people will happily use it without depending on endless stream of new "frameworks", all doomed to begin with.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.
Since Dart is much more declarative language, and provide good notation of "..' , it is possible to define with similar amount of code as HTML, it become less persuasive in Dart than in other more verbose language.The main advantage of using code rather than template will be to make it more composable (not like using template).
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.
Justin,thanks for your response. Yes, it's helpful and informative. I'd like to see it implemented.
One small thing that a bit worries me is that you didn't start from polished programmatic API and then create declarative layer on top of it (for those who like it), but you are going in reverse direction (I may be mistaken though).
I know from experience that this kind of reverse direction may eventually work, too, but you may need more iterations, and as a result, the API can be not as good as it could be otherwise (just because it primarily serves the interests of declarative style). Again, I might be wrong. Still, If you ever have a minute (or an hour), please write something about purely programmatic operation with polymer.
While writing this description, you might see wrinkles, and that might help you, too. Plus, it will provide material for discussion.
Right now, html API is very good, from what I saw. Great idea of returning streams for onClick and friends. And everything else looks clean. If you can make Polymer fit into this nicely, it will be great!
<templateVery bright people are very prone to creation of new languages. This is not to say it's bad - dart is a new language, too.repeat="{{fruit in fruits}}"> <li> I like {{ fruit }}. </li> </template>
--
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.

Rua Olimpiadas, 194 - 2º/8º/9º/13º Andares
Vila Olímpia - São Paulo / SP - Brasil
Cep: 04551-000
Tel.: + 55 11 3028-9800
Fax: + 55 11 3028-9842
marcelo@brasfond.com.br
www.brasfond.com.br
<template if="{{count <= 0}}">
<p>Click the button. It's fun!</p>
</template>
<template repeat="{{fruit in fruits}}">
<li>
I like {{ fruit }}.
</li>
</template>
<head>
<link rel="import"
href="packages/fancy_button/fancy_button.html">
</head>
<polymer-element name="fancy-button" extends="button">
Perhaps I understand what Alex is trying to articulate. Projects like Polymer are forced to re-invent large sections of a general purpose programming language in the context of HTML in order to express what's needed.
Specifically:variables{{count}}
conditionals<templateif="{{count <= 0}}"> <p>Click the button. It's fun!</p> </template>loops<templaterepeat="{{fruit in fruits}}"> <li> I like {{ fruit }}. </li> </template>
imports<head> <linkrel="import"href="packages/fancy_button/fancy_button.html"> </head>classes (aka custom tags)inheritance<polymer-element name="fancy-button"extends="button">
<select is="my-select"><!-- now the HTML parser can correctly parse this using the "select" parsing rules --><option>...</select>
and even procedural abstraction. This is not aesthetically satisfying; a general purpose language does these things better. The use of HTML allegedly reduces the risks from imperative side effects (but your controllers will still do as they please). Disciplined developers can define their view code in a functional style anyway however. If your controllers aren't functional as well, things aren't all that declarative anyway.Ultimately the main thing is this is what most people expect right now. But fashions change.--
Cheers, Gilad
--
--
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.
import 'dart:html';void main() {...</html>
Angular has this integrated in it's Scope. It also makes use of the scopes tree structure to allow to limit how far an event may reach (only children, entire tree, all children of the parent,...)
Hi All,I've been busy at work full time again in Dart for a few weeks. Not my first go at Dart, but the 6mo project was core + statistics/graphics and not much UI.Brief note on the project below.After spending weeks reviewing various "stacks" I went "short" :) again with Dart and grabbed at Polymer more or less because I don't relate to the bigMVC frameworks, and polymer made sense - as far as the simple examples that are out there.Just now I was reading an announcement of progress on Angular-Dart (trying to keep up) and decided to check out the GitHub depositories for theseprojects:ANGULAR4,371 commits6 branches72 releases667 contributorsPOLYMER1,249 commits9 branches18 releases17 contributorsI don't want to read too much into this, nor do I wish to ignore 'writing on the wall' '(if there is any).What I'd really appreciate is, from the Dart near and longer term perspectives what relative resources are at work to complete and add features.Again, my feeling, based on a really not very in-depth review, was that Angular might be more likely to go head to head with "Rails" / Enterprisekind of stuff, whereas Polymer has more of a "here are the basic pieces - if you are know and use good OO practices you can do "anything".Would that be "fair" to both projects/approaches?And finally, has Google dedicated some resources to the Polymer project? I mean like 3-4 guys working on this stuff most every day, or has thePolymer project, perhaps, had a few 3 party sponsors that have since gone on with other things? Another words, is Polymer entirely alive and wellin the hearts of my fellow Dartonians? The examples really provided a great start, but they were very basic, and haven't been updated or expandedmuch in the last 3 months...Comments?Thanks,_swarmii*Notes on the project: The current UI project is small'ish but 'very ajaxy', in that there all kinds of updates occurring as the user selects from some 6 different Selection/Optioncomponents (3 of 6 listBoxes with a few custom features added). (The project is a sort of generalized "DataServer Navigator" and it hooks up to our dataservers that areimplemented in Ruby to do efficient CRUD. WebSockets based. Its rather a "distributed entry" application for now.)
--
Yeah, it was a fruitful discussion indeed. Going again through the message, though, I couldn't help but notice that while each individual post certainly makes sense (with the possible exception of my own ones), the whole thing is utterly confusing.Let's start fro the following statement::
> Sergey who ported from GWT to DartGWT is now working on porting Dart UI to AngularDart UI ;-)
There's DartGWT - rich set of components. What is missing? Shadow DOM! These components are not composable, they don't behave like native HTML elements, etc.It stands to reason to assume that the natural step would be: refactor all these components and turn them into shadow DOM elements. Then, they will be instantly available through programmatic interface (the whole DartGWT is programmatic, so it's just a natural next step).And then, they will be perfectly composable, and everything else - the dream comes true.Except that it doesn't: instead, port to Angular is taking place. I personally will never touch Angular with 6-foot pole, but this is immaterial. The question is: will these components be reworked into shadow DOM elements in Angular? Please correct me if I'm wrong, but I can think only of 2 possible answers: Yes or No.
In case of Yes, what's the role of Polymer, which targets the same niche?
In case of No, they whole thing just doesn't make sense: after all this herculean job of poring GWT to dartGWT and then from dart GWT to Angular, components still won't be composable, and now what? Will the same author start porting Angular components to Polymer?
It's a puzzle. We can try to solve it my collective brainstorming, but I'm not sure..
On Thu, Feb 27, 2014 at 11:22 AM, Matthew Butler <butler....@gmail.com> wrote:
On Thursday, February 27, 2014 3:03:15 PM UTC-4, George Moschovitis wrote:switch to web_ui, switch to polymer, switch to angular, switch to ..., shit!There is some truth in this...There's limited truth to it. To my knowledge web_ui is still being supported just not seeing new versions. Polymer is web_ui >= 0.5.0. It was also changed to a new package to more closely mirror the functionality of the Polymer.js port.Beyond that, Polymer can still continue be used, even if you're using angular, or whatever the next MV* framework comes out. That's the whole point of Polymer elements. to be reusable everywhere. not just with a Polymer application. (The same cannot be said for angular/angular components).Couldn't have said that better :) Yeah, web_ui was just our code name until "Polymer" got its real name. And because it's just a bunch of elements, it should work in your framework of choice.On Thu, Feb 27, 2014 at 1:38 PM, Bob Nystrom <rnys...@google.com> wrote:
I'm not a polymer expert by any means, but my understanding is, no, Polymer doesn't cover your use case. The folks behind Polymer are strongly in favor of declarative languages. They want you to write less code and more HTML and CSS.
On Thu, Feb 27, 2014 at 1:19 PM, Alex Tatumizer <tatu...@gmail.com> wrote:
I want to write web app in dart. I don't want to write a single line of html or css by hand. Reusable components in programming are: libraries and classes.
Can polymer help in that? Can I find menus, grids, etc as classes to be instantiated in dart proper? Is there any example of purely programmatic operation with polymer?That's a correct assessment of the Polymer team's opinions, however their actual elements can be created from code, e.g. " var grid = new PolymerGridLayout();" ... I'm not sure it's the best way to build up a DOM tree, but it's possible. (The main issue right now in Dart is we don't have all of the elements available yet.)
John, if it is supported or not is the least important thing here. Sincerely, if you start new Dart project today are you gonna use web_ui? What about an entire set of components like our friend (from Japan?) is doing?I started coding all my ui programatically, then I changed to web_ui, and now I'll change to polymer.
Every time I get a new version of Dart Editor I pray to not have to refactor my projectS again. That's the price for using an evolving technology but I hope not have to pay this price forever.
I hope you're right about polymer long life. Like it or not I'd like to see something stable.Em quinta-feira, 27 de fevereiro de 2014 18h55min41s UTC-3, John Messerly escreveu:On Thu, Feb 27, 2014 at 11:22 AM, Matthew Butler <butler....@gmail.com> wrote:
On Thursday, February 27, 2014 3:03:15 PM UTC-4, George Moschovitis wrote:switch to web_ui, switch to polymer, switch to angular, switch to ..., shit!There is some truth in this...There's limited truth to it. To my knowledge web_ui is still being supported just not seeing new versions. Polymer is web_ui >= 0.5.0. It was also changed to a new package to more closely mirror the functionality of the Polymer.js port.Beyond that, Polymer can still continue be used, even if you're using angular, or whatever the next MV* framework comes out. That's the whole point of Polymer elements. to be reusable everywhere. not just with a Polymer application. (The same cannot be said for angular/angular components).Couldn't have said that better :) Yeah, web_ui was just our code name until "Polymer" got its real name. And because it's just a bunch of elements, it should work in your framework of choice.On Thu, Feb 27, 2014 at 1:38 PM, Bob Nystrom <rnys...@google.com> wrote:
I'm not a polymer expert by any means, but my understanding is, no, Polymer doesn't cover your use case. The folks behind Polymer are strongly in favor of declarative languages. They want you to write less code and more HTML and CSS.
On Thu, Feb 27, 2014 at 1:19 PM, Alex Tatumizer <tatu...@gmail.com> wrote:
I want to write web app in dart. I don't want to write a single line of html or css by hand. Reusable components in programming are: libraries and classes.
Can polymer help in that? Can I find menus, grids, etc as classes to be instantiated in dart proper? Is there any example of purely programmatic operation with polymer?That's a correct assessment of the Polymer team's opinions, however their actual elements can be created from code, e.g. " var grid = new PolymerGridLayout();" ... I'm not sure it's the best way to build up a DOM tree, but it's possible. (The main issue right now in Dart is we don't have all of the elements available yet.)
Dart and polymer.dart very great, but we need to just work, do not let us fall into a large bug inside.You know our project now have over 100 + polymer components, our team has invested a year of time, we have no way out but to follow polymer forward.
It seems wind changed direction already. "React" (courtesy of FB) is all the rage now. Fully programmatic framework, with a bit of syntax sugar.
Interesting idea: they translate something that looks like embedded HTML into normal code, e.g. you writevar CommentBox = React.createClass({
render: function() {
return (
<div className="commentBox">
Hello, world! I am a CommentBox.
</div>
);
}
});and they generatevar CommentBox = React.createClass({
render: function() {
return (
React.DOM.div({
className: 'commentBox',
children: 'Hello, world! I am a CommentBox.'
})
);
}
});
Obviously, you can write directly in the latter format, with no preprocessing, but they claim embedded "HTML" is more readable. Maybe. But the point is that even with preprocessing, everything is simple and fast and intuitive and programmatic. If same idea can find its way to dart (natively, not as a wrapper around they lib), I think it can become an instant hit, especially considering that dart is much nicer language to begin with.