shvets-sergey / handykit Goto Github PK
View Code? Open in Web Editor NEWWrapper around Backbone and React libraries that adds MVP pattern to this cocktail
License: MIT License
Wrapper around Backbone and React libraries that adds MVP pattern to this cocktail
License: MIT License
'presenterName' is "magic" property which carry with it a lot of background functionality that can be broken at some time. On other hand it ensures that presenter will listen to the events as soon as it created.
Need more thoughts.
Go with React approach for state and data to enforce the same API for presenter/view interaction.
Idea: to have similar to react view state object for the presenter and keep there everything needed for state of component which presenter holds. Having this, we can introduce shouldComponentUpdate automatically, plus it will be easier to test.
When creating views in "react" way it is important to be able to put stubs and implement them later with functionality. Must be extremely useful for bigger teams
Combine with a state of presenters and adding FRP can turn this into real powerful tool. Imagine when you have an object (e.g. contacts list) and in presenter you just trigger refresh and as soon as data arrived it automatically redraw UI, no callbacks? Oh, this is a dream!!
Add ability for 3rd party libraries (e.g. Phonegap) send events to the eventBus of all presenters.
For now there is only one root component, which makes impossible to refactor already existing application. Need to find a way to have multiple components in the DOM. For now, 'updateDOM' will fail with this approach.
All callbacks that passed to the view need to be called with context of presenter. So, it is a good idea to bind this functions to presenter automatically.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.