Year: 2015
-
Software Development
Do It Either Way, We’ll Refactor It Later
It often happens that a new piece of functionality is discussed within a team and different developers have a different…
Read More » -
Core Java
Java Concurrency Tutorial – Locking: Explicit locks
1. Introduction In many cases, using implicit locking is enough. Other times, we will need more complex functionalities. In such…
Read More » -
Core Java
Value-Based Classes
In Java 8 some classes got a small note in Javadoc stating they are value-based classes. This includes a link…
Read More » -
企业级Java
JMeter负载测试入门教程 – 终极指南
本教程是关于JMeter的。我们将会涉及到的要点如下: 我们会解释JMeter是用来干什么的。 JMeter是如何设计和实现的以及涉及到哪些技术。 如何正确的安装和配置它。 它的用户界面(UI)的基本功能。 详细介绍如何配置不同的测试计划。 展示如何分析它的输出结果。 最后我们会提到一些重要的最佳实践。 本文所提到的所有示例的配置和实现环境是: Java 8 update 0.20,Eclipse Luna 4.4, JMeter 2.11 和MySQL Community Server 5.6.21. 目录 1. 简介 2. 涉及到的技术 3. 本文主要讲些什么? 4. 安装 5. GUI…
Read More » -
Enterprise Java
Hibernate locking patterns – How does OPTIMISTIC_FORCE_INCREMENT Lock Mode work
Introduction In my previous post, I explained how OPTIMISTIC Lock Mode works and how it can help us synchronize external…
Read More » -
Java核心
Java 8特性指南 – 终极手册 (PDF下载)
编者按:距离Java 8的发布已经有段时间了,就目前看来它的确是一个非常重要的版本。我们之前已经在JavaCodeGeeks发布了一系列专题文章,如玩转Java 8-Lambda表达式和并发,Java 8日期/时间API入门:LocalDateTime 以及 JDK8时代的抽象类vs.接口。同时我们也从其它来源处引用了15个必读的Java 8教程。当然,我们也对它的一些短板进行了验证,如Java 8的暗面。为了读者们更好的阅读体验,现在是时候整合所有Java 8的主要特性于一处了。一起来享受它吧! 目录 1. 简介 2. Java语言的新特性 2.1. Lambda表达式和函数式接口 2.2. 接口的默认方法和静态方法 2.3. 方法引用…
Read More » -
Software Development
Unit Test, System Test, Red Test, Green Test
We tend to categorize different types of tests according to what they cover. Unit tests cover small portions of code,…
Read More » -
Software Development
The Joel Test Updated For Programmers
A while back—the year 2000 to be exact—Joel Spolsky wrote a blog post entitled: “The Joel Test: 12 Steps to…
Read More » -
Core Java
Default methods and multiple inheritance
Recently Lukas JOOQ Eder posted and article about nested classes and their use. This is an interesting topic and his…
Read More »