极简化

维基百科,自由的百科全书
跳转至: 导航搜索

极简化(另称缩小化),在编程语言的范畴里,指的是在不影响功能的情况下,移除所有非功能性必要之源代码字符(如:空白换行注解、以及些许的区块办识子),因为虽然它们有助于提升源代码的易读性,但在实际运行时却不是必要的部份。

极简化后的源代码特别对于在网络上传送的直译式语言(例: Javascript)有所助益,因为经过极简化之后,需要传输的资料减少了,大幅减少了传输所需的时间以及带宽;极简化后的源代码也可以被当作一种“模糊语言”。例如在 Perl 的圈子里,Perl Golf 活动的目标正是追求尽可能的极简化。

参见[编辑]

外部链接[编辑]

  • Minify / JavaScript CSS HTML ... - 在线极简化(支持js css html)
  • JSMin - Javasciprt 极简化工具
  • Javascript反向极简化工具
  • pack:tag - A JSP Taglib for minifing JavaScript and CSS on the fly (with caching, combination and compressing(gzip))(Official Dokumentation).
  • JSO - JSO(JavaScript Optimizer) is a project that allow you to manage easily your JavaScript and CSS resources and to reduce the amount of data transferred between the server and the client.
  • JAWR - A library for Java web applications that joins javascript files and then minifies and compresses them, fostering a modular approach to development. Its main benefit is that developers can switch from the joined, compressed form to separate and uncompressed versions of the scripts, whithout the need to change the pages.
  • Minify - A PHP library that combines, minifies, and caches JavaScript and CSS files on the fly.
  • JS Dojo Minifier
  • Online JavaScript minifier tool - An interface allowing you to upload your javascript files to get the minified version on submission.
  • Minify JavaScript Online - Compress your JavaScript online with the JSMin algorithm (direct copy/paste into textarea).
  • Yahoo! UI Library: YUI Compressor - Compress your JavaScript and CSS using this Java application from the Yahoo! team.
  • SmartOptimizer - Another PHP library that combines, minifies, caches JavaScript and CSS files and also embeds CSS images on the fly.
  • CSS Compressor - Free online tool for minifying CSS code
  • FastCSSLoader - Simple PHP Script to minify and send together all CSS files contained in a folder
  • JavaScript Code Improver - Reverse minify and obfuscate Javascript code