Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
Programming Technology IT

Don't Count Cobol Out 274

Hugh Pickens writes "Although Turing Award-winning computer scientist Edsger Dijkstra once said, 'the use of Cobol cripples the mind; its teaching should, therefore, be regarded as a criminal offense,' Michael Swaine has an interesting entry to Dr. Dobb's Journal asserting that Cobol is the most widely used language in the 21st century, critical to some of the hottest areas of software development today, and may be the next language you'll be learning. In 1997, the Gartner Group estimated that there were 240 billion lines of Cobol code in active apps, and billions of lines of new Cobol code are being written every year. Cobol is a key element in the realization of modern distributed business software architecture concepts — XML/metadata, Web Services, Service Oriented Architecture — and e-business."
This discussion has been archived. No new comments can be posted.

Don't Count Cobol Out

Comments Filter:
  • Another one? (Score:5, Insightful)

    by AKAImBatman ( 238306 ) * <akaimbatman@ g m a i l . com> on Friday September 19, 2008 @05:25PM (#25079261) Homepage Journal

    Edsger Dijkstra once said, 'the use of Cobol cripples the mind; its teaching should, therefore, be regarded as a criminal offense,'

    Dijkstra was not known for being conservative in his statements of opinion. His "GOTO considered harmful" essay did a lot of good, but it also did quite a bit of damage. To the point where we ended up with a variety of "considered Harmful" Considered Harmful [meyerweb.com] essays.

    (I wonder if ""Considered Harmful" Considered Harmful" Considered Harmful is soon to follow? Oh wait. That already happened [purdue.edu] in '87.)

    A more conservative viewing of COBOL would show that it held a useful place in history, but is now antiquated. You'd need to be extremely conservative to think that COBOL has a place for growth in the modern world.

    ...

    Oh snap. We got another one.

    In 1997, the Gartner Group estimated that there were 240 billion lines of Cobol code in active apps, and billions of lines of new Cobol code are being written every year.

    Let's be realistic here.

    1. 1997 was 11 years ago
    2. Everyone was preparing for Y2K
    3. Those billions of lines of code were often replacing billions of lines of coded that were removed

    As someone who once worked with mainframes, I can tell you that COBOL isn't dead. However, it's not exactly thriving, either. Legacy systems do their jobs well, so there is little reason to replace them. Instead, many companies use technologies like Java->CICS connectors to bridge the gap between old and new. But that doesn't mean that anyone is going to be developing "millions of lines of COBOL".
    Quite the opposite, in fact. Business moves more quickly today than in any period in history. And with business moving so quickly, companies find they need to develop new aspects to their businesses. Those new aspects often take the form of new opportunities to develop new software.

    If anything, I think COBOL is still hanging on because the mindset for technology is still external facing. Remember the Dot Com Boom? Well, one of the side effects was that technology shifted from optimizing internal operations to interacting with customers directly. Which is not a bad thing, except that internal operations shouldn't be neglected. Thus I see a lot of companies with inefficient internal procedures because they have not invested in proper internal technology infrastructure. This has left a niche where old COBOL programs are nursed along despite a growing amount of manual work for employees at many companies.

    Wouldn't it be nice if technology could solve their problems? Well, it can. All we need is someone to make the investment.

    With the economy going bust at the moment, I have a feeling the pendulum is going to swing back the other way. Companies are going to need to tighten their belts and become more competitive on price. Which means that they need more efficient operations. With the massive advancements in technology and ensuring code quality in the last 10 years, I fully expect that companies will soon have systems every bit as solid as their COBOL mainframes. Except they will be designed with more rapid change and flexibility in mind.

    • by schwaang ( 667808 ) on Friday September 19, 2008 @05:40PM (#25079515)

      Gov. Schwarzenegger ordered a cut in pay to California state workers, and was told that it would be impossible to implement because the payroll system is in Cobol [sacbee.com] and nobody can touch it.

      Sounded like political bull to me, but then again...

      • by guyminuslife ( 1349809 ) on Friday September 19, 2008 @06:02PM (#25079735)
        FYI: When he was reprogrammed by John Connor, it was in COBOL.
        • Another little-known fun fact is that Robocop sees assembly language and DOS commmands.

          For real. Unfortunately, I couldn't find any links :(
        • by red_dragon ( 1761 ) on Friday September 19, 2008 @09:36PM (#25081661) Homepage
          000100 IDENTIFICATION DIVISION.
          000200 PROGRAM-ID.     KILL-SARAH-CONNOR.
          000300
          000400*
          000500 ENVIRONMENT DIVISION.
          000600 CONFIGURATION SECTION.
          000700 SOURCE-COMPUTER. SKYNET.
          000800 OBJECT-COMPUTER. T-800.
          000900
          001000 DATA DIVISION.
          001100 FILE SECTION.
          001200
          100000 PROCEDURE DIVISION.
          100100
          100200 MAIN-LOGIC SECTION.
          100300 BEGIN.
          100400     PERFORM UNTIL SarahConnorIsDead.
          100500         FIND SARAH CONNOR.
          100600         SHOOT SARAH CONNOR.
          100700     END-PERFORM.
          100800 MAIN-LOGIC-EXIT.
          100900     EXIT.
      • by electrictroy ( 912290 ) on Friday September 19, 2008 @06:24PM (#25079995)

        Dear younglings (or oldlings):

        If you want a REAL challenge, forgot cobol. Try programming an Atari 2600 gaming console. You have just 128 bytes of RAM to create a playable video game. (No that was not a typo... 128 bytes.)

        I tried it once.
        I gave up.
        It gave me new respect for the original Atari geniuses who created playable versions of Space Invaders, Missile Command, Cosmic Ark, and Jr. Pacman, and turned a cheap console into the #1 system of its day (1977-to-1984).

        • by AKAImBatman ( 238306 ) * <akaimbatman@ g m a i l . com> on Friday September 19, 2008 @06:38PM (#25080177) Homepage Journal

          The Atari 2600 isn't that hard. It may be limited, but the 6502 is actually a pretty developer friendly architecture. Modern debuggers like the one in Stella can make the process pretty straightforward. (Though I would never dispute the challenges posed by cycle counting in an effort to get better graphics out of the system!)

          If you want a real challenge, try programming the IBM PC in assembler sometime. As in the original systems from the early 80's. It won't take you long to start swearing at the stupid memory segments with their stupid memory models all focused on stupid interrupt calls that are stupidly undocumented! GAH! To add insult to injury, try 80286 protected mode. (Hint: It never actually worked.) For even more fun, try dealing with EMS and XMS memory using a DOS compiler. Yay! How fun! How wonderful! How challenging! And not in a good way!

          Stupid PC. It's amazing that we let it become the dominant platform. (Though in the defense of us geeks, a modern PC does look a LOT different than those beasts of yore.)

          • We (well at least my generation) didn't see the low memory or EMS or XMS as much of a handicap. Hell we saw it as an improvement!

            I think its amusing that youngsters today can't grasp having to do something useful with such antiquated equipment...

            • by AKAImBatman ( 238306 ) * <akaimbatman@ g m a i l . com> on Friday September 19, 2008 @09:11PM (#25081471) Homepage Journal

              It was an improvement as our programs became more memory strapped. That didn't mean that they weren't a bear to program. Heck, they were a bear to use! No one remembers it anymore, but we used to have to create boot disks for nearly every game just to get all the necessary drivers loaded while simultaneously leaving enough low-mem to run the program. It actually got to the point where I was putting a boot disk in the box of each game I purchased.

              DOS Extenders did eventually get good enough to where the game effectively loaded its own Operating System. After that, you didn't care how much low memory there was. But man, was getting there ever a pain!

              • Re: (Score:3, Interesting)

                by kitgerrits ( 1034262 ) *

                By the time of DOS 6, I found a different solution:
                I set up a config.sys menu that set up the system the way I wanted it to run.
                It had generic entries (XMS, EMS, Clean) and game-specific entries.
                (It even had sub-menus and entries to go back to the main menu)

                You could even pick up the current Config.sys mode in your autoexec.bat and automatically start a game!

        • by mikael ( 484 )

          There may have only been 128 bytes of RAM, but the game itself was stored in ROM. The RAM was used to store temporary variables (player scores, player positions, player state, game level, game mode). It would take more than 128 bytes to write something like the sprite tank battle game in the Combat cartridge. You would need 64 bytes to store the bitmaps for each tank orientation (8 directions x 8x8 bit sprite = 64 bytes).

          The most amazing cartridge was Atari 800 Basic which attempted to implement the Basic p

          • Re: (Score:3, Interesting)

            by AKAImBatman ( 238306 ) *

            The most amazing cartridge was Atari 800 Basic

            I believe mikael intends to refer to Atari 2600 BASIC [atariage.com]. It was limited to 9 characters per line and that only worked because it flickered like mad. Crazy, crazy idea. The 2600 simply didn't have enough hardware to generate a text display, even if we assume that cartridges could use superchips for an extra 128 bytes of memory. 2 sprites per scanline just isn't much to work with.

            The Atari 800 was a much more sophisticated piece of hardware with support for many mor

            • by mikael ( 484 )

              Yes, that's the one - I still remember the day I went into town with my parents to buy the cartridge and reading the manuals while taking the bus home. There were labels that were placed on top of the keypads to show which button did which. Like a ZX Spectrum, each key had at least three different color coded functions.

              The Atari 800 was definitely much nicer - plus the two bonus secret graphics modes which supported four color characters although these were only 4x8 pixels in size.

          • Atari sprites were implemented by displaying the contents of a section of memory as a bit map in a column down the screen. you moved the sprite horizontally by writing to an 8 bit register ( many memory mapped i.o. addresses - which cost a lot of the 64K ). vertically was accomplished by actually changing the contents of the memory - rotating the non-zero and eraser edge part of the column of memory. everything ran off the TV vertical blank interrupt to rewrite the screen while it wasn't being drawn. ther
          • right, the game cartridge had 4kb of rom, and later ones had multiple 4kb blocks, up to 8x4kb = 32bk with bank switching.

        • Your return stack and everything came out of those 128 bytes ...

          No screen RAM either. You had to update the image with the CPU as the screen scanned.

      • Re: (Score:3, Informative)

        Gov. Schwarzenegger ordered a cut in pay to California state workers, and was told that it would be impossible to implement because the payroll system is in Cobol and nobody can touch it.

        Correction, Gov. Schwarzeneggar wanted to partially defer pay to California state workers, and pay them in the next quarter. That's what was impossible. And yes, that seems like it would be a lot of work, even if the language wasn't an issue, with the possibility of breaking quite high.

    • Re:Another one? (Score:5, Interesting)

      by number6x ( 626555 ) on Friday September 19, 2008 @05:46PM (#25079569)

      I absolutely agree. There is a lot of new COBOL being written, but it is usually done to enhance existing systems.

      I am currently on a project at a major insurer on a system that is about 90% COBOL. Over the nextre year most of the Batch functionality will be replaced with smaller Real-time enabled called routines running as headless transactions in a CICS region.

      The code base will be greatly reduced because the majority of the field validation is being moved into the new front end web app from the old COBOL based CICS green screens and the Nightly batch routines. The COBOL code will just wait for messages to show up over the Queue and either update, create, read or delete things in DB2.

      The software system is really pretty robust for a Mid-80's era design. It has no central database, each separate portion of the company processes transactions in a distributed peer to peer fashion. Quite advanced for mainframe systems of any era let alone when PC's were just breaking into the 16 bit cpu and greater than 640 k era.

      Mainframes are much cheaper now as well. The models produced by IBM today run on air cooled power PC CMOS design chips and start in the $300K range (and go way up). Paying for comparable computing power on an Intel based platform would cost less, but if you start demanding the 9 nine's of uptime that mainframes deliver the cost of the high availability Intel based machines goes way up and you get into the $250K range.

      People used to believe that 'network' computing would kill the mainframe. Now the mainframe is just a part of the network.

      • by Belial6 ( 794905 )

        the majority of the field validation is being moved into the new front end web app

        That sounds scary...

    • Re: (Score:3, Interesting)

      by syousef ( 465911 )

      Dijkstra was not known for being conservative in his statements of opinion. His "GOTO considered harmful" essay did a lot of good, but it also did quite a bit of damage. To the point where we ended up with a variety of "considered Harmful" Considered Harmful essays.

      (I wonder if ""Considered Harmful" Considered Harmful" Considered Harmful is soon to follow? Oh wait. That already happened in '87.)

      Typical COBOL developer. That's so last century. Don't you know we call them Anti-patterns now? Get with it alread

  • No (Score:3, Insightful)

    by Gat0r30y ( 957941 ) on Friday September 19, 2008 @05:26PM (#25079277) Homepage Journal
    I'm gonna go ahead and count COBOL out. Don't be silly.
  • BSG (Score:4, Funny)

    by HTH NE1 ( 675604 ) on Friday September 19, 2008 @05:28PM (#25079327)

    Long Live the Lords of COBOL.

  • Best Part (Score:5, Insightful)

    by Gat0r30y ( 957941 ) on Friday September 19, 2008 @05:33PM (#25079387) Homepage Journal

    It may seem surprising that it takes any programming at all to implement a salary change in a payroll system, but a commenter on Slashdot said it was at least plausible, and that's good enough for us.

    I think this alone should be enough to discredit the author.

    • by Rayeth ( 1335201 )
      Mod Parent Up. Seriously that comment should basically disqualify anyone attempting to do scientific research or prove anything about anything.
    • Re: (Score:2, Insightful)

      by oldhack ( 1037484 )
      Btw, I had been a long-time subsrcriber of Dr. Dobbs, until about a year ago. About the only thing worth saving from what it has become is Swaine's column.
  • ROI (Score:5, Insightful)

    by plopez ( 54068 ) on Friday September 19, 2008 @05:34PM (#25079401) Journal

    What many people don't get is that a good business person goes after ROI. If you spend money on something, you want to get money out of it. Squeeze every dime until it screams (which I respect, BTW). Ripping out something just because it isn't cool doesn't play. Enhancing or building on top of it when there is a good business case does play. If it ain't broke, don't fix it.

    Having to upgrade every 3-5 years means no ROI. This is a great argument against closed source proprietary vendors.

    BTW, there is OO COBOL out there. And FORTRAN 95 is OO as well, which I am ramping up to do a project in soon (I hope).

    • > BTW, there is OO COBOL out there.

      OO is so twentieth century. Where is the functional COBOL?

    • Re:ROI (Score:4, Interesting)

      by Darkness404 ( 1287218 ) on Friday September 19, 2008 @06:01PM (#25079717)
      The problem with COBOL is that it isn't flexible. I have heard of many businesses having to rewrite many lines of COBOL in order to do simple things such as payroll changes, etc. Also, COBOL isn't very quick to write, what can be done in 50 lines of COBOL can be done in 30 lines of C, and about 20 lines of Python or Java.
      • Re:ROI (Score:5, Insightful)

        by hey! ( 33014 ) on Friday September 19, 2008 @07:03PM (#25080469) Homepage Journal

        Well, that's a matter of being in a hurry go get the program out the door. There's lots of parameter input through the compiler going on. Always has been.

        I personally like terse languages, but I think coupling is a bigger issue. Fifty lines of self-contained COBOL are easier to understand than twenty lines of highly coupled Python that depends on assumptions spread far and wide in the system.

        One of the reasons that so many COBOL systems remain is that they were written in a day when most tasks ran top to bottom. It was before the "event loop" became a familiar pattern to most programmers. In a sense, it shows how reusability can shoot you in the foot (there's few worthwhile tools that can't be dangerous some of the time). Back in the day the vast majority of programs had well defined input, performed a well characterized calculation on that input, and produced a well defined output. Now consider something that is a component in a framework. It has to be damn well conceived because it's meant to operate in situations the designer has never even conceived of.

        So, I'll bet that the COBOL that survives is stuff which does something that is clearly defined, simple, and useful. Why convert it to Java if it works fine and is part of a large body of software that works fine?

      • Re:ROI (Score:5, Interesting)

        by geekoid ( 135745 ) <dadinportland@y[ ]o.com ['aho' in gap]> on Friday September 19, 2008 @07:21PM (#25080621) Homepage Journal

        Anecdotal.
        Properly written COBOL is as flexible as anything else.
        Badly written COBOL isn't flexible--just like every other language.

        "COBOL isn't very quick to write, what can be done in 50 lines of COBOL can be done in 30 lines of C, and about 20 lines of Python or Java."
        and 1 line in perl.

        Where do you get your numbers. I can do things in 20 lines of COBOL that would take 100's of lines in C.And it performs faster then those languages. When you are doing millions of financial calculations and hour, you need reliability and rock solid performance.

      • I think the issue there is that companies have to rewrite their legacy COBOL in new languages becuase they cannot find anyone who knows COBOL (or charges too much).

        COBOL is perfect for its specific domain - batch processing business stuff. I think you'll find that some things (like payroll merges) can be done in 4 lines of COBOL that the equivalent Python or Java would take 1000 lines.

        Here's an interesting take [computerworld.com] on the subject.

        With the emergence of service-oriented architectures, companies are able to more e

        • by S.O.B. ( 136083 )

          I think the issue there is that companies have to rewrite their legacy COBOL in new languages becuase they cannot find anyone who knows COBOL (or charges too much).

          I don't think it's because they can't find anyone who knows COBOL. Any developer who is capable of learning C++ or Java is more than capable of learning COBOL. In fact, it's the ease with which someone can learn the language that is one of it's strengths. The problem is that developers who work with newer technologies don't want to learn it

    • Re: (Score:3, Insightful)

      That is true ROI is big. So is ROLOI. Return On Lack Of Investment. Believe it or not code rots. It depreciates in value and increases in maintenance costs over time without re factoring. This cost is brought on by a number of factors including labor costs ( as the industry changes its standards resulting in a smaller pool of potential employees),business growth ( if your software is critical to your business it should be improving in features and scalability), and talent retention ( go ahead keep your syst
    • Re: (Score:2, Funny)

      by Kayamon ( 926543 )

      ADD 1 TO COBOL GIVING COBOL

  • by Judinous ( 1093945 ) on Friday September 19, 2008 @05:35PM (#25079425)
    My University (Texas A&M Kingsville) still requires COBOL for every IT-related degree, even those not oriented towards programming. My jaw almost hit the ground when I found out that I was going to have to take a COBOL class to earn my CIS degree. Although there is obviously still a need for people to support applications written in that archaic language, I really wish that the bureaucracies of the world would let it die already.
    • by plover ( 150551 ) * on Friday September 19, 2008 @09:47PM (#25081755) Homepage Journal

      Perhaps you should be grateful that they're teaching you at least one commercially viable language.

      When I was in school, we learned several languages that have only microscopic utility in the business world today, and many that exist now only in moldy documentation and hazy memories. Trust me, SNOBOL and PL/1 are not going to get you in any doors. FORTRAN might get you into a few aerospace industries (the kind where the engineers still wear slide rules on their belts.) Pascal morphed into Delphi, and yes, there are jobs for those people (or so I hear.) LISP may still be big (in the (parenthetical (world)) of AI), but good luck finding that job. And I learned half a dozen assemblers for architectures that have now been out of production for over 20 years. Most of today's commercially valuable languages weren't even invented back then: C++, Java, Smalltalk, or any of the .Net flavors. They didn't even teach us C because it hadn't reached our school yet.

      But they taught us COBOL. What other languages have you had to take that you know will still be in use 30 years from today? :-)

  • the use of Cobol cripples the mind; its teaching should, therefore, be regarded as a criminal offense

    I thought it was BASIC and not Cobol in that sentence.

  • Baby Boomers + COBOL (Score:2, Interesting)

    by halsver ( 885120 )

    As a younger person in the world of IT, I question how much longer things like COBOL survive. My theory is that with the aging Baby Boomer population, those IT managers will soon head off to retirement. Younger folks will look at that COBOL as something that needs to go and with Bob gone, we can slowly bring that system to the 21th century.

    As an aside, /. had this little quote at the bottom of the page when reading TFS: "senility, n.: The state of mind of elderly persons with whom one happens to disagree."

    • by geekoid ( 135745 )

      COBOL is a 21st century language.
      Cost, reliability, and performance are the factors.

      COBOL will be here in 50 years.

      • I think you dropped a zero. COBOL will be here in 500 years. It's like the dinosaurs in Dilbert: Everyone will think it's extinct, but really, it'll just be hiding behind the furniture.

    • I think you underestimate how many banks are actually run by immortal (daywalking) vampires.
      • Re: (Score:3, Funny)

        by plover ( 150551 ) *

        I think you underestimate how many banks are actually run by immortal (daywalking) vampires.

        Two less.

  • No way (Score:5, Insightful)

    by OpenSourced ( 323149 ) on Friday September 19, 2008 @05:44PM (#25079539) Journal

    and may be the next language you'll be learning

    Just impossible. Basically because it was the second language (after FORTRAN) that I learned. I don't really understand the fuss about COBOL. Never found it either much worse or much better than other languages. The thing to remember about COBOL is that it was developed to solve a specific kind of problems. Today we would call it a Domain-Specific Language. And that kind of problems it solves with relative straightforwardness. Most of the critics I see of COBOL are for trying to use it as a general-purpose language. I mean, you don't try to write a text editor in PL-SQL, even if you probably could. And nobody criticizes PL-SQL for that reason.

    So COBOL is outdated and verbose. True. So what. It's been years since a wrote a line of the beast, but I wouldn't have a problem to start working with it tomorrow. Also, as the set of problems that it was designed to solve was reduced, it as very pliable to being automatically generated.

    So, a language is a language, all have their problems and advantages. Me, I care much more about the size of my screen or the strength of the air conditioning in my workplace than about the particular dialect that I have to program this week.

  • by Tumbleweed ( 3706 ) * on Friday September 19, 2008 @05:44PM (#25079541)
    000100 IDENTIFICATION DIVISION.
    000200 PROGRAM-ID.     HELLOWORLD.
    000300
    000400*
    000500 ENVIRONMENT DIVISION.
    000600 CONFIGURATION SECTION.
    000700 SOURCE-COMPUTER. RM-COBOL.
    000800 OBJECT-COMPUTER. RM-COBOL.
    000900
    001000 DATA DIVISION.
    001100 FILE SECTION.
    001200
    100000 PROCEDURE DIVISION.
    100100
    100200 MAIN-LOGIC SECTION.
    100300 BEGIN.
    100400     DISPLAY " " LINE 1 POSITION 1 ERASE EOS.
    100500     DISPLAY "NO THANKS!" LINE 15 POSITION 10.
    100600     STOP RUN.
    100700 MAIN-LOGIC-EXIT.
    100800     EXIT.
    • Re: (Score:3, Funny)

      Ack! You gave me major flashbacks to the old Cyber systems I used in college. *And* made me feel old. Bastard!
    • Re: (Score:3, Funny)

      Ack! Get that away! It might be contagious!

    • Old Joke (Score:4, Funny)

      by PPH ( 736903 ) on Friday September 19, 2008 @06:32PM (#25080119)

      So, Tumbleweed wakes up after almost 8000 years in suspended animation. An official in the year 9999 says, "Having searched the ancient archives of Slashdot, we see that you appear to have a working knowledge of COBOL. We have this Y10K problem coming up and we were wondering if you could possibly give us a hand with it."

      • by rah1420 ( 234198 )

        Nice segue into a phrase that sort of tightened my jaw in the DDJ article:

        40-year-old Cobol applications are often extremely well debugged (although anyone who was bit by the Y2K date bug, primarily a Cobol problem, might disagree).

        I disagree with that statement. COBOL was the prevalent language of the time so it was mostly manifested on COBOL compiled programs. However, I maintain that any contemporary language that was in as wide a use as COBOL at the time would have been bitten.

    • Re: (Score:3, Informative)

      by geekoid ( 135745 )

      000010 IDENTIFICATION DIVISION.
      000020 PROGRAM-ID. HELLO-WORLD-PROG.
      000030 AUTHOR. TIMOTHY R P BROWN.
      000040*The standard Hello world program
      000050
      000060 ENVIRONMENT DIVISION.
      000070
      000080 DATA DIVISION.
      000090 WORKING-STORAGE SECTION.
      000100 01 TEXT-OUT PIC X(12) VALUE 'Hello World!'.
      000110
      000120 PROCEDURE DIVISION.
      000130 MAIN-PARAGRAPH.
      000140 DISPLAY TEXT-OUT
      000150 STOP RUN.

      • Some c (Score:4, Funny)

        by geekoid ( 135745 ) <dadinportland@y[ ]o.com ['aho' in gap]> on Friday September 19, 2008 @07:27PM (#25080655) Homepage Journal

        #include "stdio.h"
        #define e 3
        #define g (e/e)
        #define h ((g+e)/2)
        #define f (e-g-h)
        #define j (e*e-g)
        #define k (j-h)
        #define l(x) tab2[x]/h
        #define m(n,a) ((n&(a))==(a))

        long tab1[]={ 989L,5L,26L,0L,88319L,123L,0L,9367L };
        int tab2[]={ 4,6,10,14,22,26,34,38,46,58,62,74,82,86 };

        main(m1,s) char *s; {
                int a,b,c,d,o[k],n=(int)s;
                if(m1==1){ char b[2*j+f-g]; main(l(h+e)+h+e,b); printf(b); }
                else switch(m1-=h){
                        case f:
                                a=(b=(c=(d=g)g)'g)g;
                                return(m(n,a|c)|m(n,b)|m(n,a|d)|m(n,c|d));
                        case h:
                                for(a=f;a=e)for(b=gg;bn;++b)o[b]=o[b-h]+o[b-g]+c;
                                return(o[b-g]%n+k-h);
                        default:
                                if(m1-=e) main(m1-g+e+h,s+g); else *(s+g)=f;
                                for(*s=a=f;ae;) *s=(*se)|main(h+a++,(char *)m1);
                        }
        }

      • Re: (Score:3, Funny)

        by Tumbleweed ( 3706 ) *

        000150 STOP RUN.

        Well, which is it, STOP or RUN? I guess we've identified where Apple got the 'drag disc to trashcan to eject' and where Microsoft got 'Click the Start button to shutdown' mindset from.

  • by extrasolar ( 28341 ) on Friday September 19, 2008 @05:44PM (#25079549) Homepage Journal

    Are you wading the waters to determine how palletable COBOL would be in your buzzword soup? Web 2.0 COBOL cloud computing does have a ring to it. Old is the new "new".

  • by mr_stinky_britches ( 926212 ) on Friday September 19, 2008 @05:47PM (#25079581) Homepage Journal

    they're going to be telling us that Fortran is the new Java.

  • by sstory ( 538486 ) on Friday September 19, 2008 @05:49PM (#25079599) Homepage
    What do COBOL coders make these days? Is it worth learning?
    • Re:job market (Score:4, Interesting)

      by FatMacDaddy ( 878246 ) on Friday September 19, 2008 @06:03PM (#25079753)
      You've directly addressed why I think this article is bogus. I know a boatload of former COBOL programmers who would jump at a COBOL job offer. Too bad there aren't any. Most of those guys are either working in java or else have left programming entirely (to go to management or completely different fields).

      Maybe you shouldn't count COBOL out in terms of it still being used in the business world, but I sure wouldn't base any career decisions around it.

      • by geekoid ( 135745 )

        We are looking, and are people get offers.
        I know people making 100 Plus an hour and have been for years.

        Maybe those programmers should get out of the boat and work at getting a job~
        Of course, the area they are in may not need any right now.

    • by PPH ( 736903 ) on Friday September 19, 2008 @06:05PM (#25079777)

      What do COBOL coders make these days?

      COBOL programs.

      <rimshot/>

    • In my experience, COBOL coders mostly work on old COBOL programs. Very few new things get written for it. Old bugs get ironed out and new ones get added in. And the answer to your question is probably no. I don't see COBOL going anywhere in the next few years and I see it becoming less and less of a solution as old programs eventually get written in C, Python, Java, etc.
    • Not that much [itjobswatch.co.uk], but this is a UK-specific survey. Still, seems there's a steady progress upwards.

  • Can someone give me a side-by-side example of C and Cobol program or statement to do the same thing which would illustrate why Cobol is so "evil"?

  • Bollocks (Score:2, Insightful)

    by MosesJones ( 55544 )

    Seriously I can't think of something that is more rubbish. Yes COBOL is out there, but as a mainstay of XML and Web Services? Are you serious? Have you tried getting an old mainframe to talk in Unicode? COBOL is what old apps are written in and what they are maintained in, its not that there are no jobs but you'd be nuts if you are a talented coder to get into COBOL. If you are 50 and want a pension however its an ideal area to get into.

    Yes I know COBOL, yes I have developed and maintained in it, and N

    • Re: (Score:3, Interesting)

      by geekoid ( 135745 )

      I guess someone who quotes Gandhi showing off his complete ignorance shouldn't be expected to know the many new COBOL apps are used, and there are some very widely used enterprise systems that sue a language very similar to COBOL.

  • by Waffle Iron ( 339739 ) on Friday September 19, 2008 @06:06PM (#25079789)

    In 1997, the Gartner Group estimated that there were 240 billion lines of Cobol code in active apps, and billions of lines of new Cobol code are being written every year.

    The report neglected to mention that 239.9 billion of those lines were boilerplate headers and math operators spelled out with English verbs.

  • by david_thornley ( 598059 ) on Friday September 19, 2008 @06:21PM (#25079971)

    Noooooooooooooooooooooooooooooooooooooo!!!!!

    What I got when I tried to post the original:

    Filter error: Don't use so many caps. It's like YELLING.

    So what do you do when yelling is appropriate?

    • by geekoid ( 135745 )

      If only we had some sort of 'point' to tell people the sentence is exclaiming something..and was used only once at the end of a sentence~

  • ...IT management paid for this.

    "Oh please. Recruit us another few thousand COBOL programmers so we can patch this application just one more time."

    OK, so COBOL isn't the worst language possible. But given a clean slate, how many new applications would be written in COBOL?

    Anybody? (sound of crickets)

    I'm wondering whether recruiting CS majors for COBOL jobs is as successful as recruiting high school grads to do military service in Afghanistan is.

  • This is one of the prime examples of why measuring code by "lines" is bogus.

    After all, in the typical Cobol program, most of the variable names are so long that you can't fit two of them onto a line on your typical cubicle worker's screen. Of course there are zillions of lines of Cobol code. And all those zillions could probably be expressed in perl or python in maybe 100 lines, or 1000 lines of C. (But you wouldn't be able to read them.)

    Now if /. only had a HHOS [catb.org] moderation ...

    • After all, in the typical Cobol program, most of the variable names are so long that you can't fit two of them onto a line

      I think you're confusing it with Java/C# :)

  • by doti ( 966971 ) on Friday September 19, 2008 @06:28PM (#25080059) Homepage

    "billions of lines of new Cobol code are being written every year"

    that accounts two hello worlds, and one program that shows the first 1000 fibonacci numbers.

  • oh lord o cobol, hear my prayer.

  • "COBOL actually aint so bad
    repeat until believe

    (the above was much more droll in my
    original, authentic all-caps cobol-esque
    version, but the higher powers have deemed
    that you cannot enter caps cobol syntax into
    a slashdot post.)

  • You know, sometimes I get the feelin'
    That, that uh, accountants and lawyers
    are in cahoots with the Devil
    Yeah, they're in cahoots with the Devil!
    To cover the Earth
    Cover the Earth with this wretched swill
    of gutless, mediocre, middle-of-the-road,
    sleep-inducing, homogenized pabulum programming languages for the slavery of daily drudgery
    Sometimes I get that feeling man, but I know it's a lie
    I know it's not true
    I know it's not true
    And I'm talkin' to Larry Wall now
    Larry Wall, I'm talkin' to ya
    Lar
  • A few years ago in college, one of my professors was giving away a table full of programming/comp sci books. I stumbled on 'Basic COBOL' or something like that and joked "You can probably just throw this one out." He laughed and said it was the most widely used language on the planet. At the time I didn't really believe it, but kept it anyway, I'll have to crack it open and take a peek.
  • Not "Cobol" or "cobol" as the TFS would have it but COBOL.

    Now: allow me to rant on all of you who call it the "Patriot Act". ARGGGGGHHH!!

    (There: got my pirate cred in there, too.)

  • Trying out a script in Expect.
    Delightful.
    You see where tidier tools have stolen market share from TCL.
  • You will be assimilated & spend the rest of your life in Bangalore implementing crazy Java standards written by MBA's during their Colorado ski trips who have no idea what they're doing.

  • I don't know anyone who codes COBOL, I don't know anyone who knows anyone who codes COBOL. Same for NASCAR, but I know they are out there.
    I think a long time ago, some Oracle Apps were written in COBOL.
  • there will still be COBOL.

    MOVE A TO B.
    COMPUTE GROSS-PAY = HOURS-WORKED * HOURLY-RATE
    SET MY-INDEX TO 1
    SET ADDRESS OF MY-LINKAGE-SECTION-ITEM TO MY-POINTER
    READ TRANSACTION-FILE INTO TRANSACTION-RECORD-WS

    MOVE 2101 to AD
    BEGIN WAR
    SET CAPTAIN = "What happen?"
    SET MECHANIC = "We get signal"
    SET CAPTAIN = "What?"
    OPERATOR MAINSCREEN = TURN-ON
    SET CAPTAIN = "It's you!"
    SET CATS = "How are you gentlemen?"
    SET ALLYOURBASE = BELONGTOUS
    SET YOU = AREONTHEWAYTODESCTURCTION
    SET CHANCE != SURVIVE
    SET LAUGH = "Ha ha ha ha"
    OPERATOR CAPTAIN = "!!*"
    SET CAPTAIN = "Take off every Zig"
    MOVE ZIG FOR GREAT-JUSTICE

  • by caseih ( 160668 ) on Saturday September 20, 2008 @11:01AM (#25085345)

    This pretty much blows my mind:

    http://www.sorn.net/media/photos/blog/cobol-gtk-sharp.png [sorn.net]

    The compiler here is called Wildcat, and it's a .NET compiler (runs on the CLR).

The Tao is like a glob pattern: used but never used up. It is like the extern void: filled with infinite possibilities.

Working...