Skip to main content

The Guava library: a Google lesson in API design

When I first read an article about a new library to do String manipulation, I wondered what could be so interesting in there ? Isn't such a basic topic already well addressed in the standard library ?
But since I am a bit concerned in API design and really wanted to know what would justify to create a new library, because the class String looks OK to me, so ... I gave it a look.
No regrets. Indeed the API is clean, consistent and simple to use.
The guava library.
I wouldn't care for trivial String manipulation, but if I have anything just a bit less than trivial, I will definitively use it !
More importantly, I know I have to look more and more to these "praised" project : google collections being next


Popular posts from this blog

VirtualBox, CentOS, Network and Template

I have been working with VirtualBox and CentOS recently, here are some notes about this experience.
I used VirtualBox 4.2 and CentOS 6.3, but most of this should work with other products too. I created the first headless, minimal CentOS via NetInstall.
I cover two points: create a template machine and configure the Network.
Configure the NetworkWe want Internet access and a LAN local to the host.
For background information read: Networking in VirtualBox by Fat Bloke on June 2012.
The easiest is to enable two Network Adapters: One will be "Host-only" and the second "Nat". In the "Preference" menu you can see the DHCP server range for the Host-only Network. So you may set fixed addresses outside this range.
Next: start the guest. There may be various results at first, depending on a lot of things. Some problem might be solved by rm -f /etc/udev/rules.d/70-persistent-net.rules and a reboot.
Anyway, configure the two interfaces (set your own IP and MAC addresses)…

One in six IT projects ends up ‘out of control’

A surprisingly high number of projects are 'ticking time bombs', according to researchers at the University of Oxford. They analysed 1,500 global projects that had revamped their information technology systems within the last 10 years. They discovered that one in six projects in the sample went over budget by an average of 200 per cent (in real terms) or over ran by an average of almost 70 per cent.

Their conclusion is similar to previous studies: