PIXNET Logo登入

Robert 的部落格

跳到主文

歡迎光臨Robert 在痞客邦的小天地

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 12月 13 週三 201711:24
  • 如何清除字串中的所有的white-space?

用正則表示式取代。
正則表示式:"\s+"
注意反斜線!
程式範例:(C#)
(繼續閱讀...)
文章標籤

Robert 發表在 痞客邦 留言(0) 人氣(21)

  • 個人分類:程式設計
▲top
  • 6月 27 週二 201715:11
  • [JavaScript] 執行順序 / 擺放位置

(1) W3C 建議放在 <head></head> 中。
(2) 不論擺在哪裡,都是從頭讀到尾的執行順序。(call function除外)
(繼續閱讀...)
文章標籤

Robert 發表在 痞客邦 留言(0) 人氣(353)

  • 個人分類:程式設計
▲top
  • 3月 09 週四 201716:03
  • 日期時間 標準格式 - ISO 8601

「yyyy-MM-ddTHH:mm:ss.fffZ」
例:「2016-03-29T15:20:35.777Z」
(繼續閱讀...)
文章標籤

Robert 發表在 痞客邦 留言(0) 人氣(1,157)

  • 個人分類:程式設計
▲top
  • 2月 08 週三 201709:35
  • [程式][Java] Java Singleton

範例:
public class AutoStudent {
// Singleton
private static AutoStudent instance = null ;
public static AutoStudent getInstance() {
if ( instance == null ) {
synchronized ( AutoStudent.class ) {
if ( instance == null ) {
instance = new AutoStudent();
}
} // synchronized
}
return instance;
} // getInstance()
private AutoStudent()
{
}
} // public class AutoStudent
(繼續閱讀...)
文章標籤

Robert 發表在 痞客邦 留言(0) 人氣(81)

  • 個人分類:程式設計
▲top
  • 1月 18 週三 201715:29
  • Open-Closed Principle

OCP: the Open-Closed Principle

Software entities (class, modules, functions, etc.) should be open for extension, but closed for modification.



一個軟體個體應該要夠開放使得它可以被擴充,但是也要夠封閉以避免不必要的修改。這樣解釋鄉民們應該還是看不懂,接著看 Robert 在書中所說得這段話就會很清楚了 (p. 99):



When a single change to a program results in a cascade of changes to dependent modules, the design smells of Rigidity. The OCP advises us to refactor the system so that further changes of that kind will not cause more modifications. If the OCP is applied well, then further changes of that kind are achieved by adding new code, not by changing old code that already works.
(繼續閱讀...)
文章標籤

Robert 發表在 痞客邦 留言(0) 人氣(17)

  • 個人分類:程式設計
▲top
  • 12月 16 週三 201510:22
  • [程式][C#] C# Singleton

Singleton模式,寫法整理。
 
(繼續閱讀...)
文章標籤

Robert 發表在 痞客邦 留言(0) 人氣(1,915)

  • 個人分類:程式設計
▲top
1

個人資訊

Robert
暱稱:
Robert
分類:
數位生活
好友:
累積中
地區:

最新文章

  • 工作繪圖 軟體清單
  • 套用主題
  • 比對 Powerpoint
  • GCPUG KH Meetup 系列 (2009)
  • 程式語言調查
  • 時區地圖
  • 相關資料
  • 一些連結
  • SoftEther VPN Server 忘記密碼
  • [VPN][SoftEther] 功能強大的VPN軟體工具分享,架設VPN Server首推!

熱門文章

  • (33,240)[程式][JS][HTML] 設定/取得 下拉選單(select)選取的項目(option)
  • (9,101)[程式][C#] 已存入Dictionary的值怎麼取呢?
  • (4,653)[程式][IDE][Eclipse] 編碼設定
  • (2,939)[程式][C#][WinForm][Web] 如何用post上傳檔案,含參數?
  • (1,915)[程式][C#] C# Singleton
  • (1,320)[程式][C#] 不區分大小寫 比對字串
  • (783)[程式][JSTL] 寫for迴圈
  • (672)[程式][JS][HTML] HTML5 使用postMessage在不同網頁之間傳送文字訊息
  • (573)[高雄捷運] 測量行駛時間 信義國小站(O6) ~ 大寮站(OT1)
  • (405)[Microsoft] 尋求官方支援列表

文章搜尋

文章分類

toggle TODO (2)
  • Study (1)
  • 記事 (1)
toggle 學科 (1)
  • 資訊 (1)
toggle 資訊安全 (1)
  • 勒索病毒 (2)
toggle 數位生活 (8)
  • 工作繪圖 (1)
  • 通訊 (1)
  • VPN (1)
  • 網路 (4)
  • 閒聊 (1)
  • Windows (3)
  • Email (1)
  • 中英名詞對照 (2)
toggle 生活 (1)
  • 交通 (1)
toggle 軟體學習 (6)
  • Notepad++ (1)
  • 瀏覽器(Browser) (1)
  • Windows (5)
  • Office (1)
  • SoftEther (1)
  • OCR 光學字元辨識 (1)
toggle 程式開發 (25)
  • Browser (1)
  • JSP (3)
  • IDE (9)
  • PostMan (1)
  • 時間相關 (1)
  • 一般 (1)
  • TensorFlow (1)
  • C# (23)
  • ASP.NET (2)
  • Windows Forms (5)
  • jQuery (1)
  • JavaScript (13)
  • JSTL (4)
  • SQL (6)
  • HTML (6)
  • CSS (1)
  • 安裝檔打包 (10)
  • 工具 (2)
  • 細項 (2)
  • 程式語言 (1)
  • 程式設計 (6)
  • VSTO (4)
  • Azure (4)
  • Java (13)
  • IIS (2)
toggle 技術問題 (3)
  • 部落格 (1)
  • .NET 程式執行問題 (1)
  • 尋求支援與自助 (2)
  • 未分類文章 (1)

文章精選

參觀人氣

  • 本日人氣:
  • 累積人氣:

pixGoogleAdsense1

pixGoogleAdsense2