Considering Ruby does not really have the concept of compile time you can hardly complain that it does not catch bugs at compile time like staticly typed languages do.Errors related to memory management are really rather easy to avoid in C and especially in C++.