﻿# 手邊有一張速查表(Cheat Sheets)是件很方便的事

我個人有習慣收集一些網路上別人整理的速查表，因為程式開發的細節真的太多了，要能全部背起來不太可能，也沒什麼意義，甚至於有人說程式設計就是一件查詢、複製、貼上的工作而已。對我來說，寫程式首重觀念與經驗，有了完整而正確的觀念，就算記不得要怎麼寫，查詢一下就馬上能寫了；而有了經驗，對於一些難解的 Bug 自然能夠迅速解開。

所以當我在開發網站時只要開啟速查表文件，有時後看表提醒一下用法，馬上就可以解決問題。例如：像我之前是寫 PHP 好多年之後才突然轉換到 C# / ASP.NET 的，而當初我剛學 .NET 時，對 .NET 的 [String.Format](http://msdn.microsoft.com/zh-tw/library/system.string.format%28VS.80%29.aspx) 十分感冒，因為不會用，且當時輸入的範例又寫的很不清楚，有時後為了輸出一個 **NT$ 1,000,000.00** 這樣的格式都要寫好久，真的很氣人。直到有一天在 [John Sheehan](https://web.archive.org/web/20081107092109/http://john-sheehan.com:80/blog/index.php/about-me/) 這位仁兄的網站看到 [.NET Format String Quick Reference](http://john-sheehan.com/blog/wp-content/uploads/msnet-formatting-strings.pdf) 這份速查表文件，因為講解的仔細又有範例，讓我一下子就掌握所有 [String.Format](http://msdn.microsoft.com/zh-tw/library/system.string.format%28VS.80%29.aspx) 的用法，而這份文件也是我最常用的速查表之一。

以下是我這陣子累積整理的 Cheat Sheets 相關連結，各位如果有覺得不錯的也可以推薦給我，我再放上來：

**C# / .NET / LINQ 相關**

-   [.NET Format String Quick Reference](http://john-sheehan.com/blog/wp-content/uploads/msnet-formatting-strings.pdf) \[PDF\]
-   [Microsoft .NET Framework 3.5 Commonly Uses Types and Namespaces](http://download.microsoft.com/download/4/a/3/4a3c7c55-84ab-4588-84a4-f96424a7d82d/NET35_Namespaces_Poster_LORES.pdf) \[PDF\]
-   [LINQ Cheat Sheet](https://weblogs.asp.net/bradvincent/linq-cheat-sheet)
-   [LINQ Standard Query Operators Cheat Sheet](http://www.aspnetresources.com/blog/linq_sqo__cheat_sheet.aspx)

**Visual Studio 相關**

-   [Visual Studio 2005 Built-in Code Snippets (C#)](http://john-sheehan.com/blog/wp-content/uploads/vs2005-code-snippets.pdf) \[PDF\]
-   [Visual Studio 2005 Default Keybindings (C#)](http://download.microsoft.com/download/e/7/9/e79cce22-b196-4b9f-9ea7-b1a21f5342e9/VCSharp_2005_color.pdf) \[PDF\]
-   [Visual C# 2008 Keybinding Reference Poster](http://www.microsoft.com/downloads/details.aspx?FamilyID=e5f902a8-5bb5-4cc6-907e-472809749973&DisplayLang=en)
-   [Visual Studio 2010 Keybinding Posters](https://www.microsoft.com/en-us/download/details.aspx?id=13189)
-   [Visual Studio 2010 快速功能鍵海報](https://web.archive.org/web/20160304172604/http://msdownload.longsun.net/visualstudio/visual_studio_2010_shortcuts.zip)

**ASP.NET 相關**

-   [ASP.NET 2.0 Page Life Cycle & Common Events](http://john-sheehan.com/blog/wp-content/uploads/aspnet-life-cycles-events.pdf) \[PDF\]
-   [ASP.NET Runtime Cheat Sheet: HttpRequest, HttpRuntime, AppDomain and friends](https://web.archive.org/web/20140108172640/http://duartes.org:80/gustavo/articles/Asp.net-Runtime-Cheat-Sheet-HttpRequest-HttpRuntime.aspx)
-   [Microsoft ASP.NET AJAX Library](http://aspnetresources.com/blog/ms_ajax_cheat_sheets_batch2.aspx)
-   [Microsoft ASP.NET AJAX Client Life Cycle & Events](http://aspnetresources.com/downloads/MS%20Ajax%20Client%20Life-Cycle%20Events.pdf) \[PDF\]

**SQL Server 相關**

-   [SQL Server Cheat Sheekt](http://www.addedbytes.com/cheat-sheets/sql-server-cheat-sheet/)

**Subversion 相關**

-   [Subversion Cheat Sheet](http://www.addedbytes.com/cheat-sheets/subversion-cheat-sheet/)

**Reqular Expression 相關**

-   [Regular Expressions Cheat Sheet (V2)](http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/)

**CSS 相關**

-   [CSS Cheat Sheet (V2)](http://www.addedbytes.com/cheat-sheets/css-cheat-sheet/)

**HTML / XML / RGB 相關**

-   [HTML Cheat Sheet](http://www.addedbytes.com/cheat-sheets/html-cheat-sheet/)
-   [HTML Character Entities Cheat Sheet](http://www.addedbytes.com/cheat-sheets/html-character-entities-cheat-sheet/)
-   [RGB Hex Colour Chart](http://www.addedbytes.com/cheat-sheets/colour-chart/)
-   [XHTML Cheat Sheet](http://www.cdburnerxp.se/htmlcheatsheet.pdf) \[PDF\]

**ASP / VBScript 相關**

-   [ASP / VBScript Cheat Sheet](http://www.addedbytes.com/cheat-sheets/asp-vbscript-cheat-sheet/)

**PHP 相關**

-   [PHP Cheat Sheet (V2)](http://www.addedbytes.com/cheat-sheets/php-cheat-sheet/)

**JavaScript 相關**

-   [JavaScript Cheat Sheet](http://www.addedbytes.com/cheat-sheets/javascript-cheat-sheet/)
-   [jQuery 1.2 Cheat Sheet](http://www.gscottolson.com/weblog/2008/01/11/jquery-cheat-sheet/)
-   jQuery 1.2 API Cheatsheet \[彩色版\]

**系統管理**

-   [Security Log Quick Reference Chart](https://www.ultimatewindowssecurity.com/securitylog/quickref/Default.aspx)
