Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
Programming Businesses Technology IT

Why COBOL Could Come Back 405

snydeq writes "Sure 'legacy systems archaeologist' ranks as one of the 7 dirtiest jobs in IT, but COBOL skills might see a scant revival in the wake of California's high-profile pay-cut debacle. After all, as Fatal Exception's Neil McAllister points out, new code may in fact be more expensive than old code. According to an IDC survey, code complexity is on the rise. And it's not the applications that are growing more complex, but the technologies themselves. 'Multicore processing, SOA, and Web 2.0 all contribute to rising software development costs,' which include $5 million to $22 million spent on fixing defects per company per year. Do the math, and California's proposed $177 million nine-year modernization project cost will double, McAllister writes. Perhaps numbers like those won't deter modernization efforts, but the estimated 90,000 coders still versed in COBOL may find themselves in high demand teaching new dogs old tricks."
This discussion has been archived. No new comments can be posted.

Why COBOL Could Come Back

Comments Filter:
  • Got that? So if California goes ahead and builds a new payroll system, within nine years -- about as much time as it has taken to get the 21st Century Project off the ground -- the cost of fixing bugs in the new code could exceed the original cost of the project.

    If software is implemented correctly, it will stand the test of time.

    The fact that there seems to be some hard-coded values or formulas throughout this code is a fair indication that this COBOL architecture did not have the foresight of someone ever changing minimum wage. Where I grew up, minimum wage changed yearly as it was usually necessary to adjust for inflation. Now, if this is an indication of the rest of that software, I would opt for a newer technology. On top of that, I would go to the lead system engineer with a hand written note reading:

    The software shall have a management interface for changing minimum wage and cascading that change correctly through all aspects of the software and other machines.

    I'll bet this software isn't modularized. I'll bet this software has some pretty low security standards. I'll bet this software requires a client app installed on any user's machine.

    Pull your head out of your ass, "dollar amount one
    If you're short on funds, you're short on funds but if you're saying it's cheaper I would like to see your pricing chart for usability, stability, maintainability, etc.

    Why COBOL Could Come Back

    I think there will always be a niche market for every language but if you mean 'come back' like COBOL would become the average developer's language of choice I would curtly retort with a sharp 'ha.'

    • by idobi ( 820896 ) on Thursday August 07, 2008 @02:02PM (#24512933) Homepage
      I think many people missed the point of the California problem. It wasn't limited to lowering everyone's earnings to minimum wage. The main problem was that after the budget was approved, everyone's wages needed to be adjusted again AND those people need to have back wages paid for the period that they we being paid less. That's a complex problem that most programs, even modern ones, probably are not designed to consider.
      • by polar red ( 215081 ) on Thursday August 07, 2008 @02:24PM (#24513365)

        yeah, as a software archeologist myself, i can testify that old systems still need maintenance: new laws, changes in organization, new products,... that means that those old systems all need continuous 'fine-tuning' - no administrative program really is 'complete'; to make matters worse: those systems get more and more complex. While a complete rewrite could save money in the long run, in the short term this would be very costly.

      • by pauls2272 ( 580109 ) on Thursday August 07, 2008 @02:37PM (#24513579)

        >I think many people missed the point of the California problem

        That was part of it but reality is that it is mostly politics.
        According to a post on USENET (in bit.listserv.ibm-main) by a guy who actually worked on the code, it is all VSAM files for database and table driven. Trival to change to min wage and just being VSAM means you could just duplicate the files and easily maintain 2 sets of files - one with min wage and one with the real wage.

        No, the answer is the politician don't want to do it so just come up with any excuse to say it is "impossible".

    • by Krishnoid ( 984597 ) on Thursday August 07, 2008 @02:15PM (#24513181) Journal

      If software is implemented correctly, it will stand the test of time.

      Sturgeon's [Ll]aw [wikipedia.org] applies to software -- except probably with the 90% figure adjusted upward as some function of Moore's law [wikipedia.org] and the observations of Fred Brooks [wikipedia.org], of Mythical Man-Month fame.

      IMHO, after a couple decades of accretion of existing software systems, poorly implemented and even designed software systems are production reality today. If you don't take this into account, you're dealing with an ideal that will statistically exist only 10% or less of the time, and when it does, only when rigorous administration and maintenance is continuously applied to the software.

    • Coming from someone who is currently supporting a legacy COBOL system, you're right on target.

      COBOL is shit. Most legacy COBOL code is not designed with anything like what we'd consider "best practices" today. The language itself is unfriendly, and doesn't lend itself to the modern world.

      What it does have is inertia. It works, right? Why replace it? It's the product of decades of business evolution, do you think you can replace that overnight? New code will never be as good.

      Basically, they're comfortable with their crusty old bugs, and they don't want to deal with scary new bugs.

      In my environment we've basically thrown this whole interface built on Oracle and Java on TOP of the old COBOL MPE/ix system. Placates the conservative financial types, while providing some modern functionality.

      Still there are all kinds of problems with the old systems. You can end up with some really scary problems with old code, because it doesn't recover from failure like you'd expect modern code to. A java billing application running on a modern transactional database...If it crashes, you can just run it again. A COBOL app on a legacy database? That just ruined your day.

      I would hope that the response to the situation would be to finally migrate your systems, not to accrete more levels of unsupportable crap by dragging COBOL programmers out of retirement, or forcing existing programmers into that outdated mold. I know the money types though; they are perfectly capable of trying to stick with the outdated method simply because it's in their comfort zone.

      • by johnlcallaway ( 165670 ) on Thursday August 07, 2008 @03:21PM (#24514509)

        What a bunch of horse shit. Don't blame poorly designed code on the language. I wrote plenty of COBOL code in the 80s that was able to recover from failures, even those that wrote into ISAM files. It's not about the code, it's about how clever and imaginative the coder is.

        Is COBOL suited for everything?? Of course not, nothing is. That is why a good coder will have several tools and be able to use the one that best suits the task at hands. Creating fixed-output reports?? COBOL. Writing applications to process HTML?? I don't think so.

        As someone who currently spends his career rewriting 'legacy' code, whether it be COBOL or C or C++ (10 years ago is still legacy in some minds), I can tell you that rewriting a complete system is a recipe for disaster. First, all maintenance on the new system has to stop. Secondly, someone has to go through every program LINE BY LINE and document what they all do, I can guarantee that what people think they do is not what they really do.

        Then you have two choices ... rewrite, or re-engineer. Rewriting many times ends up with the same garbage that ran before, just in another language. Re-engineering is better, but takes longer and is more difficult to parallel test.

        My preferred method is to take subsets and gently migrate. 10 small projects with a one or two failures is much better than one large project with one failure.

        • I've rarely ever seen good COBOL, so maybe it's possible. From what I HAVE seen, especially with the never-to-be-sufficiently-cursed KSAM flat table POS wannabe database files, suggests to me that good, recoverable, code, is nearly impossible to write. None of that stuff is transaction safe. The programs work in too many discrete steps; if it fails, it hardly ever fails in such a way that you can just RE-run the program; either you need a recovery-specific subset or you have to traverse the program until the point of failure and see if you can recover it.

          The line by line approach is a recipe for disaster. In old code, especially in old code, most lines are suspect. What is dependent on system crap (ISAM/KSAM files are a good example) that doesn't apply in the modern world? What is part of an ugly kludge? What is just unnecessary?

          You need to step back, analyze the process, and replicate the functionality, not the code.

          Yes, it's a sucky process. Yes, there are going to be problems. But it's only going to get worse going down the line, and supporting COBOL is getting more nightmarish by the year as there are fewer and fewer people in the market who are capable.

          It's going to have to be done. I'm not against an incremental approach, but I am strongly against just pretending like the current situation can continue forever.

      • Re: (Score:3, Interesting)

        by mattwarden ( 699984 )

        What it does have is inertia. It works, right? Why replace it? It's the product of decades of business evolution, do you think you can replace that overnight? New code will never be as good.

        State governments are paying millions and millions of dollars to replace their legacy COBOL based systems, so the question of "Why replace it?" has some pretty convincing answers...

      • by SirLurksAlot ( 1169039 ) on Thursday August 07, 2008 @03:54PM (#24515179)

        COBOL is shit. Most legacy COBOL code is not designed with anything like what we'd consider "best practices" today. The language itself is unfriendly, and doesn't lend itself to the modern world.

        The language itself is fine. Yes it's verbose, and yes it's old, but it does what it needs to do, which is solving business problems. Look, you need to keep a historical perspective here. COBOL was created back in the "bad old days" before all the best practices were written, because at the time they were still being written.

        Basically, they're comfortable with their crusty old bugs, and they don't want to deal with scary new bugs.

        Ever heard the phrase if it's not broke don't fix it? By your logic we need to pull out core modules in the Linux kernel just because they've been in there for 10+ years! (Note: I don't actually know what the lifespan of code in the kernel is, but you hopefully get my point.)

        Still there are all kinds of problems with the old systems. You can end up with some really scary problems with old code, because it doesn't recover from failure like you'd expect modern code to. A java billing application running on a modern transactional database...If it crashes, you can just run it again. A COBOL app on a legacy database? That just ruined your day.

        Not to ruin your rant here or anything, but you're comparing a modern language using a modern transactional db with a legacy language using a legacy db. Of COURSE you're going to see a difference in your ability to recover from a failure! It's not as if you can't code for a proper recovery in COBOL if you're using a modern transactional db on the backend.

        I know the money types though; they are perfectly capable of trying to stick with the outdated method simply because it's in their comfort zone.

        I think you're forgetting why most of us are employed as developers. 95% of us (I'm speaking about employed devs, mind) are not here to write code simply to write code, we're here to solve problems, and most of the time that is for a business that is out to make money. Also most of the time if there is no business case to update the code then it doesn't get updated. As for outdated models, how is it outdated if the model still serves it's purpose?

        • Re: (Score:3, Interesting)

          The language itself is fine. Yes it's verbose, and yes it's old, but it does what it needs to do, which is solving business problems. Look, you need to keep a historical perspective here. COBOL was created back in the "bad old days" before all the best practices were written, because at the time they were still being written.

          I don't see that this has anything to do with whether COBOL is an OK language. This means that it was an OK language (or maybe even a good language) in the "bad old days", but Moore's Law has given us the luxury of having much higher standards now.

    • by bws111 ( 1216812 ) on Thursday August 07, 2008 @02:35PM (#24513519)

      Yup, no doubt the people that implemented this system were complete idiots, unable to come up a system that was 'well designed'. Oh wait, I wonder what 'good design' was when this was written. Maybe it included things such as 'being able to run in a machine with 16MB virtual address space, with 1MB real memory installed'.

      As for security, you're probably also right there. It seems just about every week I read a report of some COBOL-based payroll system being hacked (which you would expect, since there are probably thousands of such installations). Oh wait, I never read that.

      It seems to me you are quick to criticize, without even a basic understanding of the requirements for this change. It is NOT some simple 'raise minimum wage'. It is 'temporarily lower ALL employees wages (hourly and salaried) to minimum wage'. When the budget is passed, put the wages back where they were and issue back pay. Don't forget about little details like deductions for taxes, insurance, retirement, etc. How do you calculate the withholding rate for income tax? What do you do when someones deductions exceed their pay? When the pay is restored, what do you do about people that have left, retired, or died in the meantime?

      I think that the timeframe they give is not all that unreasonable, considering all that must be done. It will take a substantial amount of time just to come up with complete requirements. Then the coding must be done. Since this is a financial application I am sure there is much testing, and probably some fairly stringent auditing that must also occur.

      • I agree; the stuff worked well in old systems. It was optimized to save CPU cycles and disk space...It was a conscious decision which made good use of the resources of the day.

        Unfortunately that day is gone. We should focus now on code reliability and maintainability and COBOL is not great in those areas. Trying to write in intelligent failure into a COBOL app is a nightmare compared to JAVA where it's almost the backbone of the whole language.

      • by raftpeople ( 844215 ) on Thursday August 07, 2008 @03:32PM (#24514695)

        It seems to me you are quick to criticize, without even a basic understanding of the requirements for this change. It is NOT some simple 'raise minimum wage'. It is 'temporarily lower ALL employees wages (hourly and salaried) to minimum wage'. When the budget is passed, put the wages back where they were and issue back pay. Don't forget about little details like deductions for taxes, insurance, retirement, etc. How do you calculate the withholding rate for income tax? What do you do when someones deductions exceed their pay? When the pay is restored, what do you do about people that have left, retired, or died in the meantime?

        The voice of experience. I'm constantly amused by posters who think they "know" the answer and it's so simple, everyone else must be dumb. Yet they've never had to execute a project of that magnitude. This entire topic really has very little to do with COBOL and more to do with the issues you raised (as well as the numerous other ones that will be discovered as you walk through each of the questions you listed).

  • I don't get it (Score:5, Insightful)

    by snl2587 ( 1177409 ) on Thursday August 07, 2008 @01:52PM (#24512765)

    Why do people think it's so hard for a new person to learn COBOL? It's not exactly like learning Japanese: find a good reference book, write a few practice programs, and voila.

    I personally haven't needed to learn COBOL, but I see no reason why that strategy I just described, which has worked for me with every programming language I've ever learned, can't be applied here.

    • Re:I don't get it (Score:5, Insightful)

      by Smidge204 ( 605297 ) on Thursday August 07, 2008 @02:07PM (#24513027) Journal

      To expand on your analogy a little:

      You get your Japanese reference book, study hard, maybe even get your 1-kyuu certification (I think four years of study for that is typical for non-native speakers?)

      So you get a job translating. Your first project is to translate a recently discovered and unpublished early 1900's work written by someone like Touson Shimazaki or Mori Ougai. Good luck!

      =Smidge=

      • Re: (Score:3, Insightful)

        by snl2587 ( 1177409 )

        This is why I said learning a new programming language was NOT like learning Japanese. True, legacy systems use older versions of a language. But there are still a limited number of commands which are well-documented.

        I work with legacy systems a little (but not COBOL) and I say this from experience: deciphering someone's shitty programming style in an antiquated language sucks. But it's doable with little training in the language.

        • Re:I don't get it (Score:5, Insightful)

          by SQLGuru ( 980662 ) on Thursday August 07, 2008 @02:28PM (#24513421) Homepage Journal

          It's actually no different than trying to decipher some code writen in a language you are already an expert in. I'm fluent in both PL/SQL and T-SQL and sometimes I look at a procedure and just have to rewrite it from scratch because the original author wrote horrid code. Sometimes I look at it and can trace through it to figure out what it does, crappy or not. Sometimes it's beautiful and pristine and easy to understand. In the end, I have to make a change to it and I figure out how to change it without breaking anything. Then I move on to something else.

          If it were COBOL, I might have a slight hurdle learning the syntax, but already knowing how to code and knowing several languages (BASIC, FORTRAN, C, C++, C#, Java, PL/SQL, T-SQL, etc.) means that a loop is a loop whether it's a FOR i=1 to 15 type loop or a for(int i=1; i [lt] 15; i++) type loop. Syntax can be deciphered with a reference manual. Programming and understanding code is a skill.

          Layne

          • by Just Some Guy ( 3352 ) <kirk+slashdot@strauser.com> on Thursday August 07, 2008 @03:31PM (#24514669) Homepage Journal

            I might have a slight hurdle learning the syntax, but already knowing how to code and knowing several languages (BASIC, FORTRAN, C, C++, C#, Java, PL/SQL, T-SQL, etc.) means that a loop is a loop whether it's a FOR i=1 to 15 type loop or a for(int i=1; i [lt] 15; i++) type loop.

            Except that the second one only goes to 14.

        • One of his clients had an xbase program that needed to be updated, but the original programmer had this stupid idea of encrypting the program so it couldn't be decompiled. Meeting with the old programmer who moved to the coast was pretty expensive, but finally the old code could be finally read.

          It was a royal mess.

          My friend decided it would be simpler to analyse the software case by case (see why UML isn't that bad?) and recreate the interface including keyboard shortcuts and everything.

          The project took him

    • But then how else will HR fulfill their asinine and unreasonable quota of resume skills. If I didn't know better, I'd say you're trying to put them out of a job.
    • by Waffle Iron ( 339739 ) on Thursday August 07, 2008 @02:18PM (#24513233)

      Why do people think it's so hard for a new person to learn COBOL? It's not exactly like learning Japanese: find a good reference book, write a few practice programs, and voila.

      In my case, I've taught myself to use a couple of dozen programming languages over the years, and I've mastered several of them. However, I've never managed to make it all the way through the senseless boilerplate headers of any COBOL program before puking. Once the monitor is covered with puke, it's too hard to see the screen well enough to continue.

      • Re: (Score:3, Interesting)

        You mean like all the senseless boilerplate crap that you have to use to write C++ GUI programs on Windows??

        Crap is crap, either learn it to do your job, or go find another job because you aren't clever enough.

        And, just like with C++, once you create a template, it's just fill in the blanks. I had four COBOL skeleton programs back in the 80s that I used, and they covered 90% of all the programs we wrote. The great part was all the programs had the same structure, so a program I wrote was easily understood b

    • Re: (Score:2, Interesting)

      COBOL itself isn't all that hard. What you also have to know is the stuff that goes with COBOL on a mainframe environment like CICS (pronounced 'kix') and so forth. And then there's the difference between theoretical knowledge and real world experience. It's one thing to learn C by reading K&R, it's another thing to apply that knowledge to writing a real application or a piece of system software.

      Just because you can learn COBOL doesn't mean you can match skills with some of those 90,000 coders.

      (Spoke

    • Re:I don't get it (Score:5, Interesting)

      by mwvdlee ( 775178 ) on Thursday August 07, 2008 @02:36PM (#24513539) Homepage

      I'm a full-time COBOL programmer with a history in Java professionally and C/C++ and a number of other languages in my own company.

      COBOL isn't hard to learn. It certainly isn't much more difficult than any other modern language.

      The hard part is that COBOL really doesn't help you much. In most modern languages you can just grab a library containing a complete linked list or efficient sort algorithm. COBOL programmers actually need to know how stuff like this works. Now maybe you're an exception, but surprisingly many Java developers don't know the first thing about basic algorithms and memory structures like that. Add to that the need for high performance (the cost of running a COBOL program is often charged by the minute and measured in fractions of seconds), high stability (I've worked with code which could bankrupt a company if not fixed within a week or so) and the complexity of the typical Mainframe environments COBOL runs on, and you can see why it isn't trivial to start working with COBOL.

      The language is easy, using it is not.

    • Re:I don't get it (Score:5, Informative)

      by HomerJ ( 11142 ) on Thursday August 07, 2008 @02:37PM (#24513569)

      Like was mentioned in a previous reply, it's not JUST learning COBOL, there is also other stuff like CICS, that you have to know as well.

      But you take something else like C. I can get gcc, and start writing code. Same thing if I want to do some web 2.0 project. It's almost trivial to get a LAMP setup up and running.

      There's nothing that can simulate a working z/OS environment. There's no compilers to download. There's an emulator out there called Hercules for various IBM mainframes, but you can't get the OS to run on top of it. It's near impossible to go grab "COBOL for Dummies", and start firing up code. COBOL is also rarely taught in university anymore. So the only place you COULD get some exposure to the system, you aren't going to get it. Even if you COULD download the OS, setting it up is very nontrivial. And it's NOTHING like you've seen before.

      And these systems aren't just 100% COBOL either. There's a host of mainframe type things like Natural for an ADABAS Database that you're NEVER have experience doing unless you already have a job doing it. You got to the point to where you wrote that program in COBOL, now do you know the JCL to set it up to run? Ok it ran, know what a SOC-7 error is? BTW, it's an uninitialized numeric to save you from typing it into Google.

      All these things mean the vast majority of people out there now just don't have ANY experience in dealing with these things. It's hard enough to find people that can step into a team to support a major project. Add in those legacy requirements, and it's probably nil. Anyone qualified to do it, is probably 3 years from retirement from where they are at, and would probably have to offer 7 figures a year to make it worth their while to screw up their retirement options.

      • Re:I don't get it (Score:4, Interesting)

        by jd ( 1658 ) <imipak@ y a hoo.com> on Thursday August 07, 2008 @04:17PM (#24515655) Homepage Journal
        Cobol was never a good language, and computer scientists fought hard to move the industry away from it because the probability of writing defective code was extremely high. It is readable, but really only in the same sense Intercal is. There are many, many hundreds of programming languages out there with far more programmers in each than Cobol has ever had. Use what makes real sense, not what some medieval history teacher thinks ancient civilizations may have liked. Hell, ADA has more merit - and more support for modern capabilities. If people are really serious about Cobol, I'm going to write an Algol65 plugin for Firefox - see how people like Algolscript pages. Nyah!
    • Re: (Score:3, Interesting)

      by pauls2272 ( 580109 )

      It's not hard to learn COBOL. I think there is even a COBOL for DUMMIES book. If not, I'm sure there is a SAMS learn it in 24 hrs book.

      The problem is being book learned is nearly useless. You need to have a skill set to know what VSAM, flat files, etc are. What JCL and TSO is and how to use it, etc. This just to get to the point where you can actually look at the code and compile it.

      Now, if your looking at a good piece of structured COBOL code, changing it isn't too hard. The problem thrown in your wa

    • Re:I don't get it (Score:5, Insightful)

      by SatanicPuppy ( 611928 ) * <Satanicpuppy.gmail@com> on Thursday August 07, 2008 @02:50PM (#24513845) Journal

      You haven't ever needed to learn it, or, logically, ever support anything that was written in it, but you don't see why it's a big deal?

      It's a big deal. Legacy COBOL is almost ALL scary code. It's not like it was sexy and clean and professional...The way they wrote that stuff is alien to modern methods. They told the COBOL person what the code needed to do, and he disappeared for a while, and came back and told them it was done. Documentation? Slim. Comments? You must be joking.

      I've maintained COBOL code at three significant corporations, and there is so much "hero" code in there, it's hard to even convey to people. This 100,000 line application? It was written by one person, and no one who worked with him was capable of understanding it. No oversight, no review. When he kicked over dead it became a dark spot on the map labeled, "Here be dragons" and no one has touched it since.

      Modern methods just don't work like that. In the old days, when you licensed a COBOL app from some company, they sent you the goddamn source code with it, and you could change it...Then the guy who made the changes left, and what is left behind is not supportable by the original company (and the company isn't the original company, but a company that has been bought by a company that was later bought by a different company).

      So you need to bring people in, and you need to teach them this application which no one understands, and which isn't really documented, and which is written in a basically dead language, and is often written using the sort of spaghetti code methods we are all told over and over and over NOT TO EVER USE.

  • I hate COBOL. Was forced to take a class in college and they told us it'd be easy to get a job if we took the advanced course. Who the fuck wants to work on 60s tech? I took C instead and am much happier for it.

    • Same here, except for me I was in college 20 years ago. They told me that there were a lot more jobs available if I took the COBOL classes. I willfully decided to deny myself that 'opportunity'. All jobs are not the same. I have to love a job to take it and I don't love COBOL jobs.
    • Acronym (Score:4, Funny)

      by sm62704 ( 957197 ) on Thursday August 07, 2008 @02:15PM (#24513185) Journal

      Crappy Old Bad Obsolete Language

    • Re:Bah (Score:5, Funny)

      by geekoid ( 135745 ) <dadinportlandNO@SPAMyahoo.com> on Thursday August 07, 2008 @02:18PM (#24513235) Homepage Journal

      I know COBOL programmers making 150 an hour that have been on the same contract for 10 years.
      They work 40, and rarely are on call.

      So there is a certain appeal. Plus COBOL is interesting.
      I mean C? who wants to work on 1970's tech?

    • I took C instead and am much happier for it.

      So you decided to go with a nearly 40 year old language instead of the nearly 50 year old one?

      Don't get me wrong, C is a good language, and still relevant. I just wouldn't complain about COBOL's age, and then start talking about how you learned C instead.

    • Re: (Score:3, Funny)

      by ShieldW0lf ( 601553 )

      The US is about to experience total economic meltdown. After the Fannie May and Freddie Mac debacle, loans to the nation will be harder to come by, damn near half the population is about to retire, there are more people in Law, Finance and Advertising than there are in skilled trades, companies are fleeing overseas, etc, etc, etc.

      You're going to see little old ladies with wheelbarrows of cash unable to buy bread in short order, just like when the Cold War ended. Who really cares about fixing these financi

    • Counterpoint: Bah (Score:3, Insightful)

      by rah1420 ( 234198 )

      I love COBOL. I have programmed in many languages throughout the years but I can do my best work in COBOL. I recently started working on it again after a 10 year hiatus and was amazed at the advances in the language.

      The thing that you don't understand is that unless your college did not keep up with the compilers that were deployed, that COBOL is not "60's tech" any more. Yeah, it has its idiosyncracies but so do any other 3rd generation languages.

  • No Thanks (Score:5, Interesting)

    by Black-Man ( 198831 ) on Thursday August 07, 2008 @01:53PM (#24512781)

    I learned COBOL in college 20 years ago. I hated it and immediately knew COBOL, TSO, JCL, CICS was not for me. The user was shielded from the complexities of the system, whereas Unix and 'C'... everything was there to learn and discover. No 2-inch IBM manuals to sift through.

    Now I work at a place w/ the dinosaur and DB2/COBOL on the backend and I am forced to fix the crap COBOL code written by folks who are long retired. And it sucks... big time. And why these 50-something COBOL programmers think they are hot stuff is beyond me. COBOL is EASY compared to C/C++ or even Java/C#.

    The sooner the dinosaur is extinct... the better.

  • I've wonder why I've seen so few reports of massve database leaks from Federal and State financial systems compared to industry. My guess is there are few hckers conversant in COBOL, OS-360 and nine-track tapes. One of the rare bright spots in this mess.
    • by topham ( 32406 )

      Have you ever tried to get data into, and out-of most mainframe configurations? At best companies will use an FTP like file queue system. You drop files into a folder and the system transfers them to the mainframe, and the reverse.

      Hardly a system ripe for l33t script kiddies to hack

  • I took a COBOL course at university in the very late 70s, passed, never touched it again. Then bought a book a few years ago from the bargain book, read through it, and the language is just absurd. Ok, it would have been hard to design something better in the 50s when it was created, but it is just horrible. If we really want a cheap, simple language to do bog standard things without all that newfangled stuff, then the dBase language would be ten times better. And dBase on todays hardware would just _fly_.
  • by Anonymous Coward on Thursday August 07, 2008 @01:56PM (#24512825)

    What COBOL really needs is a hip new framework to make it "cool", just like Ruby!

    I propose COBOL on Rails. Any takers?

    Mod troll if you wish. :-)

  • by bill_mcgonigle ( 4333 ) * on Thursday August 07, 2008 @01:57PM (#24512837) Homepage Journal

    FTA:

    find me a college that teaches it

    What kind of college class would teach COBOL except as a historical curiosity in passing? Their job is to teach kids how to design good software and understand theory. You know, with local variables, objects, exceptions, assertions, and stuff?

    COBOL used to target 'business systems'. I'm sure there are several superlative programmers doing COBOL work, still, but business systems programmers tend to be the largest area under the curve, and that's not a problem. The Ruby and Python guys can sit several sigmas out arguing about which provides the better lambda calculus, but meanwhile Java is providing most of the features 'average' programmers need.

    If there's a lesson to be learned from the article it's that business systems software isn't ever 'done'. You need to be continually modernizing, with good methodologies, or you're gonna get stuck like Cal-e-forni-a one day. That's either a problem or an opportunity, depending on your perspective, but this isn't an industry standing still.

    • by Rinikusu ( 28164 ) on Thursday August 07, 2008 @02:21PM (#24513295)

      My old 2 year school still teaches COBOL, RPG, and AIX classes (Southwest Tennessee Community College) and even offers a 2 year A.S. degree in those technologies. The University of Memphis used to teach COBOL in the MIS track, but I have a feeling they've jumped on the .NET bandwagon. I can't speak for the rest of the country, but Memphis, TN has a lot of legacy mainframes and one of my former employer still churns out around 10k lines of new COBOL code a year, at minimum.

      What a lot of folks also don't realize is, you don't just rip out a multi-million dollar mainframe system and just replace it with something new. It's also not as simple as "just coding it in Java" and deploying on that hardware. Hell, even writing it in C has issues on many of these machines. The mainframe I was exposed to didn't support the full ASCII character set and you had to use trigraphs. You can't just "apt-get compiler-for-language-of-choice" on these machines, nor download a .msi and get an instant installer.

      These are mainframes. They don't even have a filesystem that you would recognize, much less a bash prompt. JCL anyone?

      The point is, it's not a simple matter of just porting the software into a modern language. You'll also have to build out the entire hardware system, write the software, test extensively, and then run both concurrently to ensure consistency, and all of that costs money. Lots and lots of money. If what you have works for what you need it for, there's no impetus to change until something like this comes along. However, I'd be willing to bet it's easier and cheaper to change *policy* (the laws) than to scrap the old system completely and rebuild it from scratch.

    • by MBCook ( 132727 ) <foobarsoft@foobarsoft.com> on Thursday August 07, 2008 @02:48PM (#24513801) Homepage

      DeVry does, or at least did, a few years ago. I should know, I took the class. It was an upper level course, and part of a set of required electives. You had to take COBOL or (something) or (something). I don't even remember if the other two were languages or theory or what. But it was there. All campuses don't have to teach it, it is market driven. Having a very large and old telephone company not to far away means there is some demand for people who have had some exposure to the language.

      As some others here have commented, COBOL is amazing. I learned programing through BASIC, HyperScript, C, Java, and other languages. COBOL is so primitive in so many ways. It feels a bit like trying to use your knowledge of Romance languages to decipher how to say something in Japanese.

      Now this makes sense, as COBOL was designed so long ago for machines that only had punch-cards and such. But for most any student who learns programing these days to be given COBOL is going to be a huge logical shift.

      And that doesn't include the syntax. Ignoring the special columns and such, no modern languages are very close to COBOL's syntax.

  • Honestly if WEB2.0 makes websites more expensive, where does it require that a website MUST HAVE web2.0 crap on it?

    Honestly I find that most customers despise all the junk that comes with web2.0 and do not want it, let alone pay for it.

    Same for everything else, making it more "complex" is by desire not by necessity. California's problem is because of a lack of programmer on staff and the fact the request is a wierd one as far as a payroll system is concerned. you do NOT normally cut people's wages for a t

    • I agree completely.

      This is just a STUPID plan that nobody could have forseen.

      If you do design software, unfortunately this comes up all the time, and it hurts, even when you are expecting it. This just happened to me recently:

      "Okay, new federal regulations state that we need to track the number of miles travelled for all trips."
      "Okay, but we only store mileage on auto travel, because that is how they get reimbursed."
      "We need it for air travel, and train travel if there was any."
      "Umm...okay, I guess I could

  • by loose electron ( 699583 ) on Thursday August 07, 2008 @01:58PM (#24512857) Homepage

    Does this make sense? As a HW person, I dont have a clue, but I would be curious to know what the conventional wisdom is here. Should this stuff be used in an obsolete language, using code constructs that were dictated by HW limitations (Y2K and 2 digit nonsnense) OR Should this be done in something that is HW independent (Java - if I can show my ignorance here) or something like C++?

    Teach me here folks!

  • Highly likely (Score:3, Insightful)

    by jrothwell97 ( 968062 ) <jonathan@notros[ ]l.com ['wel' in gap]> on Thursday August 07, 2008 @01:58PM (#24512867) Homepage Journal

    COBOL could easily make a comeback, because it's so damn easy to learn. I could train a cuttlefish to write a complex accounts program in COBOL. Heck, I bet even Mike Huckabee could probably manage to work out "Hello World".

    Perhaps the reason it may come back is because of the complexity of modern languages. Most OOP variants are horrifically difficult to understand, and a return to the statement-based languages of yesteryear might actually be a good thing: let the coder get on with writing his code, and let the interface builder do all the fancy OO stuff.

    • Re:Highly unlikely (Score:4, Interesting)

      by PRMan ( 959735 ) on Thursday August 07, 2008 @03:31PM (#24514667)

      a return to the statement-based languages of yesteryear might actually be a good thing: let the coder get on with writing his code, and let the interface builder do all the fancy OO stuff.

      Not hardly. I just rewrote a VB 3-6 application into C#.NET because nobody can compile it anymore (requires a 16-bit tab component and nobody has VB4 16-bit install disks, let alone floppy drives even if we did).

      The original application was 13,000 lines of BASIC, written (mostly full or half time) over the span of 11 years. The new C# application is 900 lines and has MORE functionality (not to mention nice commenting as opposed to NONE) and I wrote it in 2 months.*

      Return to the bad old days of underpowered languages that require thousands of lines to read a database and display it on the screen? No thanks.

      *BTW, this brings up a good point. Just because some company has 9 million lines of COBOL doesn't mean that the programs couldn't be replaced with 500,000 lines of an OO language.

  • There are 50 states and they must have pretty much similar payroll requirements.

    Why is CA not able to make small changes to its payroll procedures so that they match the closest practices of one of the other 49 states and then just buy the system from another state.
    • You just noticed that California is not like the rest of the country!

      HAHAHahhahahHAHAHaha!

      LOL! That's a good one!

  • by zentechno ( 800941 ) on Thursday August 07, 2008 @02:00PM (#24512903)
    I learned COBOL way back when (1984 to be precise, then used it for a few years and it eventually rotted out of my brain). I was thinking of coming out of COBOL Retirement back when I heard what huge demand Y2K was putting on the lack of COBOL knowledge. What happened to the Y2K COBOL team -- did they help the state of CA then? I'm guessing if CA didn't find a replacement in 10 years (which is not-so-suspiciously just before everyone starting fretting over Y2K), I don't really see it happening now, or I'd dig out my old COBOL disks, dirty up my resume (re)writing a few more COBOL programs, send out a resume, and move to sunny CA and $clean $up -- but anyone whose been a contractor has already thought like this.
  • All this talk of "skills" is bogus. Anybody who's a halfway decent programmer can be up and running with any language in under a week.

    Seriously. Computer programming is computer programming. There are a few different philosophies for how to write code, but beyond that all the rest is syntax.

    • Re: (Score:3, Insightful)

      by s31523 ( 926314 )
      It's not just the COBOL aspect. It is the legacy PDP-11 that is running it, or the VAX-VMS, or whatever... The language is easy, but figuring out how to login, setup the build environment, decode the weird legacy build script, and then transfer the program load to the target computer can be a tall order for a noob.
      And what hot young smart kid wants to learn all this for next to nothing pay and the prospect of never using the skills again?
      It can be done, however, and whoever has these systems should make
  • do you think he might be exaggerating some so that the pay cuts would not be implemented?

    And think about it, they must have a way to reduce pay so that can't be the problem. What is probably the issue is that there is probably nothing in place to keep track of the back pay these people would get after a budget was finally passed.

    It surprises me I've not seen this tie in the press between the guy saying the software is too old and the same guy saying he would not reduce the pay. Ya think maybe he's looking f

    • by jesdynf ( 42915 ) on Thursday August 07, 2008 @02:08PM (#24513049) Homepage

      I've seen it, sure, but... I dunno. I've got no reason to think the guy's lying.

      You want everybody's pay cut down to six whatever? I can do that for you in /ten minutes/. Guaranteed. You say you want it to happen, I make it happen.

      You want everybody's pay cut down to six whatever, recalculating all employees as if they were paid on an hourly basis, reclassifying employees as appropriate, comply in full with all labor codes while I do so, maintain an escrow account with the difference between their real pay and their current pay, pay that out at some undetermined point in the future -- and have all of it work, perfectly, the first time and every time, taking full responsibility for every employee of the STATE OF CALIFORNIA?

      Man says six months, I'm not telling you he's wrong.

    • The IRS was cranking out its first stimulus checks within two months of being ordered to. They claimed they could do it a little faster, but were waiting for the April 15 filings to improve their address database. (The tax-address database is 95% accurate at the end of April, but decays to 85% accuracy by the beginning of April because Americals move often.) There were some snafus as expected. Also there was some complexity as the categories and amounts of checks - about the same complexity as Arnold's d
  • Object-Oriented COBOL, Visual COBOL, JAVA-BOL, COBOL++ . . . Functional software subordinated to the elaborations of the programming class!

    California! Prepare to warmly welcome your programming overlords!

    • Re: (Score:3, Informative)

      by Shados ( 741919 )

      I can't tell if you're jesting, or if you simple don't know that most of the cobol variants you named actually do exist....

  • by base3 ( 539820 ) on Thursday August 07, 2008 @02:05PM (#24512987)
    Good news: There's a job for someone with legacy COBOL skills because the State of California needs someone to update their payroll software to pay their workers minimum wage.

    Bad news: The gig pays minimum age.
  • What I thought was the most amusing was an article I was reading yesterday on this, where bigwig in question stated they had spent $_hugeAmount of dollars to determine that it just couldn't be done. That it was "impossible" to make the system behave in the ways that they wanted it to behave. The whole thing is much more political than technological, anyway. A big pissing match in government.

    Anyway, COBOL wasn't so bad when I had to learn it. FORTRASH was more fun, though.

  • by myawn ( 562028 ) <.mike. .at. .theYawns.com.> on Thursday August 07, 2008 @02:09PM (#24513063) Homepage
    One thing about the mainframe coding mentality was that compilation time was expensive, processing time was expensive, and sophisticated debuggers didn't exist (and it's expensive to print 500+ page core dumps on fanfold paper). So programmers tended to do much more up-front design so that the first effort tended to be much higher quality.

    Or, as I saw on someone's whiteboard once, "It's easier to teach a COBOL programmer C than to teach a C programmer discipline".
  • KISS (Score:4, Interesting)

    by Archangel Michael ( 180766 ) on Thursday August 07, 2008 @02:09PM (#24513069) Journal

    Keep IT Simple Stupid.

    No, not it, IT.

    Keep Info Technology Simple. We tend to want to add in all the bells and whistles we "want" but don't "need" because we can.

    When I build a system from scratch, it is fast, clean efficient. It has everything one of the user "needs" to do their job. It is fast, efficient and clean. And it doesn't have problems if they keep it that way.

    But they start adding in all the add-ons, upgrades, multiple versions of the same basic tools. Google, Yahoo, Myspace, Coupon cutter, Weatherbug, Ding (SW Airlines) etc ....

    Then they start to complain about how "slow" and "Buggy" the computer is. All those bells and whistles do nothing but distract the user from doing what he OUGHT to be doing.

    I see this within applications as well too. Feature creep is a real problem, as is trying to over simplify the front end, at the expense of the back end.

    Take a look at the comparison of Vista and XP, there is NOTHING in Vista that is really "needed", but it is a bloated mess when compared to XP. why?

    They don't want to KISS, they want "fancy", and fancy breaks, and is more expensive to fix when it does.

    • Re:KISS (Score:4, Insightful)

      by serviscope_minor ( 664417 ) on Thursday August 07, 2008 @08:00PM (#24518933) Journal

      First you say:

      Keep IT Simple Stupid.

      Then you say:

      When I build a system from scratch, it is fast, clean efficient.

      Which makes me suspicious. Simple and efficient rarely go hand in hand. My first implementation is usually slow and stupid and simple, because stupid (=slow) is generally simplest.

      On another point entirely, you say:

      It has everything one of the user "needs" to do their job.

      and:

      Feature creep is a real problem,

      The trouble is that COBOL is generally used for financial apps. They never do everything the user needs, because the apps are meant to last forever. Everything the user needs lasts about a year until the legislation changes, or organisational structure changes or various other things. These programs have to feature creep because features keep creeping in from the outside. You can't write a complete, finished financial program.

      Generally as programs are incrementally modified, they get nastier as the original program was designed with a certain structure and dataflow in mind. Sooner or later, a new feature comes along which requires a modified dataflow, and that can be nasty to add. So, maybe a little global variable gets added to allow this data to be passed around. To do it "properly" would require a considerable redesign which may not be fesiable. Remember, these programs have to reflect the world right now, so features must be added in a timely manner.

      Repeat that process for 40 years where multiple language standards have been ratified, programming styles have come and gone, the original developers are long dead and the employment structure and tax law is completely different and you have a real mess.

      But that's not just complexity for the sake of it, and no amount of KISS will solve that problem.

  • I don't care how complicated the rules are for paying California employees or how many people there are. Raises, seniority, pensions, CalPERS, bonues, whatever. That they take 9 years and nearly $200 million and still not be able to build a new payroll system to replace the old one is astounding. Everyone involved should be shot and the contractors taken to court.

  • COBOL just works (Score:5, Informative)

    by One Intention ( 671320 ) on Thursday August 07, 2008 @02:10PM (#24513083)
    Where I live, COBOL is used everywhere. I'm 33 years old and I use it on a daily basis and have been since I graduated from college 10 years ago.

    Companies like Wal Mart, ACXIOM, and large transportation companies such as JB Hunt, ABF, USA Truck, Wingfoot Commercial Tire, and Data-Tronics use it day-in and day-out.

    However, unlike the COBOL I always read about here on Slashdot, the code we work with is standardized, modularized, and backed with a relational database (IBM DB2).

    I also happen to work in more modern languages (compared to COBOL) such as PHP, ASP, and .NET, and compared to them, working on COBOL is like taking a day off. It's top-down design makes it easy to read and follow, and as long as you aren't dealing with "go to" code, it's no harder than anything else out there.

    Don't disregard a language simply because it's old, or because you don't have a fancy IDE to rely upon. Compared to some of the messy AJAX implementations I've seen, I'd take COBOL any day.
  • by account_deleted ( 4530225 ) on Thursday August 07, 2008 @02:12PM (#24513115)
    Comment removed based on user account deletion
  • Partially offtopic:

    Multicore processing, SOA, and Web 2.0 all contribute to rising software development costs

    My experience is that new technologies are letting me produce more complex stuff in a fraction of the time I used to create simpler programs. Maybe I'm just getting better at coding, but my take is that development costs are going down.

    Maybe they just want so many new features that technology advances can't keep up with all those requirements.

  • Like what? COBOL on Rails? Because awesome.
  • Programmer-Archaeologist.
  • I hate Cobol. But I will say that it could be a decent language with some revamping. Things that make it a nightmare:

    All variables are global
    No parameter passing to functions
    The PERFORM keyword is way overloaded
    Can't put comments on the same line as code

    A for loop looks like this:
    PERFORM VARYING X FROM 1 BY 1 UNTIL X = 10
        CODE HERE
    END-PERFORM

  • by hellfire ( 86129 ) <deviladv.gmail@com> on Thursday August 07, 2008 @02:19PM (#24513273) Homepage

    I'm having problems following the money on this article. Does an article that says COBOL may not be so bad really attract a lot of eyeballs for ads?

    I say this because the article is bullshit on a tortilla. They talk about how much bugs cost and how many people found, but how does that truly compare to 10, 20 even 30 years ago? They had a source, why didn't they put that in?

    No software is perfect. I'm even willing to agree that complexity has increased while quality has decreased, but by how much? The problem is you can't make these assertions without proper comparative facts, including adjustments for inflation.

    Finally, COBOL is COBOL. Programs designed in COBOL are, on average, less complex than today's programs. They require more resources to develop, which means more manpower or more time. Also can COBOL be integrated with a front end website? Generate PDFs on demand? Perform EDI? Have sophisticated tools to make integration with newer languages and systems easier? Can you build it as an app on top of a relational or OO database?

    COBOL was sufficient for it's time to do what it needed to do. It may be sufficient for many processes now. But COBOL isn't going to magically come back and everyone's going to start creating sophisticated ERPs from scratch with it. It's just another tool.

  • All this will happen again.

  • by kenh ( 9056 ) on Thursday August 07, 2008 @02:28PM (#24513417) Homepage Journal

    As a recovering COBOL Programmer (MVS/XA, IMS/DB, CICS, DB/2, VSAM, JCL ;^) I find it hard to believe that coding COBOL programs is "cheaper" in any real, absolute sense. If you are comparing "KLOC", then yes, COBOL is cheaper, because each line is "easier", but it likely does less work than a "higher-level"language line of code would do...

    Comparing LOC per function point, not sure - it seems that we have lower expectaions/goals for COBOL code, so function points don't really compare.

    Is it because programmers are cheaper for COBOL, ignoring function points and KLOC? Perhaps, but that ignores the likely greater number of cheaper COBOL programmers.

    COBOL, Mainframes, and timesharing technologies have been on the way out for my entire career (I've been in IT since the late 80's), and the driver seems to be fashion, and it's saving grace is always that these proven technologies have stood the test of time and still work just fine, thank you very much.

    Also, I refuse to believe that it would take half a year to cut state worker salaries to minimum wages - they can accomodate annual salary increases can't they?

  • by nawcom ( 941663 ) on Thursday August 07, 2008 @02:37PM (#24513583) Homepage

    http://99-bottles-of-beer.net/language-cobol-1820.html [99-bottles-of-beer.net]

    *nawcom reads the first part of the code and pukes all over the screen*

  • by jbolden ( 176878 ) on Thursday August 07, 2008 @11:32PM (#24520587) Homepage

    The real issue of Cobol is not Cobol in and of itself but that so many other ideas are used which are not currently in fashion.

    Operating provided data structures
    Tables with multiple types of data
    ISAM/VSAM rather than databases
    job control cards with values need for the programs to run
    etc....

    That will make the environment highly unfamiliar to younger programmers. The IT management has been very irresponsible in creating a situation where code crucial to most companies is undocumented and uses concepts which are difficult for new programmers to understand. Heck most companies did excellent work for the Y2K crisis in documenting their systems which they have lost and not maintained over the last decade.

  • by jandersen ( 462034 ) on Friday August 08, 2008 @02:15AM (#24521453)

    We have been predicting the demise of both COBOL, FOTRAN and mainframes for how long, now? Decades? I have suspected for a long time that we are not going to lose them any time soon - COBOL is certainly no beauty, but it is proven and seems rock solid. And it is not even all that bad a language to work with, although I must admit it looks rather painful, doing anything but simple programs with it. Still, I worked with COBOL for years - and enjoyed it too.

    The same goes for FORTRAN: an ugly language with some horrifying features; but one that has a huge, old code base in the science community - because it was first, but also because it has the exactly the features you need for numeric programming. A bit like a meat cleaver - not a thing of beauty that your girlfriend would have on her make-up table (depending on your relationship, of course), but functional and to the point.

BLISS is ignorance.

Working...