Common law works very well in practice. Law is a problem that is impossible to solve optimally. Civil law has plenty of weak points - like every complex system.