HashMap vs TreeMap

04 Apr 2013

Map is an important data structure. In this article, let's play with dogs and see how maps can be helpful in our development.

There are 4 commonly used implementations of Map in Java SE - HashMap, TreeMap, Hashtable and LinkedHashMap.

Read more... hashmap , map , treemap


ArrayList vs LinkedList vs Vector

04 Apr 2013

List, as its name indicates, is an ordered sequence of elements. When we talk about List, it is a good idea to compare it with Set which is a set of elements which is unordered and every element is unique.

Read more... list , vector


Advanced Java Technology

04 Apr 2013

2007年5月25日,我出差上海,正式开始学习 Java 编程。43天之后,返回北京,先后开发了 TenementiTouch 两个基于 Struts + JDO 的系统,当然,基础框架都是广州同事帮我搭好了的。接下来是为期一年的活动开发,重点在 JSP + JSTL + EL + JavaScirpt + Flash。唯一一个人感觉良好的系统,开发于2008年年底,会议室预定,界面和体验尚可,基本上把 jQuery 搞明白了。之后的工作,更偏重项目管理,直到今天。

纵观这段历程,就个人的知识结构而言,有一个非常明显的硬伤,那就是 Java 基础太差,下面是我起步项目的全部家当:

Java 数据类型 + 集合框架 + JSP + Spring 1.2.8 + JDO

所以,只要有机会,都不要忘了去弥补你曾经欠下的债。

Read more... java , memory


A Tour of Scala

01 Apr 2013

Scala is a modern multi-paradigm programming language designed to express common programming patterns in a concise, elegant, and type-safe way. It smoothly integrates features of object-oriented and functional languages.

Read more... scala


Testing in Scala

31 Mar 2013

If you build your Scala application through Test-Driven Development, you’ll quickly see the advantages of testing before you write production code. This hands-on book shows you how to create tests with ScalaTest and the Specs2—two of the best testing frameworks available—and how to run your tests in the Simple Build Tool (SBT) designed specifically for Scala projects.

And if you’re familiar with Scala, Ruby, or Python, this book is for you.

Read more... test , python , sbt , junit



从小,就有许多梦想,现在,一个也不曾留下。我也没有了眼泪。

黑沉沉的夜里总是开满黑沉沉的花。慢慢睡去,月光撒落,这个世界干燥冰凉。