4 ms·
"And it's much easier to write correct Ruby than correct C." No, it isn't. C may be spartan, but its failure modes are predictable and manageable. A ruby pro
by jemfinch 15y ago
"And it's much easier to write correct Ruby than correct C."
No, it isn't. C may be spartan, but its failure modes are predictable and manageable. A ruby program can be incorrect for a host of reasons completely unrelated to the program (interpreter bugs, garbage collection problems, etc.) and the language as a whole provides features (dynamic typing, method injection, exceptions) that make it harder to write correct programs.
Ruby may make it easier to write programs, but it definitely doesn't make it easier correct programs.
- rayiner 15y agoEh, Ruby's failure modes are predictable too. I've never tracked a bug down to a "garbage collection problem", whatever that is. But I certainly have come across problems with C's lack of type safety, lack of memory safety, lack of GC, etc.