Comments (7)
- i use php instead of node and i want to have cons (Evnts/MVP) from riotj
- riotjs propose one clear design pattern (MVP) in nodejs u can create different implementations of course.
from riot.
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.
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.
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.
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.
@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.
@tbranyen agreed.
from riot.
Related Issues (20)
- question: Dynamically introducing child-components HOT 2
- ":host" bug in css selector HOT 2
- Double rendering on some components HOT 3
- Strange compile issue HOT 3
- .unmount() doesn't work with this.root.innerHTML HOT 3
- regression 7.x-->9.x [update() inside of onMounted()] HOT 4
- the 9.1.0 version route.js can't download HOT 1
- In-browser compilation with spaces after opening { bracket HOT 2
- Fix saucelabs test HOT 2
- cannot use html tags with is keyword HOT 8
- Class duplication HOT 2
- `{props.class}` and `{props.style}` are not printing values on riot-meiosis dispatch HOT 2
- Default props HOT 8
- How to get component instance by a component name? HOT 1
- Selected-Attribute shows Boolean as String HOT 2
- Runtime Slot with custom name HOT 1
- Error updating component with static template HOT 4
- Style compiled incorrectly HOT 2
- Riot coupled with Riot-route crashes on the latest version HOT 3
- Can't update text input value to empty string programatically HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riot.