Slashdot Mirror


COBOL Comes To Visual Studio 2015

New submitter dmleonard618 writes: Micro Focus isn't writing off COBOL just yet. The company is trying to win developers over with COBOL with the latest release of Visual COBOL for Visual Studio. The new solution aims to bring back the ancient language and make it relevant again. "Visual COBOL for Visual Studio 2015 is the next generation of COBOL development solutions, designed for today's application developer to do just that, in a productive and cost-effective way," said Micro Focus' Ed Airey.

86 comments

  1. Behind the times by phantomfive · · Score: 1

    Naming things "Visual X" is so last century. Follow my advice, wait until they come out with cobol dot NET 3.1 for workstations and the cloud. All the cool kids are on the cloud these days, don't jump on the bandwagon too early.

    --
    "First they came for the slanderers and i said nothing."
    1. Re:Behind the times by Bing+Tsher+E · · Score: 1

      I was sort of enthusiastic, back in the day, for the 'Visual' interface in Visual Basic, in the 3.0 era. Which kind of went away. Visual C? Where do I click? heh.

      What visual design elements does Visual COBOL bring? You get drag and drop Punch Keypunch Machines, Verifiers*, and a High Speed Card Reader? It would modernize and simplify COBOL coding. No risk of dropped decks! Output formatting would be in the code hidden under the Chain Printer icon.

      I suspect all the code in the Visual COBOL program resides beneath the Card Sorter icon. You double click on it and there's your code!

      (*the 'Verifier' was an odd beast. A big piece of equipment hulking on the floor in the same room that looked almost identical to the Keypunch machine, that didn't actually punch cards. You would feed the previously-punched cards into it and pay a keypunch operator to type in the same lines of data again and all the verifier did was verify the cards had the same data as what was being typed in a second time)

    2. Re:Behind the times by phantomfive · · Score: 1

      (*the 'Verifier' was an odd beast. A big piece of equipment hulking on the floor in the same room that looked almost identical to the Keypunch machine [columbia.edu], that didn't actually punch cards. You would feed the previously-punched cards into it and pay a keypunch operator to type in the same lines of data again and all the verifier did was verify the cards had the same data as what was being typed in a second time)

      Wow

      --
      "First they came for the slanderers and i said nothing."
    3. Re:Behind the times by garyisabusyguy · · Score: 5, Funny

      An old COBOL programmer that I worked with early in my career described how he got tired of the keypunch operators making mistakes entering his code, so he would do the keypunch himself.

      Eventually he said that he just started programming off of the top of his head at the keypunch terminal

      He ended up writing most of the programs used at the local department of transportation with little or no documentation

      The director allowed it and was stuck with it when he was forced to retire by the local government HR rules

      He was back at work a week later as a consultant making three times what he had been at the top of his pay grade

      --
      Wherever You Go, There You Are
    4. Re:Behind the times by Billly+Gates · · Score: 1

      But is it webscale?

    5. Re:Behind the times by phantomfive · · Score: 1

      With the right paradigm it can hyperconverged to an SOA that has wearable computing gamification omnichannel crowdsoursing deep web in the globosphere. It can take a selfie with you.

      --
      "First they came for the slanderers and i said nothing."
    6. Re: Behind the times by Anonymous Coward · · Score: 0

      Visual punchcard

    7. Re: Behind the times by Guy+Harris · · Score: 2

      Visual punchcard

      Seek and ye shall find.

    8. Re:Behind the times by Guy+Harris · · Score: 1

      With the right paradigm it can hyperconverged to an SOA that has wearable computing gamification omnichannel crowdsoursing deep web in the globosphere. It can take a selfie with you.

      OK, "wearable" handles "mobile" (even better than mobile!), and maybe "hyperconverged" and "SOA" covers "cloud"; does "crowdsourcing" cover "social", or did you miss a buzzword?

    9. Re:Behind the times by phantomfive · · Score: 1

      Guy Harris has deep learning enabled.

      --
      "First they came for the slanderers and i said nothing."
  2. Re:Why not implement by phantomfive · · Score: 5, Insightful

    while there are some ancient systems still out there requesting the odd COBOL programmer

    Trillions of dollars worth of code is written in COBOL. Every time you make a monetary transaction, it involves a system running COBOL.

    do they actually expect COBOL to make a come-back?

    Over a billion new lines of code is written in COBOL every year. It's here to stay.

    --
    "First they came for the slanderers and i said nothing."
  3. MS COBOL? by fustakrakich · · Score: 1

    I have a bad feeling about this.

    Image and virtualize it

    --
    “He’s not deformed, he’s just drunk!”
    1. Re:MS COBOL? by Tony+Isaac · · Score: 1

      No, it's not Microsoft Cobol, it's MicroFocus Cobol...from an entirely different company. MicroFocus has been making Cobol compilers for decades.

  4. Cue the 12 yo IT "guru's" by mwvdlee · · Score: 1

    To everybody who is going to be bitching about how dead COBOL is:
    http://skeptics.stackexchange....

    I'm glad I'm no longer involved with any COBOL code, but my 10+ years of COBOL programming has left me with the impression that it's not going away any time soon.

    --
    Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
  5. MicroFocus has been trying for decades by Anonymous Coward · · Score: 0

    MicroFocus has been trying to decades to get people to use COBOL off of the mainframe, but haven't had much luck. They must have enough big clients to stay around. In the 90s, they tried to get people to do development on PCs, and it went nowhere. COBOL these days is tightly tied to IBM's stack of stuff like CICS, DB2, etc - by the time you replicate all this on a PC, you're not buy yourself much. And most old-school programmers would rather use the ISPF editor anyway. (Let me guess, there's an ISPF mode for VS2015?) Anyway, we see MicroFocus in the news every year or two with a story like this. They'll keep doing it until they finally fade away for good.

    1. Re:MicroFocus has been trying for decades by phantomfive · · Score: 1

      And most old-school programmers would rather use the ISPF editor anyway. (Let me guess, there's an ISPF mode for VS2015?)

      That's the thing with Visual Studio: it's great for C#, not so great for some other languages.

      --
      "First they came for the slanderers and i said nothing."
    2. Re:MicroFocus has been trying for decades by jellomizer · · Score: 5, Informative

      Micro Focus is playing a last man standing strategy. Their company focus is based on keeping companies on the legacy systems for as long as possible. The problem is, most companies have some sort of migration strategy in process, or at least on the pipeline, the cost of operating these legacy environments and handling business changes are started to exceed the cost of maintaining it. As security concerns, changes in business processes, customer expectations of promptness, and connectivity with newer tools become prevalent. Staying on the mainframe, and using old tools or upgraded version of such tools, with a bit of polish to make it appear more modern, is just becoming more of an effort to keep going, the it will be to start over again.

      So they are in business because most of their competition changed strategies or went out of business. However dealing with them, I can tell they are feeling the pain, as they are now bossing around their customers, giving them more expensive contracts thinking that they are stuck. (I recently gave them a snub at my current employer, by replacing their tool that they though was vital to the institution, with about 500 lines of python code and 24 work hours, because they were asking too much for license fees). I really don't trust them as a company, they are rather low life.

      Now they are the last man standing, in a world where they are needed less and less.

      --
      If something is so important that you feel the need to post it on the internet... It probably isn't that important.
    3. Re:MicroFocus has been trying for decades by LesFerg · · Score: 1

      MicroFocus has been trying to decades to get people to use COBOL off of the mainframe, but haven't had much luck

      Could it be their pricing model? I was tempted to try it some time ago, as a nostalgia kick, but found it was quite an expensive platform, which nobody is going to pick up to try out if it means they would have to take on a major mission of convincing their employer that there was a future with it, when it wasn't even possible to find out how good it was in the first place.

      --
      If I had a DeLorean... I would probably only drive it from time to time.
    4. Re:MicroFocus has been trying for decades by LesFerg · · Score: 1

      Yes but personally I stopped using the 'visual' aspect of it years ago. Sure it makes for some nifty presentation videos, look you just drag one of these onto here and drag a whatsit onto that thingy and your program writes itself.... riiiight.

      It's a great code editor, the 'visual' power for me is in good syntax highlighting. That is useful for most any programming or markup language.

      --
      If I had a DeLorean... I would probably only drive it from time to time.
    5. Re:MicroFocus has been trying for decades by phantomfive · · Score: 1

      True point......when I first started programming in ASP.net, I used the visual editor quite a bit. Soon I realized doing adjustments by hand was easier, and not many months passed before I stopped using the visual editor all together.

      That's not always the case, though.....with OpenStep the GUI creator is nice, and worth using.

      --
      "First they came for the slanderers and i said nothing."
    6. Re:MicroFocus has been trying for decades by Dutch+Gun · · Score: 1

      That's the thing with Visual Studio: it's great for C#, not so great for some other languages.

      I'm curious why you'd say that. Out of the box VS 2013 has support for at least seven or eight languages, I believe. And for any other language, all you need to do is write a plugin. For instance, I also use WIX (essentially an XML-based installer language) for writing Windows installers.

      I've been using it for C++ programming before C# existed. Yes, there were a few sad years when C# was all the hotness and native languages were all but ignored, but C++ is once again a first-class citizen. I'm a videogame programmer, and we make our own interfaces (except for tools), so I never really partook of the "visual" aspect.

      I haven't tried 2015 yet. Oddly enough, I kept trying to figure out how to buy a copy of Visual Studio 2015 Professional. As it turns out, as a solo developer, I'm apparently expected to use the "community" edition for free. I guess individual developers that pay for VS are a small enough data point that they don't mind me using it for free.

      --
      Irony: Agile development has too much intertia to be abandoned now.
    7. Re:MicroFocus has been trying for decades by phantomfive · · Score: 1

      I'm curious why you'd say that. Out of the box VS 2013 has support for at least seven or eight languages, I believe. And for any other language, all you need to do is write a plugin.

      It's not that it's impossible, it's just not as good. C# is a first class citizen in Visual Studio, Java is a third class citizen. C++ support is fine in VS, but C is a second class citizen. Maybe 2015 is better, idk.

      Same goes for Eclipse, btw....it's really nice with Java, but the C support is meh. It works, but it's not great.

      --
      "First they came for the slanderers and i said nothing."
    8. Re:MicroFocus has been trying for decades by Dutch+Gun · · Score: 1

      Hmm, I'll have to take your word for it, as I've only really used C++ and C# myself. For C support, is the complaint about the lack of standards compliance (which I heard improved in 2013) or the editor and tools support?

      --
      Irony: Agile development has too much intertia to be abandoned now.
    9. Re:MicroFocus has been trying for decades by phantomfive · · Score: 1

      For C support, is the complaint about the lack of standards compliance

      Oh yeah, I forgot about the lack of standards compliance lol. That drove me crazy, and it is somewhat better now (but not perfect by any means. Come on, it's been 16 years since the C99 standard came out, no excuses). Mainly I was complaining that Microsoft expects you to use C++ not C. Their editor and tools are centered around that expectation.

      --
      "First they came for the slanderers and i said nothing."
    10. Re: MicroFocus has been trying for decades by Anonymous Coward · · Score: 0

      Out of the box in a stock configuration, VS2015 doesn't even support C or C++. They've moved it to an optional, disabled by default configuration option.

    11. Re:MicroFocus has been trying for decades by Z80a · · Score: 1

      How well GnuCOBOL compares to it?

  6. Re:Why not implement by Anonymous Coward · · Score: 5, Funny

    Over a billion new lines of code is written in COBOL every year. It's here to stay.

    Of course, that billion lines is enough to add two checks together.

  7. Really? by AndyKron · · Score: 1

    Oh come on. Really?

  8. Had ex-employee leave me for six figure COBOL job by Anonymous Coward · · Score: 1

    I had an employee who worked part time 20 hour here and 20 hours for another company leave within the past 2 years to train for a COBOL job. He's making six figures now. I think the idea that COBOL is dead is laughable. We're losing COBOL programmers left and right because they're all retiring or dying off, but COBOL is still here and is commanding a premium salary. While 10 years ago it seemed everybody was trying to jump ship the reality is it was largely an utter failure. Companies who tried largely failed. They'd spend millions of dollars on a new system that ultimately didn't work and I think this was repeated all over the place. These systems have taken 50 years to get here and companies think they can spend 3-5 years replacing them? It's just not happening.

  9. Re:Had ex-employee leave me for six figure COBOL j by Anonymous Coward · · Score: 0

    My ex-employee now makes more than I do coding for COBOL as far as a salary goes even if my total net worth might be higher due to owning a very successful company. Usually people in my position try and take a low salary for tax reasons. I'm actually probably not taking that low of a salary relatively speaking, but... in most cases CEO's of smallish companies at least will.

  10. 13 Years Behind by Anonymous Coward · · Score: 1

    Seriously, Slashdot? How is this news? There have been *multiple* COBOL implementations for Visual Studio since at least 2002. Fujitsu and MicroFocus both have implementations that are not only native but also can compile down to .NET bytecode and integrate completely with the CLR. They even have designer support for visually creating UIs and web pages.

    Could you be any less relevant, Slashdot? Olds for Nerds, shit that mattered over a decade ago?

    1. Re:13 Years Behind by Anonymous Coward · · Score: 0

      Seriously, Slashdot? How is this news? There have been *multiple* COBOL implementations for Visual Studio since at least 2002. Fujitsu and MicroFocus both have implementations that are not only native but also can compile down to .NET bytecode and integrate completely with the CLR. They even have designer support for visually creating UIs and web pages.

      Could you be any less relevant, Slashdot? Olds for Nerds, shit that mattered over a decade ago?

      I don't know but maybe the fact here is they lauched the pack for the new VS (2015). Maybe, but I'll let you try reading the title again.

      (captcha: unravels)

    2. Re:13 Years Behind by Anonymous Coward · · Score: 0

      Can you find a similar announcement for either MicroFocus or Fujitsu COBOL for Visual Studio 2002, 2003, 2005, 2008, 2010 or 2013? No? Then no, it's not because it happens to have also been released for 2015. It's because Slashdot is under a fucking rock.

  11. LOL by idbeholda · · Score: 1

    I'd rather write java code with hot needles sticking out of my eyes.

    1. Re:LOL by Anonymous Coward · · Score: 0

      I'd rather write java code with hot needles sticking out of my eyes.

      PERFORM FRONTAL-LOBOTOMY 3 TIMES.

  12. Re:Why not implement by idbeholda · · Score: 1

    Not if you're over one space too many.

  13. Wouldn't want to start a new proj, but... by Anonymous Coward · · Score: 0

    I wouldn't want to start any new projects in COBOL, but if I had millions of lines of legacy stuff on my hands, I'd be pretty excited about the prospect of putting it under the magnifying lens of a modern IDE and interactive debugger.

  14. Re:Why not implement by Anonymous Coward · · Score: 1

    And a quintillion lines of code is written in each and every other language than COBOL every day.
    Puleeze. What a load of ineptitude. "Over a billion new lines of code is written in COBOL every year."

    ADD ONE TO INEPTNESS GIVING COBOL-UBER-ALLES

    While COBOL is not dead, claims re: the quantity of COBOL being newly written are lies, having been a compiler engineer at Liant (LPI-Cobol && RM-Cobol).

  15. Year 2038 is coming by TClevenger · · Score: 1

    Y2.038K is coming, and as we saw with Y2K, companies will wait until the last minute and then scramble to make sure their code handles the clock overflow properly.

    COBOL programmers (if there are any left by mid-2037) will probably make a lot of money for those six months.

    1. Re:Year 2038 is coming by Chris+Mattern · · Score: 1

      Y2.038 is a UNIX thing. While there are certainly COBOL programs running on UNIX, I suspect most have been ported there. How many are actually using time_t?

    2. Re:Year 2038 is coming by phantomfive · · Score: 1

      If they're using time_t, the solution is to recompile. The problem is if they cast the time_t to a 32 bit integer, then they're in trouble.

      --
      "First they came for the slanderers and i said nothing."
  16. COBOL acronym by Anonymous Coward · · Score: 0

    Compiled Only Because Of Luck.

    In seriousness, I've only heard medicore things about it - is it worth trying to learn it for the rare chance I could land a COBOL position?

  17. Re:Had ex-employee leave me for six figure COBOL j by jellomizer · · Score: 1

    So a business decision.
    Spend a million dollars for a new system or keep 10 COBOL developers at 100k each for a year?

    We are getting to a point where things are crossing over and it is getting cheaper to migrate.
    Open Source Database engines, Cheap cloud computing solutions, programmings languages that allow for more rapid design... BPM, CRM, and a whole set of Alphabet soup solutions available canned to replace those custom jobs... It is a different world out there, and they are tradeoffs with some major problems, but changes none the less and expecting to stick on COBOL unless you are planning on retire in a few years is a loosing battle.

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
  18. Re:Why not implement by Anonymous Coward · · Score: 0

    You're way off. By orders of magnitude. Or maybe you were being sarcastic.

  19. It's not an ancient language by davidwr · · Score: 1

    It's just a very very old one.

    Fortran - which is still in wide use - and Plankalkül (not so much) are older.

    --
    Knowledge is how to play a game, intelligence is how to win, wisdom is knowing what game to play.
  20. oh please by Anonymous Coward · · Score: 0

    c language 43 years old, c++ 32 years old, basic 51 years old, fortran 58 years old, sql language 41 years old, and cobol 56 years old. How can people say cobol is an obsolete language when the primary languages c/c++ which are pretty damn old are still used today.

    1. Re: oh please by Anonymous Coward · · Score: 0

      Because the syntax is old

  21. Fujitsu COBOL by Fnord666 · · Score: 1

    I remember trying out something like this many years ago with Fujitsu COBOL. It was just like Visual Basic, except when you opened the code editor for the buttonClicked() method for example, you coded a COBOL procedure rather than VB. Weirdest thing I had come across in a long time. Never did end up using it on anything productional.

    --
    'The tyrant will always find pretext for his tyranny.' - Aesop's Fables
    1. Re:Fujitsu COBOL by DuncanE · · Score: 1

      Yes Fujitsu Cobol.NET is a real product that has existed for many years and is used by many large companies:

      http://www.fujitsu.com/global/...

  22. Beware of Slashvertisement! by sanf780 · · Score: 5, Informative

    Now in plain English and just to the point:
    What: Micro Focus offers a plugin for Microsoft Visual Studio 2015 that lets you "to maintain and modernize COBOL systems alongside Microsoft .NET languages"
    When: Press Release on 2015-08-20
    Who: Micro Focus has recently merged with Attachmate Group, owners of brands like Borland, NetIQ, Attachmate, Novell and SUSE
    Why: COBOL is still used in a lot of legacy applications.

  23. hum by Anonymous Coward · · Score: 0

    I guess this article struck a nerve with c language extremist.

  24. Visual MUMPS by cob666 · · Score: 1

    Perhaps MS will include Visual MUMPS in the next release of Visual Studio.

    --
    Do what thou wilt shall be the whole of the Law - Aleister Crowley
    1. Re:Visual MUMPS by Anonymous Coward · · Score: 0

      VisualRPG is a thing...a horrible, horrible thing.

    2. Re:Visual MUMPS by Chris+Mattern · · Score: 1

      And brief google shows that while there's not Visual Mumps, programming Mumps using Visual Studio is definitely a thing. And much to my horror, there used to be a Visual APL. And a Visual FORTH.

    3. Re:Visual MUMPS by Hognoxious · · Score: 1

      MUMPS is a bag of crap. Hogan and Pick, that's where it's at.

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    4. Re:Visual MUMPS by Anonymous Coward · · Score: 0

      They'll embrace, extend, and attempt to extinguish it. Then they'll release a near-clone of it called Visual Measles.

  25. Re:Why not implement by phantomfive · · Score: 2

    You're way off. By orders of magnitude. Or maybe you were being sarcastic.

    Source. Apologize, anonymous one. I find your lack of faith disturbing.

    --
    "First they came for the slanderers and i said nothing."
  26. Re:Why not implement by Billly+Gates · · Score: 1

    And in Java you would have a billion lines of code show in the stack trace debugger for adding two checks together

  27. A plausible future by Anonymous Coward · · Score: 0

    Remembering that COBOL was written so your average 60's MBA could write code, there's a decent chance that COBOL will come back. It's terrifying, but it's much more understandable to the finance types than more modern languages.

    1. Re:A plausible future by Hognoxious · · Score: 1

      The intention was indeed what you said. It didn't work because language schmanguage, at least half the work is debugging the spec and that requires (to say the least) a peculiar mindset.

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  28. Re:Why not implement by Anonymous Coward · · Score: 0

    Visual Brainfuck, while we're at it. No but seriously, while there are some ancient systems still out there requesting the odd COBOL programmer, do they actually expect COBOL to make a come-back?

    Considering Java nowadays is radioactive as fuck, yes COBOL seems like a good alternative.
    Of course it will be anathema to most hipster programmers that change a language every other day.

  29. Lisp? by tFunc · · Score: 1

    Maybe Visual Lisp will be next... oh, wait: http://autode.sk/1PsAwTO

  30. Re:Had ex-employee leave me for six figure COBOL j by TheRealMindChild · · Score: 1

    I made a shitton of extra money in 1998/99 during college, via y2k/cobol contracts. People would just come to the school and if you knew how to even declare variables, you could make $50 USD/hour.

    Thing was, these were run on old unix mainframes that were still justifying their cost. I'm not sure the target audience with this thing though

    --

    "When life gives you lemons, don't make lemonade. Make life take the lemons back!" -- Cave Johnson
  31. Re:Why not implement by Hognoxious · · Score: 1

    While we're at it, can you provide a source that says I need a haircut?

    Preferably one that doesn't come from a barbers' association.

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  32. Re:Why not implement by phantomfive · · Score: 1

    People without hair shouldn't ask for a barber.
    People without sources to cite should find some.

    --
    "First they came for the slanderers and i said nothing."
  33. MBAs are not necessarily accountants these days by perpenso · · Score: 2

    Remembering that COBOL was written so your average 60's MBA could write code, there's a decent chance that COBOL will come back. It's terrifying, but it's much more understandable to the finance types than more modern languages.

    In recent years about one third of MBAs are scientists or engineers, including many software developers. So there is a pool of traditional (science and engineering) software developers who are financially literate enough to properly implement financial software. The "accountants" don't have to write the code themselves anymore, and neither do the "scientists" and "engineers", as in the 60s. They probably have not had to do so for many decades.

    Plus there are (or were as recently as the 80s) "software development" type degree programs that are enterprise focused rather than science or engineering focused. At one university I am familiar with the school of science had a computer science program, the school of engineering a computer engineering program and the school of business a computer information systems program. The former two were pretty much what one might expect. The later was similar to computer science for the first two years, algorithms and data structures for example, but the later two years were focused more on development of large software projects for large enterprise and government. Cobol was still taught and used. My understanding was that it was uncommon for a school of business to have a "software development" type program.

  34. Re:Had ex-employee leave me for six figure COBOL j by Todd+Knarr · · Score: 2

    The problem isn't the systems. It's 50 years of business logic embedded in the code that runs those systems. Half of it was never documented, because management needed it Right Now and once it was working they needed the developers on another project they also needed Right Now. Of the half that is documented, most of it has undocumented special cases in it and nobody has a clue whether they're needed anymore or not. And this is where the sticking point is, because you can't configure a canned solution to do the job if you don't know what the job is and there's always parts of it so arcane that the canned solutions just won't handle it (this is usually the final nail in the coffin of SAP projects that actually went long enough to get the basics working).

    So the decision's more often whether to spend a million dollars on a new system and keep 100 developers, analysts and the like at $100K/year working for 8-10 years on the new system and keep those 10 COBOL developers working for the same period (because you need the old system working until the new one's at least mostly ready), or just keep the 10 COBOL developers working.

  35. Re:Why not implement by Anonymous Coward · · Score: 0

      IDENTIFICATION DIVISION.
    PROGRAM-ID. ADD01.
    ENVIRONMENT DIVISION.
    DATA DIVISION.

    WORKING-STORAGE SECTION.

    01 FIRST-NUMBER PICTURE IS 99.
    01 SECOND-NUMBER PICTURE IS 99.
    01 THE-RESULT PICTURE IS 999.

    PROCEDURE DIVISION.

    PROGRAM-BEGIN.

            DISPLAY "Enter the first number :".

            ACCEPT FIRST-NUMBER.

            DISPLAY "Enter the second number :".

            ACCEPT SECOND-NUMBER.

            COMPUTE THE-RESULT = FIRST-NUMBER + SECOND-NUMBER.

            DISPLAY "The result is :".
            DISPLAY THE-RESULT.

    PROGRAM-DONE.
            STOP RUN.

    Java

    import java.util.Scanner;

    class AddNumbers
    {
          public static void main(String args[])
          {
                int x, y, z;
                System.out.println("Enter two integers to calculate their sum ");
                Scanner in = new Scanner(System.in);
                x = in.nextInt();
                y = in.nextInt();
                z = x + y;
                System.out.println("Sum of entered integers = "+z);
          }
    }

    Both suck, but Cobol is idiotic.

  36. FWIW... by Anonymous Coward · · Score: 1

    The company I'm currently consulting for handles 10s of millions of credit card transactions using a COBOL-based system. Their "new" system is legacy "C".

    Part of my job was to figure out the bit-twidling they were doing to handle the EMV (Europay-Mastercard-Visa) data from chip-based credit cards. It was ugly.

  37. Same But Different by Anonymous Coward · · Score: 0

    Bear in mind that the vast majority of the COBOL running today is *NOT* Microfocus COBOL, but code written in the compilers made available by IBM, Honeywell-Bull and other mainframe providers back when it was pretty much the only game in town. Microfocus may be offering an implementation of the language, but it doesn't mean they have access to the "Big Iron" applications where the bulk of that legacy code exists.

  38. COBOL Relevant Again by Anonymous Coward · · Score: 0

    Observing exchanges between programmers who are discussing which language is best reminds me of Eric Raymond's "Art of Unix Programming" and the rule which says, "There is no 'One True Way'" - his point being that different problems favor different solutions.

    Name any of the popular programming languages out there and you will find detractors. The thing is that most if not all of those languages were specifically designed to solve a class of problems. FORTRAN, i.e. "FORmula TRANslation" was designed to help scientists who use computers to solve problems in the worlds of math and theoretical physics. COBOL, the COmmon Business-Oriented Language was designed for, um, wait for it... Business.

    What industry sector is driving "Big Data Analytics" these days? Yes: Business.

    Our industry moves in cycles - we see techniques come into fashion and then go out again. For example, in the 1980s there was an explosion in (COBOL-based) on-line transaction processing solutions [as machines got powerful and cheap enough to support the load] and solutions like CICS [IBM] and TDS [Honeywell-Bull] became established and popular. Fast-forward to the web and *exactly* the same techniques are being used by PHP and JAVA programmers - many of whom were never exposed to COBOL back in the 1980s because they either weren't working or were't even born then.

    We have data. We have code. Code will always be designed to accommodate what we want to do with the data. If our requirements are similar to those that brought COBOL to prominence back in the 1980s, then it will remain a viable solution today. Especially when compute power is cheap and optimising compilers make the code even more efficient than was possible last time around.

    Language-based disputes among programmers are often fun to observe, but sadly they seem to be driven by either unaware or ignorant people who can't see beyond their narrow views.

    Code follows data. Always has. Always will.

  39. Ex Cobol Programmer here by Anonymous Coward · · Score: 0

    I'm DEAD !! leave me alone.

  40. MOVE by X10 · · Score: 1

    Isn't Cobol the only language where MOVE really means "copy"?

    --
    no, I don't have a sig
    1. Re:MOVE by BadFroggy · · Score: 1

      You mean, the only language besides every assembly language?

  41. Re:Why not implement by AlabamaCajun · · Score: 1

    That reminds me, time to apt-get a copy of open COBOL. Considering today's P-code and JIT runtimes, COBOL is like a suit and tie compared to C++/Java is a t-shirt and jeans with sneakers. For C# add a hoodie. haha. All the extensions and assemblies will just merge right in and our beloved dinosaur becomes my pet iguana.

  42. Visual Cobol... AKA... by ilsaloving · · Score: 1

    Visual Cobol... AKA Microsoft Word.

  43. Re:Why not implement by Anonymous Coward · · Score: 0

    it's HARD to NOT write a billion lines of COBOL code to do anything...

  44. Re:Why not implement by daath93 · · Score: 1

    The entire system at social security is done in COBOL.

  45. Visual Perl by Anonymous Coward · · Score: 0

    Hmm, maybe we should already start a Visual Perl as well.

  46. Not as bizarre as it sounds by eric_harris_76 · · Score: 1

    As I think most of us know, there's a huge amount of legacy COBOL code out there, still grinding away in banks and insurance companies and such. As a percentage of total production code it may be declining dramatically, but as an absolute number the decline is much smaller. It's a lot easier to say you're going to rewrite an undocumented COBOL monstrosity in Java than to actually do it.

    If COBOL on Visual Studio has the tedious bits defaulted and hidden, or shrunk to something just as informative but not as verbose, that would be something. (For all I know, this has already been done, ages ago.) Click the little plus sign in the left margin, and it will show you the actual COBOL code, in all its verbosity, if you need to see it for some reason.

    For horribly-structured ancient code -- a certain program with a multi-screen nested-IF statement comes to mind -- this could be the start of a refactoring that turns it into something maintainable.

    --
    There's no time like the present. Well, the past used to be.
  47. COBOL... by kmoser · · Score: 1

    The original NoSQL database language!

  48. Grace by clovis · · Score: 1

    I, I still, I ...
    I love you Grace.

  49. Object-oriented COBOL? by MikeSynnott · · Score: 1

    There should be an OO COBOL. I propose we call it ADD COBOL TO COBOL GIVING COBOL.

  50. MF Cobol in VStudio not new by laughingskeptic · · Score: 1

    Micro Focus Cobol has been available in Visual Studio since pretty much the beginning of .NET. This is just the 2015 version announcement.