sotto.org

Posts tagged as ‘Programming’

Droid Sans Mono

A programming font that comes in the Android SDK. I prefer Microsoft's Consolas to be honest. # § ,

Google Guice

Lightweight dependency injection toolkit. # § , ,

Write Dumb Code

From an interview with Brian Goetz of Sun:

Q. So how can developers write Java code that performs well? A. The answer may seem counterintuitive. Often, the way to write fast code in Java applications is to write dumb code -- code that is straightforward, clean, and follows the most obvious object-oriented principles. This has to do with the nature of dynamic compilers, which are big pattern-matching engines. Because compilers are written by humans who have schedules and time budgets, the compiler developers focus their efforts on the most common code patterns, because that's where they get the most leverage. So if you write code using straightforward object-oriented principles, you'll get better compiler optimization than if you write gnarly, hacked-up, bit-banging code that looks really clever but that the compiler can't optimize effectively.
# § , , ,

Closures for Java

Java getting in on all of the hot lambda action that Javascript developers have been enjoying. # § , , ,

Stroustrup on programming

It's difficult.Er. Thanks Bjarne! # § , ,