本文发表在 rolia.net 枫下论坛That's the reason it survives for so many years - anyone can easily understand its plain language of the code others wrote 20 years ago. Imagine, without proper comments, good programming style, plus some high skilled tricks, how hard to understand other people's C programs even 1 day ago? The cost to enhance existing system may be so high to a point to exceed the price to build a new one. That's a main reason why OO comes to this world - the idea is to encapulate the complexity, inheritate and enhance functions without the need to understanding the details, and gives the flexibility to run different piece of code based on the run-time object type. But who can say C++ is easier than C? JAVA does a much cleaner job. Someone will argue java's poor performance. But performace is something that can be improved upon easier than the fundamental structure of a language. I admit that c is so powerful and flexible and can be used to build beautiful systems and everyone loves. But the sad thing is, it may have a short life span than cobol - the ugly, verbose, old dated language just refuse to die.更多精彩文章及讨论,请光临枫下论坛 rolia.net