-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<to-do> #89
<to-do> #89
Conversation
@brandondees already on it. |
@tmornini @brandondees First working pass |
https://github.com/tastejs/todomvc-app-template @brandondees this is rediculous the amount of code they want you to have for their boilerplate. I feel we should have a Please advise... |
yeah i agree but it still helps advertise if we can play by their rules to at least be in the game, i think. then also do the lighter variant and make a hullabaloo about how the snuggsi way is even better faster stronger and can still pass all the acceptance tests. you might look at how other tools have done their entries, i assume stuff like polymer is represented already and might give you some idea of ways this competition can be approached. |
5fdde0e
to
ba01a45
Compare
@snuggs You need to speed things up a bit. The app loads and runs slowly and it took you way more than 12 hours to get this done. 😄 Oh, and while you're at it, this has way too few commits. Break that shit up! 👍 |
@halorium Your name in lights! |
@tmornini Minus filtering been done. Looks like we're coming in under 100LOC (Whitespace included). Prunin' the bonzai bush. Take a look @ React while you wait. https://github.com/tastejs/todomvc/tree/gh-pages/examples/react/js |
@snuggs I count 181+62+108+87+50 = 488 LOC for React |
@@ -602,6 +602,9 @@ <h2 slot=header> | |||
<a href=/examples/input-output.html><input-output></a> | |||
|
|||
<li> | |||
<a href=/examples/to-do><to-do></a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this valid? The <li>
doesn't appear to be closed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://networkingtimes.com/blog/wp-content/uploads/2015/10/closing.gif
HTML5 is way less strict than the XHTML which became best practice for a while... closing tags are mostly optional. how does it work? ¯\(ツ)/¯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tmornini there's TONS of them actually. Been in the spec (even IE6) since like 2000. DOM Level 2.
Surprised you didn't say anything about <html>
the <body>
tag and the <head>
tag... or lack thereof ;-)
https://www.w3.org/TR/html5/syntax.html#optional-tags
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brandondees HOW it does it is the following DOMParser
logic that runs. It's different per element but this is the spec rules for <p>
/cc @tmornini
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correction. Looks like since 1999 DOM Level 0 @tmornini. Article came out in 2008 and author basically stated "9 years later the information still isn't out there" https://meiert.com/en/blog/optional-tags-in-html-4/
examples/to-do/index.es
Outdated
get count () | ||
{ return this.context.tasks.length } | ||
}) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mentioned a blank line at the bottom of source files and mentioned that they're for me.
I don't like blank lines at the bottom. I think you're thinking of no line ending on the last line, which I think is horrible. 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is a line ending? Now i'm confused @tmornini
@snuggs Just a drive-by-review. Squirrel! 😄 |
@snuggs Looking good! 🍿 |
@brandondees @mrbernnz @tmornini @halorium @btakita @kurtcagle @dcchuck @janz93 @pachonk @henryarbolaez @Robertchristopher |
@@ -0,0 +1,78 @@ | |||
Element `to-do` | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have mixed feels about this blank line... i think it works great when it's one file per element declaration, nothing else in the file. if it's inline with other content, such as in html or whatever, then i think you gotta have visual grouping of related code more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm well best part is it's just whitespace so we can author how we please. :-) @brandondees
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah just commenting
} | ||
|
||
|
||
onidle (mark) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when does this run? frequently? seems like it might be doing wasteful work if so. might be able to optimize with a dirty checking mechanism for eager exit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brandondees it runs after render. We have to do this or creates logic in view. Currently this operation takes about 100mu
|
||
store (id=this.tagName) { | ||
localStorage.setItem | ||
(id, JSON.stringify (this.context)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems like a pretty naive approach but no worries there, given the use case. I wonder if it could be named something clearer, like SimpleStorableStateElement
or whatever to clarify purpose/intent a bit more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments, but LGTM
Fixes #85
- Follow TODO List App Specification
- Create importable
<to-do>
custom element.- styling
- Use Web Storage API