Re-Writting C++ Tool Access and change database
I constantly hear about Java replacing C++. Simple as it sounds, I do not find it easy to use Java for simple/small tools like the one that I am looking at. Any suggestion to re-design this tool using Java/jdbc/jsp/... will be helpful.
A Simple tool that takes input from a text file and changes the feild values in a database (sybase) and outputs the results in a text file. With some sanity checks to verify data integrity etc using SQL/Stored Procedures.
I am open to adding features that will be helpful to sell the tool to the customer.
Is is worth using Java, or is it the developer's interest to use JAVA.
[638 byte] By [
caryclada] at [2007-9-28 1:16:31]

for the technical question: look in the api documentation of java.io and the java.jdbc package,
also have a look at the respective tutorials. Links to these are on the navigation bar of the JDC.
For the old question of comparing c++ and java:
1. Is there a strong reason for you to use one or the other (like: the application needs to run on wintel, unix and macs without recompilation or: you want to learn java)
2. If not just use the language you are more comfortable with. If you are an expert java programmer and a c++ newbie it probably takes much longer to write the same app in c++ then in java and the result in java is probably even better considering perormance and stability. Of course if your skills are more the other way round the respective statement holds.
3. If you just want to decide which language to learn I'd think about what kind of application you are likely to write: Do want to write hardware related stuff like drivers? choose c/c++; Do you want to write Business Applications use Java;
regards
Spieler
BTW: this is the wrong forum for this discussion ... it is more a basic java thing
Point well taken, thanks,
1. I am traditional C++ programmer, learning to use java, for reason that we are standardizing on JAVA for new developments.
2. Performance/scalability/portability in using java are strong points.
3. I am looking for a code sample / class design example for a tipical data migration software.
Cary
> 1. I am traditional C++ programmer, learning to use
> java, for reason that we are standardizing on JAVA for
> new developments.
Eh? Then that is the answer to your question. You have to use java because the decision has already been made.
>
> 2. Performance/scalability/portability in using java
> are strong points.
>
I try to use the best tool for the job. And nothing you have said would suggest either Java or C++ to me. I would use perl. It supports all of the above. It's built in munging abilities far exceed Java and C++. And it is more likely to be known by any DBA.