摘要: 本文討論了實際工作中單元測試實踐和測試驅動開發的感受和困惑,并試圖通過研究業界實踐來回答如下問題:為什么要進行單元測試,對誰進行單元測試,怎么進行單元測試。
閱讀全文
posted @
2010-07-13 17:34 Justin Chen 閱讀(2896) |
評論 (2) |
編輯 收藏
摘要: This message is a summary based on a very good article (http://www.ibm.com/developerworks/java/library/j-ts1.html?S_TACT=105AGX02&S_CMP=EDU) and focusing on common mistakes when implementing transactions in the Java platform. The original article is aimed to discuss Transaction Strategy. Here, we just want to discuss the common mistakes on transaction management.
閱讀全文
posted @
2009-04-15 15:12 Justin Chen 閱讀(2873) |
評論 (0) |
編輯 收藏
摘要: 從今天開始,本人將逐章翻譯《剖析SQL Server執行計劃(Dissecting SQL Server Execution Plans)》一書。該書是系列叢書《高性能SQL代碼的藝術》的第一本,來源于http://www.infoq.com/news/2009/03/SQL- Performance。該書由SQL Server專家Grant Frltchey編寫,并頗獲好評。
閱讀全文
posted @
2009-04-14 22:43 Justin Chen 閱讀(2292) |
評論 (0) |
編輯 收藏
摘要: An Introduction to memcached - Improve Your Web Site Performance By Cache
閱讀全文
posted @
2009-04-12 21:29 Justin Chen 閱讀(2099) |
評論 (0) |
編輯 收藏
摘要: This article is a short summary on the interview with Werner Vogels, who is the CTO of Amazon.com.
閱讀全文
posted @
2009-04-11 21:27 Justin Chen 閱讀(850) |
評論 (0) |
編輯 收藏
摘要: This document is a summary or outline of Sun's document: Tuning Garbage collection with the 1.4.2 Hotspot JVM located here: http://java.sun.com/docs/hotspot/gc1.4.2/
閱讀全文
posted @
2009-04-01 17:19 Justin Chen 閱讀(1063) |
評論 (0) |
編輯 收藏
摘要: Mock test is a very good way to test unit of codes. However, Mock test need lots effort on creating mock object, creating input and output parameter, and creating AugumentMatcher, and also comparing the expected result and actual results (assertions). Using Unitils can Simplify most of the manual work required by Mock Test.
閱讀全文
posted @
2009-03-30 22:30 Justin Chen 閱讀(2012) |
評論 (1) |
編輯 收藏
摘要: Java Memory Management is one of the most important Java Core Techniques. It is worth for every developer to spend some time to learn how it works. It is also a very interesting topic. I try to provide an overview on Java Memory Management, so, some detailed are omitted in the slides, please see detailed by the Reference Links in the last page.
閱讀全文
posted @
2009-03-26 09:47 Justin Chen 閱讀(4699) |
評論 (11) |
編輯 收藏
摘要: JDBC has been used as the major Java Database Access technique for long time. However, JDBC access always need try-catch block and repeated JDBC codes, such as connection, statement and resultset. And recently, JDK 6.0 already released a simplified JDBC access approach. This article will introduce a similar and very simple design to reduce most of JDBC codes. You don't have to repeat the traditional JDBC codes template agan and again.
閱讀全文
posted @
2009-03-20 10:07 Justin Chen 閱讀(2009) |
評論 (2) |
編輯 收藏
摘要: This article is trying to summarize what' the JVM GC log and how can we use it to analyse memory issues.
閱讀全文
posted @
2009-03-19 22:27 Justin Chen 閱讀(8503) |
評論 (2) |
編輯 收藏
摘要: This article introduces three tools: P6Spy, IronTrackSQL and SQL Profiler (NOT SQL Server Profiler). Using these tools are very easy to log all SQL statements and show the detailed statistics results.
閱讀全文
posted @
2009-03-14 21:06 Justin Chen 閱讀(3547) |
評論 (0) |
編輯 收藏
摘要: An introduction on JTracert - Runtime Sequence Diagram Generator Tool
閱讀全文
posted @
2009-03-11 22:42 Justin Chen 閱讀(1757) |
評論 (0) |
編輯 收藏
摘要: In summary, we always met the performance result stability issue during performance testing. This article tries to explain why an java application will perform differently at different time, there are too many factors impacting this, and how can we get a more trustable results. This article is a first try to explain this topic, i hope more and more discussion will make us clearer.
閱讀全文
posted @
2009-03-09 23:25 Justin Chen 閱讀(1532) |
評論 (1) |
編輯 收藏