Skip to content
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

TodoMVC using Mojito (v0.5.6 - with updates) #507

Closed
wants to merge 4 commits into from
Closed

TodoMVC using Mojito (v0.5.6 - with updates) #507

wants to merge 4 commits into from

Conversation

gvaish
Copy link

@gvaish gvaish commented Mar 28, 2013

Originally for #435 - couldn't find a way to update the same pull request - may be because I scratched the original fork rather than rebasing again.

Commit log

The files in the folder comprise of only the code and not the final running application.

After all hits-and-tries realized that I cannot make it up and running on Github because the application needs to make calls to POST /tunnel and Github pages won't allow that.

@passy
Copy link
Member

passy commented Mar 28, 2013

Thanks for the update. For the next time, please force-push to your existing branch and don't open another PR, as @sindresorhus said. Having a new PR for every change gets really confusing quickly.

@gvaish
Copy link
Author

gvaish commented Mar 28, 2013

@passy I know... I also have multiple PRs - it's painful as well!

@gvaish
Copy link
Author

gvaish commented Mar 28, 2013

@caridy - Can you update your task at https://trello.com/card/review-todomvc-by-gaurav/504e5e3b7cd1578456fc430f/406 for this pull request?

@passy
Copy link
Member

passy commented Apr 4, 2013

@gvaish Could you check our Contribution Guidelines and make sure to match the code style mentioned there? :)

@gvaish
Copy link
Author

gvaish commented Apr 5, 2013

@passy Yikes. Seems like some work for me this weekend as well! Well, I think I'll pick this up early next week.

@addyosmani
Copy link
Member

Thanks @gvaish. We appreciate the extra time you're putting in to match our code style. Makes comparison a little more easy :)

@gvaish
Copy link
Author

gvaish commented Apr 12, 2013

Anytime, @addyosmani! :-)
Actually, browsing through I realized that I'd been missing a few test cases as well.

@gvaish Todo using Mojito

The files in the folder comprise of only the code and not the final running application.
After all hits-and-tries realized that I cannot make it up and running on Github because the application needs to make calls to "POST /tunnel" and Github pages won't allow that.

* readme.md: Readme
* **/*: Code files

@gvaish Updating latest code from the base project at https://github.com/gvaish/todomvc-mojito/tree/master/todomvc-mojito-common
@gvaish
Copy link
Author

gvaish commented Apr 13, 2013

Done.

  1. Squashed commits - did it after eons
  2. Unit Tests - did a lot of them
  3. Coding style - was mostly as mine, so not much of a trouble. jshint only complained of bad option anon, sloppy for jslint, but left in the original code as it's auto generated. It also complained of confusing use of !! at line 37, col 37 - again left it as it is valid.

@gvaish
Copy link
Author

gvaish commented Apr 16, 2013

@passy / @addyosmani - Can you look at it now?

@caridy - Can you look at from Mojito's perspective... may be there's something that you may want to suggest / change / improve.

Changes squashed at https://github.com/gvaish/todomvc/commit/ac94dbb0586c13f1a59302e5c421d2039ee318e7

@passy
Copy link
Member

passy commented Apr 16, 2013

@gvaish I'm very happy to see tests here. :)

Could you run jshint with our config on your code? I'm still seeing a few styleguide deviations like function() instead of function ().

@addyosmani
Copy link
Member

Ping @caridy for any suggestions or a 👍 :)

I really appreciate seeing tests here too, @gvaish - well done. I think this should be good for us to land once we're happy there are no longer styleguide issues.

"appPort": 6789,
"staticHandling": {
"appName": "todomvc",
"useRollups": false
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deprecated

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The staticHandling or useRollups?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

userRollups

@caridy
Copy link

caridy commented Apr 23, 2013

Done with my notes! I found nothing big, but few things that could be improved.

+1

@passy
Copy link
Member

passy commented Apr 23, 2013

Thanks for reviewing, @caridy!

@gvaish
Copy link
Author

gvaish commented Apr 23, 2013

Thanks a ton @caridy!
Appreciate the review.

I'd be in London Hackathon this weekend... will try to have a push before month-end (can't guarantee though).

@sindresorhus
Copy link
Member

ping

@gvaish
Copy link
Author

gvaish commented May 10, 2013

No response from the server.

Service will come back to life next week (not weekend).

gvaish added a commit to gvaish/todomvc-mojito that referenced this pull request May 12, 2013
* application.json: Added assets, cleaned up log
* index.js: Deleted, required only for Manhattan
* definition.json: Empty, removed
* server.js: Updated
@gvaish
Copy link
Author

gvaish commented May 13, 2013

Pls use commit at 2c2b912 for review. f1470cf is empty, a166302 is redundant.

The delta comprises of the changes suggested by @caridy, with the major one being refactoring operate action into individual actions like getById, getAll, delete etc.

@gvaish
Copy link
Author

gvaish commented May 13, 2013

@sindresorhus Pong! :)

@sindresorhus
Copy link
Member

@gvaish I can only comment on the code style as I'm not familiar with this framework. Make sure you follow our code style: https://github.com/tastejs/todomvc/blob/gh-pages/codestyle.md

@stephenplusplus @passy anything to add?

@stephenplusplus
Copy link
Member

I'll be diving into this tonight. From first glance at the readme, getting up and running and the dependency of the other repo seem offputting, though I'm not sure there is a way to avoid this.

@stephenplusplus
Copy link
Member

I don't want to be a downer as any contribution to TodoMVC is great! However, this seems like more of a "labs" project than an official TodoMVC example. For starters, several files are prefixed with "Copyright (c) 2012 Yahoo! Inc. All rights reserved." However, if this is to be merged, here are just a few suggestions.

As @sindresorhus mentioned, the code style stuff (small things): files currently mix tabs and spaces, rogue indentations, anonymous function() vs anonymous function (). The code style guide will help.

mojits/TodoMojit/assets/ looks like it is intended to hold the todomvc-common files. Please note these have changed, and Bower usage is preferred. Is it possible to use Bower for this dependency and/or any others that the app uses? If not, this folder should be updated to hold the contents from todomvc-common, and include them as well (notably, base.js is missing).

Some functional things:

screen shot 2013-05-13 at 9 23 50 pm

The readme should definitely be expanded upon. Here are some questions and comments about the readme.

Do I have to do the git clone and all of that, or does the TodoMVC repo contain everything I need?

Why do todomvc-mojito-common and todomvc-mojito-server contain the same files?

cd todo-mojito-common; npm install -d

After I clone your repo, there is a "todomvc-mojito-....", but no "todo-mojito-..." Also, what is -d? (Not familiar with that!)

Is there a reason not to include todomvc-mojito-common and todomvc-mojito-server in the TodoMVC repo? To me, it seems like the dependency on your repo is undesirable/unnecessary(?).

In general, I am unfamiliar with Mojito, so I'm a perfect candidate to get use out of this demonstration. In summary, I'm confused as heck!

Thanks for your patience in working on this demo and tolerating my questions. I look forward to learning more!

@gvaish
Copy link
Author

gvaish commented May 14, 2013

@stephenplusplus Quick response: Have a look at https://github.com/gvaish/todomvc-mojito/ for common vs server thing - they are two different implementations using Mojito.

Detailed response: Framing it.

@passy
Copy link
Member

passy commented May 14, 2013

@stephenplusplus Excellent as always.

I'll also look over it after the next update. :)

@gvaish
Copy link
Author

gvaish commented May 23, 2013

Tied up personally. Will take some time...

@passy
Copy link
Member

passy commented May 23, 2013

@gvaish Thanks for letting us know. :)

@addyosmani
Copy link
Member

Pinging for a status check :)

@gvaish
Copy link
Author

gvaish commented Jul 16, 2013

Hate to say, but will have to wait for a couple of weeks more :(
I relocated and now settling down.

@passy
Copy link
Member

passy commented Jul 16, 2013

@gvaish Thanks for the update!

@sindresorhus
Copy link
Member

ping

@sindresorhus
Copy link
Member

closing for lack of activity. We'll reopen when it's ready to be merged. (no need to open a new pr).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants