• submit to reddit
Hubert Klein Ikkink10/10/12
2745 views
0 replies

Groovy Goodness: Drop or Take Elements with Condition

In Groovy we can use the drop() and take() methods to get elements from a collection or String object. Since Groovy 1.8.7 we also can use the dropWhile() and takeWhile() methods and use a closure to define a condition to stop dropping or taking elements.

Zemian Deng10/10/12
6544 views
0 replies

Enhancing Spring Test Framework with beforeClass and afterClass setup

JUnit allows you to setup methods on the class level once before and after all tests methods invocation. However, by design on purpose that they restrict this to only static methods using @BeforeClass and @AfterClass annotations.

Roger Hughes10/10/12
6676 views
3 replies

A Footnote on Accessing Request Parameters using Spring 3 MVC

I recently got a comment on my blog: Accessing Request Parameters using Spring 3 MVC, pointing out something that I didn’t know about Spring’s @RequestParam annotation. The comment, from salient1, went like this:

Prabath Siriwardena10/10/12
5730 views
0 replies

What OAuth Lacks: Resource Owner Initiated OAuth Delegation

I'll be going on vacation for two weeks - now I want to delegate some of my access rights to Peter only for that time. Conceptually OAuth fits nicely here. But - this is a use case which is initiated by the Resource Owner - which is not addressed in the OAuth specification.

Zac Gery10/10/12
11308 views
0 replies

How Good Programmers Get It Done

Developers come from all walks of life, but the difference between an average and good developer is time management.

Oliver Hookins10/10/12
5780 views
4 replies

Cool, interesting, useful, unique and innovative Shell Prompts

I’m sharing my tmux PS1 prompt variable with you. It’s not the most advanced, doesn’t use all of the bells and whistles and I’m still not entirely sure the information it presents is essential but it’s a work in progress. I’d love for you to share your own in the comments in the hope of spreading know-how and ideas!

Justin Bozonier10/10/12
3673 views
0 replies

How I Unit Test the Document Object Model

I created a function that will add arbitrary html to the DOM and remove it immediately after my test has run. This is what it looks like in use . . .

Leigh Shevchik10/10/12
8650 views
0 replies

Two of My Favorite Javascript Design Patterns

In this post, I’m going to show you two of my favorite patterns for keeping JavaScript well organized. But before I do, let’s go over a few prerequisites. . .

Partha Bhattacharjee10/10/12
4356 views
1 replies

The Benefits of Cynicism in Coding

A healthy amount of cynicism goes a long way in designing a resilient system.

Andrew C. Oliver10/10/12
64784 views
43 replies

Why Java EE Lost and Spring Won

I hate to disappoint my former colleagues at JBoss, who are still keeping up the good fight to promote Java EE as a programming model, but they have lost.

Esen Sagynov10/09/12
29253 views
0 replies

How to Tune Java Garbage Collection

This is the third in a series on understanding and performing Java Garbage Collection. I will show some of the best options you can use for GC tuning.

Cagdas Basaraner10/09/12
7626 views
2 replies

5 Common Automized Software Quality Metrics (with Pros & Cons)

Counting lines of code is probably the most simple method. It mostly indicates the scale of the software and gives an input for project growth and planning. For example, if we get SLOC count once a month, we may sketch a graph of project growth. Of course this is not reliable due to refactoring and design phases but may give a viewpoint.

Mike Stonebraker10/09/12
4697 views
0 replies

Writing VoltDB Apps in Java Q&A

Last month I presented a webinar introducing the basics of application development using VoltDB. We had a lot of great questions and I thought it would be handy to write them up and share the answers with everyone.

Partha Bhattacharjee10/09/12
2615 views
0 replies

Bit by Bit

My first ever software programming language was C. Almost two decades later, in weird unexpected ways I find myself understanding software concepts, subconsciously in C.

Oliver Hookins10/09/12
3854 views
0 replies

Amazon S3 Object Deletions and Multi-Factor Authentication

I did some benchmarks and found that (with batch operations) it took around three minutes to delete ~75000 files in about a terabyte. Single-threaded.