国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > HTML > 正文

HTML重構(gòu):工具篇

2020-03-24 16:59:36
字體:
供稿:網(wǎng)友
         本文是《HTML重構(gòu)》讀書筆記的第三篇:工具篇;從戰(zhàn)略到戰(zhàn)術(shù),真正實踐過程中沒有好的工具HTML重構(gòu)也將成為開發(fā)者的噩夢。所以之前就有朋友問是否有工具可以減輕工作量,由于作者介紹的工具多是Java開發(fā)的,因此我把作者給出的工具列表作為線索給出了更多可能選擇。 嗯哼,我們開始: 版本管理工具Version Control 作者原來的標題是"Backups, Staging Servers, and Source Code Control" 難以想象沒有Source Control我們的工作將會是什么模樣,早在1972年就已經(jīng)有源碼管理軟件問世。你也許在使用SVN或者VSTS,它們都提供基礎(chǔ)的服務(wù): 文檔存儲Backup and Restore 保持文檔一致性Synchronization 文件比較合并Diff Merge Sandboxing:可以按照需要搭建一個方便的沙盒,記得簽入之前清理代碼:) 從軟件開發(fā)過程的角度 跟蹤開發(fā)進度,團隊協(xié)同工作 根據(jù)需要做版本回滾:The Big Undo 根據(jù)需要做分支(Branches)打標簽Tags,分支可以看做是一個巨大的沙盒 標識變化,跟蹤變化Track Changes Ownership 大家可以看看關(guān)于Source Control的資料: Revision control 源文檔 http://en.wikipedia.org/wiki/Revision_control Source Code Control System (SCCS) 源文檔 http://en.wikipedia.org/wiki/Source_Code_Control_System Subversion 源文檔 http://subversion.tigris.org/ Pragmatic Version Control: Using Subversion (The Pragmatic Starter Kit Series)(2nd Edition) 源文檔 http://www.douban.com/subject/2038779/ Pragmatic Version Control Using CVS 源文檔 http://www.douban.com/subject/1313341/?i=1 頁面驗證工具Validators W3C在線驗證工具 源文檔 http://validator.w3.org/
         提供三種驗證方式:提交URL,提交文件,直接輸入代碼 The Log Validator 一個Perl的命令行工具,可以對整站進行驗證。www.w3.org/QA/Tools/LogValidator/ Xmllint 純XML驗證工具,從http://xmlsoft.org/可以下載.除了這個命令行工具,你可以在UltraEdit中找到它。 Visual Studio 在Visual Studio中打開一個頁面文件,你可以看到一個Target schema for validation的下拉列表框,你可以在這里選擇要用什么標準來做驗證,而且Error List框中會列出所有的錯誤和警告信息.
測試工具 測試對于重構(gòu)的重要性是毋庸置疑的,我還是援引《Refactoring: Improving the Design of Existing Code》中的闡述: "If you want to refactor, the essential precondition is having solid tests. Even if you are fortunate enough to have a tool that can automate the refactorings, you still need tests. It will be a long time before all possible refactorings can be automated in a refactoring tool." HtmlUnit http://htmlunit.sourceforge.net/ JsUnit www.junit.org/ HttpUnithttp://httpunit.sourceforge.net/ JWebUnit FitNessehttp://fitnesse.org/ Selenium Visual Studio測試工具集 或者去SF上去翻翻:http://sourceforge.net/search/?words=unit sort=score sortdir=desc offset=10 type_of_search=soft pmode=0 正則表達式工具 正則表達式的作用自不必多講,已經(jīng)被包裝成程序員的X種武器之一。同樣的正則表達式工具太多了,推薦: UltraEdit Visual Studio :記得查找的時候勾選正則表達式選項 VisualRegex:一個小而強大的正則表達式工具,支持從文本構(gòu)造正則表達式 Html清理工具 作者推薦了Tidy和Tagsoup,其中Tidy我找到了它的.net版本: Tidy TidyForNet TidyForNet and wvForNet provide a native .NET/Mono Wrapper for HTML Tidy and wvWare, using C# and interop. It programmers, using languages such as C# or Visual Basic .NET to interact with HTML Tidy and wvWare. Both wrappers run on Windows and Linux. 源文檔 http://sourceforge.net/projects/tidyfornet/ 源文檔 http://sourceforge.net/projects/tidy/ Tagsoup http://home.ccil.org/~cowan/XML/tagsoup/ XSLT工具 維基百科上對XSLT的描述:Extensible Stylesheet Language Transformations (XSLT) is an XML-based language used for the transformation of XML documents into other XML or "human-readable" documents. The original document is not changed; rather, a new document is created based on the content of an existing one. The new document may be serialized (output) by the processor in standard XML syntax or in another format, such as HTML or plain text.[3] XSLT is most often used to convert data between different XML schemas or to convert XML data into HTML or XHTML documents for web pages, creating a dynamic web page, or into an intermediate XML format that can be converted to PDF documents. As a language, XSLT is influenced by functional languages,and by text-based pattern matching languages like SNOBOL and awk. Its most direct predecessor was DSSSL, a language that performed the same function for SGML that XSLT performs for XML. XSLT can also be considered as a Turing-complete template processor. 源文檔 http://en.wikipedia.org/wiki/XSLT XSLT使得數(shù)據(jù)和呈現(xiàn)分離,將理論落實到實踐,它的工具:
總結(jié) 本文是《HTML重構(gòu)》讀書筆記的最后一篇,前面我們已經(jīng)從戰(zhàn)略和戰(zhàn)術(shù)的層面了解了HTML重構(gòu),真正的HTML重構(gòu)實踐過程中我們可能在Visual Studio中就可以完成所有的工作,本文介紹的工具僅僅是一個開拓視野作用。 Html重構(gòu)介紹的差不多了,但是它僅僅是網(wǎng)站重構(gòu)過程中的其中一個環(huán)節(jié)而已,前面的路還長著呢html教程

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯(lián)系我們修改或刪除,多謝。

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 安图县| 霍邱县| 罗城| 青浦区| 门源| 通州区| 长白| 石嘴山市| 游戏| 娱乐| 衡南县| 吴旗县| 阿巴嘎旗| 南雄市| 本溪| 方正县| 铜鼓县| 芒康县| 新野县| 封开县| 泾川县| 龙门县| 西平县| 太原市| 理塘县| 民权县| 淮南市| 定日县| 五大连池市| 图木舒克市| 桐梓县| 伊通| 噶尔县| 揭东县| 泗水县| 广饶县| 莱西市| 滁州市| 万源市| 棋牌| 禹城市|