11 votes

Watsonx: IBM's code assistant for turning COBOL into Java

3 comments

  1. [2]
    Comment deleted by author
    Link
    1. teaearlgraycold
      Link Parent
      Everything that I see in the video is just the data model. That's by far the easiest part and could be derived from the SQL database schema using an ORM's code generator. I want to see 1000 lines...

      Everything that I see in the video is just the data model. That's by far the easiest part and could be derived from the SQL database schema using an ORM's code generator.

      I want to see 1000 lines of business logic ported over to Java with consideration for whatever idiosyncrasies COBOL has.

      6 votes
  2. [2]
    unkz
    Link
    From time to time I have the misfortune of dealing with this kind of “Java” code that has been ported over from COBOL. It is the weirdest stuff you’ll ever encounter. It seems like the way these...

    From time to time I have the misfortune of dealing with this kind of “Java” code that has been ported over from COBOL. It is the weirdest stuff you’ll ever encounter.

    It seems like the way these projects get ported is one component at a time, while keeping all the data formatting (bizarro fixed length text fields, frequently without without line separators) and heavily overloaded custom data types to strictly emulate COBOL behaviours instead of native data types.

    8 votes
    1. Deely
      Link Parent
      That makes complete sense unfortunatelly. While converting COBOL to Java converter have zero idea about intention of the code, and can't know what is a feature and what is just sideeffect, so...

      That makes complete sense unfortunatelly. While converting COBOL to Java converter have zero idea about intention of the code, and can't know what is a feature and what is just sideeffect, so converter have to keep all quirk in a place.

      4 votes