这个来自之前做的培训,删减了一些业务相关的,参考了很多资料( 参考资料列表),谢谢前辈们,么么哒 ?
就前端主流技术框架的发展而言,过去几年发展极快,在填补了原有技术框架空白和不足的同时也渐渐趋于成熟。未来前端在已经趋向成熟的技术方向上面将会慢慢稳定下来,进入技术迭代优化阶段,例如语言标准、前端框架等。
对于移动端应用,前端要重点发展的下一步可能就是原生NativeView开发,形成一套移动端高效率的前端开发生态体系。
新领域的Web化思路也会给前端带来技术革新和发展机遇,例如Web虛拟现实(Virtual Reality,VR)、物联网(Physical Web,将物体连入网络的一种理念)Web化、机器学习和人工智能等。
未来前端趋势
frontendmasters.com/books/front…
这里是frontendmaster发布的最近展望,简单解读一下:
- Nothing will change or slow the usage or popularity of React for many years to come.
React在最近几年里还是会继续广泛应用,这个挡不住。 - GraphQL will replace a lot of REST API's this year.
GraphQL 会渐渐取代 REST API,不过我感觉这个略微有些激进,只是多一种选择而已。 - The web will continue to become more native-like with offline capabilities and seamless mobile experiences.
Web应用用起来会更像原生应用。 - HTML 5.3 is coming.
- Keep an eye on turbo, a blazing fast NPM client.
据说Turbo比NPM、Yarn之类的快5倍。 - Expect to learn and use CSS transforms 3d, CSS transitions, CSS flexbox, CSS filters, CSS grid
多使用CSS新特性。 - JavaScript usage will continue to grow with no slowdown in sight.
Javascript用的人越来越多。 - Still waiting on Web Assembly to peak. This will likely require tooling.
Web Assembly 未来应该是趋势,现在还是在路上。 - Universal/isomorphic JavaScript solutions continue to evolve e.g. next.js and Sapper.
同构的解决方案不断发展。 - Web components still lurk and wait for significant traction from developers.
Web组件越来越多。 - I believe the end is in sight for CSS pre-processors as PostCSS, CSSnext, and CSS in JS take over.
JS可能将会接管CSS预处理器。 - Older server centric application patterns show up again but with a new spin. The pendulum could start to swinging away from strick SPA applications. People will begin to pull back on the complexity of single page applications and return to things like pjax (A mix of SPA and Server-side Rendering. See stimulusjs.org).
有服务端渲染需求的只是前端项目的一部分,至于这个预测也不一定。 - Progressive Web Applications hopefully will catch fire. If they don't, I fear they never will. At least not in their current form.
其实以后的硬件过剩,大部分场景不需要什么渐进了。 - "Chatbots created on the basis of artificial intelligence and neural networks will continue to evolve helping to increase communication online. I wonder what it will lead to, but this is unconditional web development trends 2018". Nods.
人工智能聊天机器人估计要逆天了,Facebook的聊天机器人在聊天中还会发明自己的语言。 - Vue.js usage will likely overtake all Angular usage.
Vue超过Angular,这个我觉得应该没啥问题。 - AR/AV, AI, and chat bots will continue to evolve and find their sweet spot.
- JavaScript Symbol and Generators will likely go unnoticed by most front-end developers.
这两个特性确实出镜率并不高。 - More developers will divorce themselves from plain JavaScript and try to marry another. But, just like in marital divorce one always takes most of the same problems with them to the greener grass and little actually changes. Preferences and values just get re-prioritized and history will repeat itself.
也就是很多人会尝试TypeScript,就像之前尝试 CoffeeScript 一样,后来就不火了。 - Webpack 4 will happen, and be better, due to competition!
- Continued exploration for the ideal CSS solution for a tree of UI components will not cease.
- State management gets a reset and people start to simplify. Hopefully, this will be the year for solutions like mobx to shine.
Mobx之类的简化状态管理的库会得到更多应用。
顺便提一下,Google 最近发布了Project Stream技术, projectstream.google.com 可以在 Chrome 上面通过串流玩游戏,这个技术压根就不用安装游戏了,也不存在什么兼容性之类的,直接是游戏画面传输,如果这个技术普及,会对整个UI相关的行业产生重大影响,比如前端、游戏、小程序之类的。
所以技术发展是无法预测的,不知道哪天又有什么黑科技,有啥变化,积极拥抱就对了。