查看: 2839|回复: 10

7 Web Development Trends You Can Expect in 2018

[复制链接]
论坛徽章:
1056
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
跳转到指定楼层
1#
发表于 2018-1-16 13:57 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
In web development, the saying “The only constant is change” seems to be industry-defining. Web development is changing every second and 2018 will be no different.
User expectations are growing and it is more important than ever to build digital experiences  that are engaging, fun, and intuitive. Content needs to be accessible everywhere, in real-time, and, of course, on mobile devices.
In order to make that happen, new programming languages and frameworks are on the rise (Hello Vue JS!), extensions are becoming more compatible, and real time web apps are becoming more popular.
In order to keep up with what is happening, we want to show you the top 7 web development trends that are happening right now!
Happy reading!

论坛徽章:
1056
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
2#
 楼主| 发表于 2018-1-16 13:59 | 只看该作者
2. Functional Programming benefits from Javascript improvements
Functional programming has been up and coming for years, but its impact will increase in 2018 again. Functional Programming (FP) describes the process of building software based on fundamental principles. Principles of functional programming include building software by composing pure functions. Shared state, mutable data and side effects are avoided in FP.
Functional code is more predictable, and some say ‘easier’ than object oriented code. It is definitely easier to test. If you have been working in Javascript for a while, you are very likely to have encountered functional programming principles and concepts, which encourage developers to decompose a program into small functions.
  1. // classic
  2. var numbers = [1, 5, 8, 13];
  3. var doubledNumbers = [];

  4. for (var i=0; i < numbers.length; i++) {
  5.    doubledNumbers[i] = numbers[i] * 2;
  6. }

  7. // functional
  8. var numbers = [1, 5, 8, 13];
  9. var doubledNumbers = numbers.map(function(number) {
  10.    return number * 2;
  11. });
复制代码

In 2018, Functional Programming especially benefits from the recent Javascript improvements such as ES6 and ES7.
Useful for functional programming are the following Javascript improvements:
Arrow functions: Arrow functions reduce boilerplate when writing functions.
We can simplify the example from above even more with arrow functions:
  1. // functional ES6
  2. const numbers = [1, 5, 8, 13];
  3. const doubledNumbers = numbers.map((number) => number * 2);
复制代码


Object/Array Spread: Object spread makes it really easy to avoid mutating objects, because it is so much easier to create new objects that contain existing values.  Here’s an example demonstrating it:
  1. // old school
  2. var oldState = { email: 'foo@example.com', comment: 'i really like javascript' };
  3. var newState = {};
  4. Object.assign(newState, oldState, { ip: '192.168.5.87' });

  5. // with spread
  6. const oldState = { email: 'foo@example.com', comment: 'i really like javascript' };
  7. const newState = { ...oldState, ip: '192.168.5.87' };
复制代码

async/await: Sometimes we do need to call functions that have side effects, even in functional programming – e.g. when we’re talking to our backend. Often we even have multiple calls that depend on each other. First there was callback hell, then came promises, and now async/await has come to make these things even easier.


使用道具 举报

回复
论坛徽章:
1056
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
3#
 楼主| 发表于 2018-1-16 13:59 | 只看该作者
3. Extensions get more compatible
Browser-extensions have been key add-ons for Chrome, Firefox and Co. for years. What is new in 2018 and what will continue to grow is browser extension compatibility.
What does that mean?
Browser Extensions are bits of code written in JavaScript, HTML, and CSS. They modify the functionality of a web browser and can add new features, change appearances or content of websites. Extensions used to be build for a specific browser, such as Chrome or Firefox. This is changing as Firefox is also supporting Chrome extensions and Edge is catching up on this as well.
In the developer manual of Mozilla you get an explanation of this cross-browser support system:
“Extensions for Firefox are built using WebExtensions APIs, a cross-browser system for developing extensions. To a large extent the API is compatible with the extension API supported by Google Chrome and Opera. Extensions written for these browsers will in most cases run in Firefox or Microsoft Edge with just a few changes. The API is also fully compatible with multiprocess Firefox.”
While Firefox extensions were using three different systems in the past, WebExtension APIs will now be the only way to develop Firefox extensions, making them available for other browser systems as well.
There has been some controversy around that because since the introduction of Firefox 57 (Quantum), the old extensions no longer work. Once a new version with a new API was released the old extension was gone.
To test the browser compatibility of your extension, you can make use of this simple extension compatibility tester.

使用道具 举报

回复
论坛徽章:
1056
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
4#
 楼主| 发表于 2018-1-16 13:59 | 只看该作者
4. Real-Time Web Apps are getting more popular
Real time web apps, based on websockets, have been around for years, but they are getting more and more popular. The reason: users want fast interactions and real time web apps are delivering on the need to share information instantly.
The main idea of real-time web apps is that a connection between client and server is left open, and the server pushes the new data once it’s there. Prior to real time web apps, clients had to check back manually to find out if something new had happened.
While this has been very common in the world of Node.js, this trend is really spreading to other languages and frameworks as well. Even Ruby on Rails, a framework which has always relied heavily on server side rendering, and very long ignored the rise of Javascript single-page-applications, has seen the need for realtime (as you can see in Basecamp 3), and incorporated it under the name “ActionCable”.

使用道具 举报

回复
论坛徽章:
1056
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
5#
 楼主| 发表于 2018-1-17 11:11 | 只看该作者
5. Progressive Web Apps
Progressive web apps are web apps with the functionality and design of mobile apps.
While the question has long been: How can we emulate web content for mobile – it is now the other way round. Web applications are trying to emulate what is working on mobile to give their (mobile) users a familiar touch and feel.
The idea is to create app-like experience on web pages or websites.
Here are some of the benefits, Google lists in its developer manual on why you should build a PWA:
When the Progressive Web App criteria are met, Chrome prompts users to add the Progressive Web App to their home screen.
Service workers enabled Konga to send 63% less data for initial page loads, and 84% less data to complete the first transaction!
Web push notifications helped eXtra Electronics increase engagement by 4X. And those users spend twice as much time on the site.
The ability to deliver an amazing user experience helped AliExpress improve conversions for new users across all browsers by 104% and on iOS by 82%.

使用道具 举报

回复
论坛徽章:
1056
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
6#
 楼主| 发表于 2018-1-17 11:12 | 只看该作者
6. Mastering Mobile Web Development
With mobile traffic increasing every day, responsive websites have become obligatory in the last years. In 2018, it is time to really master mobile development. The question is no longer: Does our website work on mobile? It is: How does it work on mobile best?
80% of internet users are owning a smartphone and they are using it. In fact, the average time spent on mobile devices is steadily increasing and has gone up to over 5 hours per day, according to TechCrunch.
Mastering mobile development and understanding how content can be best consumed on smaller devices will be a key challenge in 2018.
One key element to achieve that is that content must be easily navigable with one hand. Think about how you are using your smartphone. You might read articles while standing in the bus or subway and you might be texting when walking through supermarket aisles. Chances are you are doing some of these things with just one hand.
According to Steven Hoober, 49% of smartphone uses are executed with one hand, not cradled and not two handed. 49 percent of the time are we holding and browsing on our phone.
That means navigation has to be adapted for the thumb to reach every or the most part of the screen.
Thumb zones on different iOS devices. Illustration: Scott Hurff

使用道具 举报

回复
论坛徽章:
1056
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
7#
 楼主| 发表于 2018-1-17 11:12 | 只看该作者
7. Material Design
Material Design is a popular design trend that is likely to gain more popularity. It was developed by Google in an attempt to combine visual material and motion.
Material design is based on the modern, responsive Materialize CSS framework that comes in two forms: Materialize and Sass. It is based on Google’s material design language and provides components such as Parallax and Toast. It is compatible with all modern browsers and it is something that scores high in user experience design.
Material design used at https://gusto.com/

使用道具 举报

回复
论坛徽章:
1056
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
8#
 楼主| 发表于 2018-1-17 11:13 | 只看该作者
Wrapping it up.
New frameworks, design trends, user expectations, and mobile developments are changing web development every day. The main thing is: Web development is responding to growing user expectations and design trends. Like Google’s material design, which is likely to gain more popularity in 2018. Or the need to communicate and work together in real time from everywhere.
No matter what you will be working on in 2018, these are exciting times and an exciting industry to be working in!

使用道具 举报

回复
论坛徽章:
1056
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
9#
 楼主| 发表于 2018-1-17 11:13 | 只看该作者

使用道具 举报

回复
论坛徽章:
1056
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
10#
 楼主| 发表于 2018-1-21 20:15 来自手机 | 只看该作者
good job

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表