Re: GoTo in Java



> Someone else then translates it to
> C++. Then I come back, and notice there's a C++ version now. I tell my IDE
> to translate it to Java, and get something not too bad. I can clean it up a
> bit, and add it to the docs too.

While that mechanism may be a nice toy for learning different languages
it would be useless for production code. Who is going to ensure that
your 'cleaned up' Java now works the same as the Fortran code. If a
change is made to the C++ how does the Java get the same change.

In may examples what is the Java equivalent of 'for record in file:' ?
It is several lines of class methods and a while loop. If the Java is
modified then how could it ever get back to being just the one line ?

Source code translations have been tried for several decades and they
just don't work. For example you cannot translate C code into Java and
expect it to magically become object orientated.

.



Relevant Pages

  • Re: Help me!! Why java is so popular
    ... He is arguing that Java performance is less than C/C++ ... No, I'm assuming it takes longer to translate a thing and run it, than ... the JVM, abc gets translated to native code and executed -- Java class ... ready to go so it's executed -- which instance of abc's execution ran ...
    (comp.lang.java.programmer)
  • Re: GoTo in Java
    ... >> to translate it to Java, and get something not too bad. ... > While that mechanism may be a nice toy for learning different languages ... > your 'cleaned up' Java now works the same as the Fortran code. ... with all programming languages to ensure that the documentation for each ...
    (comp.lang.cobol)
  • Re: GoTo in Java
    ... >> to translate it to Java, and get something not too bad. ... > your 'cleaned up' Java now works the same as the Fortran code. ... NOT maintain source code. ... Encapsulate functionality and reuse it. ...
    (comp.lang.cobol)
  • Re: Is it possible to put several objects into one file?
    ... How does Java know from where to where an objec is in the file? ... When JAXB will let you translate objects to an XML text representation, ... You might use Java serialization, but there are many other ways to do it. ...
    (comp.lang.java.programmer)
  • Re: this <--- Problem with THAT!
    ... Whether or not there was any insult made is very subjective. ... Here is how I would translate the above statement: ... I am more informed about the practices of OO and therefore, Java; ... Sun Certified Developer for the Java 2 Platform ...
    (comp.lang.java.programmer)