Every child knows that premature optimization is the root of all evil, and even when optimization is necessary, we should concentrate on the bottlenecks. This is where profiling becomes crucial. Ruby includes a simple profiler in the standard library, so to generate a report of program execution you just have to invoke it with ruby […]
Adam Byrtek
Sceptical Point of View
ruby
Thinner Ruby deployment
In the post on benchmarking HTTP performance I mentioned that according to my tests a cluster of Mongrels performs about 10-20% worse than the same number of FastCGI processes behind a reverse proxy. Recently I tried Thin, a new web server based on Mongrel libraries, and it turns out to be a solution that gets […]
Trivial accessors and uniform access
Some tend to think that Java is a synonym of object orientation done right, some even don’t know other alternatives. But it was always unnatural to me that most of Java classes start their existence with plenty of boilerplate code like this[1]
public class Money {
private double amount;
public […]
