GithubHelp home page GithubHelp logo

Browserify in examples about flux HOT 6 CLOSED

facebook avatar facebook commented on April 27, 2024
Browserify in examples

from flux.

Comments (6)

fisherwebdev avatar fisherwebdev commented on April 27, 2024

Browserify helps us do modular development in the browser with the CommonJS module system. It will also do the JSX and ES6 transpilation for us. As such, it has a lot of value, and to some extent, the code depends on it.

The examples were written not only to show people how to use Flux, but also to point the way toward "best practices". JSX, CommonJS and ES6 are, in my opinion, best practices for Flux. I don' t want to recommend other package managers or module systems, as I believe that npm and CommonJS are currently the best options that the open source community has.

If at some point we decide to switch from CommonJS to ES6 modules, then we'll update all the code that is helping us with CommonJS.

However, I do understand that this may be a barrier for some folks, and I'd happily entertain a more fleshed out idea for a new, extremely basic example for newcomers. Please let me know what were the biggest hurdles for you, and we can take a look at what we could do to make things easier.

from flux.

briandipalma avatar briandipalma commented on April 27, 2024

I can't imagine large scale Web app development without using a module system and loader. It would be a step back to remove those. If people find those complex their use case might not need patterns like flux, a simpler approach might be as productive.

from flux.

EvanCarroll avatar EvanCarroll commented on April 27, 2024

There is nothing in the docs about it. I had to grep bundle.js to find mention as a comment in a separate example that it dealt with Browserify. I still have no idea what Browserify does or why it's needed.

Backbone for example doesn't this at all -- and flux is supposed to be a replacement, no?

from flux.

briandipalma avatar briandipalma commented on April 27, 2024

Maybe the documentation needs to mention that the examples use a CJS loader. You can use either Browserify or WebPack and if you don't know what they are I recommend spending some time reading up on them. Do you still load all your JS/CSS etc by creating script and link tags? That's painful to scale so you might find these module loaders helpful.

from flux.

totty90 avatar totty90 commented on April 27, 2024

Here is an example: https://github.com/totty90/jogabo-flux-react

from flux.

fisherwebdev avatar fisherwebdev commented on April 27, 2024

I would consider the Flux TodoMVC tutorial to be a core part of the documentation, and Browserify, bundle.js, etc. are clearly explained there. I do apologize that this was difficult for you. But I encourage you to give it another try! It really is a nice way to work, once you get it set up.

In the mean time, I'll put together another, even simpler example very soon.

from flux.

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.