×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

There is OO Cobol. May not a cool option though. Cobol is verbose for sure - That's exactly its strength.

本文发表在 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
Report

Replies, comments and Discussions:

  • 工作学习 / 专业技术讨论 / COBOL or C++, who will die first?
    本文发表在 rolia.net 枫下论坛The hype that surrounds some computer languages would persuade you to believe that most of the production business applications in the world are written in Java, C, C++ or Visual Basic and that only a small percentage are written in COBOL. In fact, the reverse is actually the case.

    In the horizontal software market, applications may still cost millions of dollars to produce but thousands, and in some cases millions, of copies of the software are in use. As a result, these applications often have a very high profile, a short life span, and a relatively low per-copy replacement cost. The Microsoft Office suite (Word, Excel, Access) is an example of an application in the horizontal software market. Because of the highly competitive nature of this marketplace considerations of speed, size and efficiency often make languages like C or C++ the language of choice for creating these applications.

    Applications written for the vertical market, on the other hand, often have a low profile (because they are usually written for use in one particular company), a very high per-copy replacement cost, and consequently, a very long life span. For example, the cost of replacing COBOL code has been estimated at approximately twenty five dollars ($25) per line of code. At this rate, the cost of replacing the DoD MRP II system mentioned above, with a system written in some other language, would be some one hundred million dollars ($100,000,000). The importance of ease of maintenance often makes COBOL the language of choice for these applications.

    The high visibility of horizontal applications like Microsoft Word or Excel persuades people that the languages used to write these applications are the market leaders. But however many copies of Excel are sold, it is just a single application produced by a limited number of programmers. Many more programmers are involved in coding or maintaining one off, "bespoke", applications. And these programmers generally write their programs in COBOL.更多精彩文章及讨论,请光临枫下论坛 rolia.net
    • Common Business-Oriented Language 有其发展的特殊性,有其应用的局限性。
      现在计算机技术在大众生活中的广泛应用( 以嵌入式系统应用为代表)使得象C 和C++这种高效,可扩展的,既高级又 贴近计算机体系结构的语言有着极广泛应用和强大的生命力。
    • there isn't a war between COBOL and C++. they both have different reponsibility to the computer programming world, don't they?
      they should live their life well in their particular domains, shouldn't they? though C++ probably has a slightly better day than COBOL.
    • Cobol will not die, but it will be transformed to C, if not ++. There are more lines of COBOL in this world than C/C++? I don't know how they counted it, but if this is right it can only prove that COBOL is verbose.
      • There is OO Cobol. May not a cool option though. Cobol is verbose for sure - That's exactly its strength.
        本文发表在 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
        • Cobol code is not easier to understand than C. because of 1. it takes more lines of code to express the same logic 2. more global variables.
          • COBOL 有很多GOLBAL VARIABLE吗?在WORKING STORAGE中定义的变量应该是属局部变量,在COMMONAREA中定义的应该就是你说的GOLBAL VARIABLE,但比起C不算是很多的了
        • It seems there are many 大侠 in this 论坛... very nice
          I thought most people would agree that Cobol is easier to understand from the language structure perspective, as it is not that powerful as C, and Cobol is not at system level programming....Of course, case by case, there are always exceptions....