1

前端开发核心思想

 2 years ago
source link: https://toweave.github.io/other/2019-04-03-front-core-concept/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

前端开发核心思想

Wednesday, April 3rd 2019, 2:51:06 am ( ISO 8601 )

标签:

1. 前端开发核心思想

  • 表现、内容和行为的分离;
  • 标记应该是结构良好、语义正确 以及 普遍合法;
  • Javascript应该起到渐进式增强用户体验的作用;

  对于所有编程语言,我们要求缩进必须是软tab(用空格字符)。在你的文本编辑器里敲 Tab 应该等于 4个空格 。

3. 可读性 vs 压缩

  对于维护现有文件,我们认为可读性比节省文件大小更重要。大量空白和适当的ASCII艺术都是受鼓励的。任何开发者都不必故意去压缩HTML或CSS,也不必把Javascript代码最小化得面目全非。

  我们会在服务器端或build过程中自动最小化并gzip压缩所有的静态客户端文件,例如CSS和JS。

4. 未完待续…



About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK