Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

0

随着互联网技术的快速发展,JavaScript 框架在 Web 开发领域曾一度成为主流。然而,近年来,一股反对 JavaScript 框架的潮流正在兴起。许多开发者开始质疑这些框架的必要性,认为它们带来了不必要的复杂性和性能问题。本文将深入探讨这一现象,揭示为何“保持简单”正在重新获得青睐。

背景介绍

JavaScript 框架的出现,原本是为了简化 Web 开发流程,提高开发效率。然而,随着时间的推移,这些框架变得越来越复杂,使得开发者们在享受便利的同时,也陷入了复杂的困境。

开发者声音

  1. Pieter Levels:AI 应用领域的开发者 Pieter Levels 在近期访谈中表示,他仅依赖基础的 HTML、PHP、少量 jQuery 增强的 JavaScript 以及 SQLite 数据库,坚决不采用复杂的 JavaScript 框架。他认为,PHP 以其稳定性和可靠性著称,仍能胜任各种工作场景。

  2. David Heinemeier Hansson(DHH):Ruby on Rails 的缔造者 David Heinemeier Hansson 在推文中表示,那些鼓吹复杂性的推销员会让开发者深信,他们无法独立完成任何事情,只能依赖购买他们的产品。他呼吁开发者勇敢拒绝这种套路。

  3. Marc Grabanski:网页开发培训界的领军人物、Frontend Masters 公司的创始人兼 CEO Marc Grabanski 在推文中坦言,将主站从 PHP 迁移到其他平台是他职业生涯中最糟糕的决定之一。他认为,如果项目能凭借简洁的代码顺利运行,就不要盲目追求潮流而进行过度设计。

简约之风的兴起

这股简约之风不仅在由 Pieter Levels 引领的创业浪潮中重新焕发生机,还悄然渗透至专业的 Web 开发领域。微软浏览器工程师 Alex Russell 也对复杂的 Web 框架持批评态度。他在博客文章中,以 BenefitsCal 为例,揭示了公共服务网站中 JavaScript 过度使用的弊端。

BenefitsCal 是加利福尼亚州新近推出的在线服务平台,旨在为寻求 SNAP 福利(即食品券)援助的家庭提供便捷服务。然而,Alex Russell 发现,该网站依赖于总计达 25MB 的 JavaScript 代码,严重拖慢了网站的加载速度。他推荐开发者研读英国政府制定的 “渐进增强” 标准,以优化网站性能。

技术潮流的转变

在这股反对 JavaScript 框架的潮流中,开发者们开始重新审视 Web 开发的本质。利用 PHP 与 jQuery 迅速搭建起一个简易的 Web 应用,与坚守渐进增强原则、致力于打造符合 Web 标准的应用,两者之间的鸿沟显而易见。

Pieter Levels 和 Alex Russell 的实践表明,这股反对过度依赖复杂 Web 框架的潮流,或许正预示着一种更加理性、务实的开发理念正在兴起。在这个技术潮流的转变中,开发者们将更加注重简洁、高效、可靠的开发方式,以应对不断变化的互联网环境。

结语

技术潮流的反转,让我们看到了开发者们对简洁、务实开发理念的追求。在这个充满变革的时代,保持简单、专注本质,或许才是应对复杂挑战的最佳途径。


read more

Views: 0

0

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注