SwarmShepherd
2014-03-13 15:41:23 UTC
Hi All,
This is not a technical post, I'm hoping for general (and understandable)
discussion of the state of things for Dart-Polymer components waiting in
the wings...
Just spent 1 1/2 intense days in another "HTML crack" where one really
must/should have lots of experience with HTML/CSS *OR* be maybe use one
of those shiny Component Libraries like the DartAPI pages do - including
"BootJack". I see that these very components are being ported and worked
on for Dart-Polymer.
So far my learning experience with Dart-Polymer and trying to use only
standard (simple & unadorned) is* mixed .* But I am learning a lot so I am
not really terribly unhappy - sometimes I get amazing things done in 1/2
hour. And sometimes I fall between the cracks and lose a day and more
trying to do some little thing like actually fetch the data from a
multi-selection "listbox". I don't know what I don't know, logically
enough, so have been searching and often try to use "JS"y tricks with
Dart-Polymer this way and that only to have it not work.
*Project Particulars:* We have a very "Ajaxy" set of 12 or so components
using WebSockets and that has functioning well for a week. So far I have
been able, with the help of SO twice, been able to get a full screen of
fairly well interwoven components to dance together as I hoped. But there
is a need for a log-in, for a set of related "entry scope" options, a test
page, and a "help page" and scrolling between seems unnatural, and this
seems the perfect job for a set of at the top of each page "horizontal
tabs".
*Last Big "Crack": *The data from all the pages are really one natural
bundle. So having 4-5 separate pages and linking just makes little sense.
Fairly early into researching "Tabs" I realized this is not dealt with
(again) in HTML the in structured way that I know to use. I read somewhere
that one can just use Buttons and make them pretty. I learned about
scrolling, "visible"/"hidden" attributes so after a few hours an idea for a
strategy started forming :) and that was about 14 hours before I had it
actually "fully functional".
*The Particular Problem: *was that my nice "button set" was being
reproduced 4 times, so I needed 4 Polymer Components and each was getting
pretty bulky. (For hours I had a "button set" that told me perfectly right
where I was, but was always off for my current screen". It took, for me, a
lot of trial and error to get a solution.
*MyStory conclusion*: This stuff is for the bleeding edge type - HTML /
Polymer /Dart Ninja warrior & experts! Somebody wanting to "just
concentrate on the application" will find themselves climbing walls again
and again - imho.
*Discussion:* I picked up from Guenter here that he just ported "Tabs" to
Dart-Polymer from somewhere but hasn't actually used. I chased down his
code and studied long enough to think the risk of overhead/compatibility
and such issues was not worth it - at least IF I could get my silly row of
buttons to function. But this is the Specific case, and I'm trying to
think where things are in general. My strategy is turning out to be this:
Keep my UI code as simple as possible and beat my head against the walls
as necessary to avoid the use of any 3rd party library UNTIL this stuff has
been fairly well tested, has become stable, and there's at least some kind
of organized documentation.
*A few concrete questions:*
- When is this likely to happen, and how long will the "HTML / Polymer"
experts only period be likely to last?
- Where actually is this stuff, and who all is working on it?
- Is there a (JS I assume) library such as BootJack that can be used in
the interim that would smooth over some of these problems? (What kind of
overhead / compatibility issues / general usefulness....??)
Sorry for such a wordy posting, I'm probably, hopefully, at a point now
where I only need to add general simple HTML components and the existing
simple model of one component one class with all my other stuff that has
evolved
should get the job done.... but I never know, and perhaps this can help
others.
Thanks,
_george
This is not a technical post, I'm hoping for general (and understandable)
discussion of the state of things for Dart-Polymer components waiting in
the wings...
Just spent 1 1/2 intense days in another "HTML crack" where one really
must/should have lots of experience with HTML/CSS *OR* be maybe use one
of those shiny Component Libraries like the DartAPI pages do - including
"BootJack". I see that these very components are being ported and worked
on for Dart-Polymer.
So far my learning experience with Dart-Polymer and trying to use only
standard (simple & unadorned) is* mixed .* But I am learning a lot so I am
not really terribly unhappy - sometimes I get amazing things done in 1/2
hour. And sometimes I fall between the cracks and lose a day and more
trying to do some little thing like actually fetch the data from a
multi-selection "listbox". I don't know what I don't know, logically
enough, so have been searching and often try to use "JS"y tricks with
Dart-Polymer this way and that only to have it not work.
*Project Particulars:* We have a very "Ajaxy" set of 12 or so components
using WebSockets and that has functioning well for a week. So far I have
been able, with the help of SO twice, been able to get a full screen of
fairly well interwoven components to dance together as I hoped. But there
is a need for a log-in, for a set of related "entry scope" options, a test
page, and a "help page" and scrolling between seems unnatural, and this
seems the perfect job for a set of at the top of each page "horizontal
tabs".
*Last Big "Crack": *The data from all the pages are really one natural
bundle. So having 4-5 separate pages and linking just makes little sense.
Fairly early into researching "Tabs" I realized this is not dealt with
(again) in HTML the in structured way that I know to use. I read somewhere
that one can just use Buttons and make them pretty. I learned about
scrolling, "visible"/"hidden" attributes so after a few hours an idea for a
strategy started forming :) and that was about 14 hours before I had it
actually "fully functional".
*The Particular Problem: *was that my nice "button set" was being
reproduced 4 times, so I needed 4 Polymer Components and each was getting
pretty bulky. (For hours I had a "button set" that told me perfectly right
where I was, but was always off for my current screen". It took, for me, a
lot of trial and error to get a solution.
*MyStory conclusion*: This stuff is for the bleeding edge type - HTML /
Polymer /Dart Ninja warrior & experts! Somebody wanting to "just
concentrate on the application" will find themselves climbing walls again
and again - imho.
*Discussion:* I picked up from Guenter here that he just ported "Tabs" to
Dart-Polymer from somewhere but hasn't actually used. I chased down his
code and studied long enough to think the risk of overhead/compatibility
and such issues was not worth it - at least IF I could get my silly row of
buttons to function. But this is the Specific case, and I'm trying to
think where things are in general. My strategy is turning out to be this:
Keep my UI code as simple as possible and beat my head against the walls
as necessary to avoid the use of any 3rd party library UNTIL this stuff has
been fairly well tested, has become stable, and there's at least some kind
of organized documentation.
*A few concrete questions:*
- When is this likely to happen, and how long will the "HTML / Polymer"
experts only period be likely to last?
- Where actually is this stuff, and who all is working on it?
- Is there a (JS I assume) library such as BootJack that can be used in
the interim that would smooth over some of these problems? (What kind of
overhead / compatibility issues / general usefulness....??)
Sorry for such a wordy posting, I'm probably, hopefully, at a point now
where I only need to add general simple HTML components and the existing
simple model of one component one class with all my other stuff that has
evolved
should get the job done.... but I never know, and perhaps this can help
others.
Thanks,
_george
--
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+unsubscribe-dYxm/***@public.gmane.org
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+unsubscribe-dYxm/***@public.gmane.org