極簡化

維基百科,自由的百科全書
前往: 導覽搜尋

極簡化(另稱縮小化),在程式語言的範疇裡,指的是在不影響功能的情況下,移除所有非功能性必要之原始碼字元(如:空白換行註解、以及些許的區塊辦識子),因為雖然它們有助於提昇原始碼的易讀性,但在實際運行時卻不是必要的部份。

極簡化後的原始碼特別對於在網路上傳送的直譯式語言(例: 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