First, starting point
with With the development of web technology, front-end architecture Framework , UI Framework, building tools,CSS preprocessing , etc. . too many frameworks are in the early stages of the Web World
Set off a wave of technology, but some are just a blip, as their user volume gradually reduced, the community is less active. such as:meteor,backbone,ember,knockout.
I can not help but sigh the technology of the renewal came too suddenly. In order to catch up with the pace of technology updates, to ensure the high performance of technology implementation, strong compatibility, and will not be abandoned in a short period of time. The following items are
Common mainstream technical reference, based on GitHub ranking of concerns:
efficient creation of interactive components
|
Architecture Framework |
|
Frame name |
Technical support |
Thought |
Targeted |
|
react |
facebook |
Virtual dom
| TD valign= "Center" width= "142" >
|
angularjs |
google |
Bidirectional data binding, instruction
|
structured |
|
Vue |
Evan you(Yu Yuxi) |
Lightweight AngularJS |
More concise and easier to understand |
|
Build tools |
|
tool name |
technical support |
thought
|
targeted |
|
webpack |
tobias Koppers |
modular processing
|
Web modular |
|
gulp |
/ |
automated flow-based construction
|
Web flow |
|
Grunt |
/ |
Automated Build |
Automated Build |
|
CSS preprocessing |
|
Processor Name |
Technical support |
Thought |
Ease of Use |
|
Sass |
/ |
Programming mode based on Ruby |
*** |
|
Less |
/ |
Dynamic CSS |
***** |
Second, the project needs
Slightly
Third, reference point
1. the framework itself A. whether mature B. Schemas and Patterns c. Eco-System
React is undoubtedly now the hottest front-end frame, React now belongs to the rapid development stage, whether mature still need time to consider. Because React 's design thought is extremely unique, belongs to the leather
Life Innovation, performance Excellence, code logic is very simple. Therefore, more and more people are beginning to pay attention to and use, think it may be The mainstream tool of WEB development in the future.
Angular provides a range of robust features and methods for isolating code into modules, which are useful for improving reusability, maintainability, and testability. It's core Feature pack
including MVC, modularity, automatic bidirectional data binding, semantic tagging, dependency injection, and more. Angular in the open source community from the fire has been in the eyes of people, ahead of the design concept, strong
ecosystem so that he has been sailing Web The framework of the wave, the steady march forward.
Vue The author is a Chinese, although vue belongs to individual projects, but in concise, lightweight, fast, data-driven, module-friendly, modular and so on is not lost in AngularJs , this is because vue
basically is in Angular The design idea of the implementation of the library rather than the framework. Talking about vue has to talk about its small, small one of the benefits is that users can be more free to choose the corresponding solution, in cooperation with
in other libraries it gives the user a greater amount of space. Vue is small, but "perfectly formed" is handy when it comes to building large applications. And in recent years Vue has gained more and more
The recognition of several companies, the community ecosystem is also becoming more perfect.
2. Project fit B. can meet demand C. Suitability for Project
React There is less need to worry about data logic, you can directly dom Partial update This is fascinating, eliminating the front-end decision on data logic
and operations. react Now I feel the advantage is that native related, the future is great to play. Simple web project, the cost of learning is relatively vue react just view also need to cooperate with other classes
Flux Framework for development. Finally, use the scene to say:React with a strict Flux Architecture, for ultra-large multi-person collaboration complex projects.
Angular allowing you to build powerful, easy-to-understand and maintainable,angular is a structured framework designed for dynamic Web applications that gives you a new development
in a way that allows you to expand HTML the syntax to compensate in the build dynamic WEB the lack of static language when applied. The structure of Angular is to pay attention to the separation of responsibilities, so that the code is good
Solutions, maintenance and testing.
Vue small size, flexible interface, good intrusion, can be used as part of the page, rather than the entire page. Good extensibility, simple source code specification. More suitable for mobile phone-side WEB Development, is a declarative development,
performance is higher than Angular , the volume is much smaller. Community ecology is gradually improving, with relatively few people, on-line information is not much, out of the problem of high-cost resolution.
Iv. purpose of decision-making
based on the reference point and the requirements of the project above the preferred Web -side common tools and architecture framework, theUI Framework can be based on compatibility, ease of use, and proficiency selection.
V. Optional Options
|
Web Technology Selection |
| number
|
|
build tool |
preprocessor |
score |
| 1
|
angular
|
gulp/webpack |
less |
***** |
| 2
|
react+flux
|
webpack/gulp+webpack |
less |
*** |
|
3 |
Vue |
Gulp/webpack |
Less |
** |
Vi. Conclusion
Vue compared to angular.js,vue.js provides a cleaner, easier-to-understand API Allows us to quickly get started and use vue.js. But on the other hand it seems to be nothing new,
to a little pale. AngularJS is very structured, chatty, although bloated, but mature and stable. React In my opinion is not a framework, but a design idea. And it's such a thought very
unprecedented and can even be ported to any frame, so react and the above framework is not comparable, react A series of development ideas that are led and inspired by React the ecological circle is quite a bit of a sense of contention,
a variety of new gameplay, called A long way to go , I think it's better for react to wait and see the change.
The front-end automation build tool and CSS preprocessor are not too much evaluated here , as these are just tools that can be used without or selectively paired. As long as it helps us to be concise, clear and fast
the construction Web the application is sufficient. the 3 frames mentioned above have a sense of a three-point world.
In summary , there is no universal framework, no omnipotent technology, the most suitable is the best. These are just my own one-sided views, I hope you have good insight in time to help me to raise, I will be in the blog
Changes in the first time. Thank you!
Web front-end technical Framework selection Reference