Code Monkey home page Code Monkey logo

Comments (7)

agborkowski avatar agborkowski commented on May 10, 2024
  1. i use php instead of node and i want to have cons (Evnts/MVP) from riotj
  2. riotjs propose one clear design pattern (MVP) in nodejs u can create different implementations of course.

from riot.

yyx990803 avatar yyx990803 commented on May 10, 2024

Why do you even need Browserify for events? You can simply scoop the node event emitter source code and use it under any setup, or use https://github.com/component/emitter

from riot.

tipiirai avatar tipiirai commented on May 10, 2024

The closest cousin to Riot is Backbone and the purpose is to produce modular / maintainable code. Riot promotes the use of MVP design pattern and provides some utility functions to achieve the goal. Browserlify's goal is to "require('modules') in the browser". Looks like Require.js to me ?

from riot.

gagle avatar gagle commented on May 10, 2024

Riot, as far as I can see is based on the observer pattern, just like the whole node.js event system. With browserify I can create the models which inherit from an EventEmitter, the same as the $.observable function. But I can also use the common.js pattern to modularize the client, use node.js modules and bundle all the scripts in a single file. This is just a humble opinion but I think Riot is more focused to the people that don't use node.js as a backend platform.

from riot.

tipiirai avatar tipiirai commented on May 10, 2024

Riot attempts to be the most minimalistic starting point to MV* world. There should be no extra on the library itself. If something is missing you add it there, not the other way around. It will also be a good source for documentation about organizing code in modular fashion (not there yet).

from riot.

tbranyen avatar tbranyen commented on May 10, 2024

@gagle Browserify brings node modules to the browser and riot.js is a client side library. Why there is confusion and why this issue is still open boggles the mind.

from riot.

courtneycouch avatar courtneycouch commented on May 10, 2024

@tbranyen agreed.

from riot.

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.