StringBuffer vs. StringBuilder performance comparison

SpeedEven if the StringBuilder was around for a while now, many people still use StringBuffer in single threaded applications. The main difference is stated in the StringBuffer comments:
“As of release JDK 5, this class has been supplemented with an equivalent class designed for use by a single thread, {StringBuilder}. The StringBuilder class should generally be used in preference to this one, as it supports all of the same operations but it is faster, as it performs no synchronization.” (more…)

The 10 minutes “Getting started with RMI” tutorial

Remote controlSince Java 5 working with RMI (Remote Method Invocation) is very easy. You don’t need the rmic compiler unless you work with legacy RMI clients. Now stubs are generated automatically at runtime. Let’s see a very minimalistic example.

Our scenario will have a server sharing an object via RMI and a client calling the shared instance. (more…)

36 steps to success as technical lead

OrbitThe “tech lead” role can be treacherous at times. While the name implies “leadership“, most of the times it doesn’t come with implied authority like a manager role for example. It often happens that this role is in a no-man’s-land where it brings a lot of responsibility but not enough formal authority. In order to successfully help a project from this position one has to navigate through narrow and convoluted straits.
The role is not clearly defined in most companies and it is placed in a continuum (more…)

The Agile 800 Pounds Gorilla

AgileI woke up this morning and I was Agile. We are all Agile now. Or we are gonna become Agile. Soon. No doubt about it. It is an order. And orders are not to be discussed, just executed.

The Enterprise goes Agile! With the elegance of the huge battleship being pulled across a desert between oceans by slaves, camels and elephants, the Enterprise goes Agile. You can hear the songs and you can feel the hot air vibrating from thousand chests: (more…)

No, inheritance is not the way to achieve code reuse!

EducationEvery once in a while I interview a new computer science graduate for a developer position. I prefer to ask the kind of questions that will let me see how they think about programming, if they think for themselves and if they are passionate about it.
Usually when I get to object oriented programming and I ask for characteristics of an OOP language, I get the text book mantra: encapsulation, inheritance and polymorphism - good. And then I ask what is the purpose of each of them. (more…)

  • Calendar

    July 2008
    M T W T F S S
    « Jun    
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
  • License