GithubHelp home page GithubHelp logo

Comments (8)

thomasdavis avatar thomasdavis commented on May 14, 2024

Hi Kevin,
this issue has been bought up a few times now so I will get back to you with a solid answer.

I believe their will be a mixture of "modules" and the way I implemented the file structure.

from backbonetutorials.

kevsmt avatar kevsmt commented on May 14, 2024

Thanks Thom

from backbonetutorials.

kevsmt avatar kevsmt commented on May 14, 2024

Hello Thomas,

I tried to create a modular backbone, I haven't add models/controllers but it has views, so anyway here's the downloadable app: http://dl.dropbox.com/u/13224004/modular.zip, drop in to your localhost web root, and http://localhost/modular/app/

Tell me what you think.

Cheers!

Kevin

from backbonetutorials.

thomasdavis avatar thomasdavis commented on May 14, 2024

Hey,
awesome work so far.

Some points from my look over the code.

  • I would prefer templates are abstracted out of the Javascript src folder so it is simpler for designers to get in to the html and change things when they need such as adding classes etc
  • I wouldn't really include such a direct UI manipulation in the router.js
  • Probably a good step forwards is starting to make sure nothing is global, therefore wrapping jquery and the rest so that they can be properly included as dependencies.

Great initiative, will have another look at it tonight.

from backbonetutorials.

kevsmt avatar kevsmt commented on May 14, 2024

Hi Thomas, i updated it: http://dl.dropbox.com/u/13224004/modular-js.zip

Also, i was thinking about using onilabs.com/apollo for this.. any thoughts if that would be a good alternative? i tried it though, but i have a problem in backbone, which if it sees that it has a require, it automatically executes require('underscore');

from backbonetutorials.

kevsmt avatar kevsmt commented on May 14, 2024

Also, Thomas, I dont know how i find it but, its a very good start learning about http://angularjs.org/#/

from backbonetutorials.

thomasdavis avatar thomasdavis commented on May 14, 2024

I personally don't like reactive documents such as angularjs

from backbonetutorials.

thomasdavis avatar thomasdavis commented on May 14, 2024

In regards to the Backbone using require this is a known issue and is being looked at here
jashkenas/backbone#688

from backbonetutorials.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.