Even 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…)
Filed under: Java API, Java Tips by Daniel Pietraru
No Comments »
Since 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…)
Filed under: Java API by Daniel Pietraru
2 Comments »
The “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…)
Filed under: Opinions, Software Development by Daniel Pietraru
8 Comments »
I 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…)
Filed under: Humor, Opinions, Software Development by Daniel Pietraru
6 Comments »
Every 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…)
Filed under: Opinions, Software Design by Daniel Pietraru
40 Comments »