Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'd recommend using an easy to read cross language data format like JSON. Python and Java have excellent support for JSON. I have done integration between PHP, Java, and Python using this technique. What you have done is something like <a href="http://en.wikipedia.org/wiki/Automatic_programming" rel="nofollow">code generation</a> which is also a valid approach but has it's cons. Here are a few pros/cons off the top of my head of the two approaches:</p> <p><strong>Code Generation Pros/Cons</strong></p> <ul> <li>Can at times be easy to implement</li> <li>Security issues, one program is generating code to execute in another environment, the python code could run any command</li> <li>No validation, if your code generation library has a bug there is no way to validate it's output, because it's not a data structure. Potential security issues here again.</li> <li>Very powerful you can essentially run any python code from your java library</li> </ul> <p><strong>Data Exchange(JSON) Pros/Cons</strong></p> <ul> <li>Can be validated to catch any data corruption or bugs in generation</li> <li>Better security parsing JSON in python doesn't execute any code it just loads a data structure</li> <li>Can be easier to view especially if you <a href="http://docs.python.org/library/json.html" rel="nofollow">pretty print json in python</a></li> <li>requires you to decide on some data structure to map your nodes to JSON</li> <li>you will have to write something to take that data structure and produce your Topo and Node objects from it.</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload