LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-20-2004, 04:35 AM   #1
pedrosan
LQ Newbie
 
Registered: Apr 2004
Location: Osaka, JAPAN
Posts: 21

Rep: Reputation: 15
Wondering if I should use JAVA or UNIX scripts to develop a program


Hi

I need to develop a program that browse a file hierarchy, concatenate and modify XML or HTML files in it.

I am wondering if it is better to use JAVA or UNIX scripts to do so.

My choice criteria are:
- The development ease
- The speed of program's functioning

Does anybody know which one is the best?

Thanks for your help.

PEDROSAN
 
Old 05-20-2004, 05:41 AM   #2
khtse
Member
 
Registered: Sep 2003
Location: Hong Kong
Distribution: Slackware 9.1
Posts: 43

Rep: Reputation: 15
I suppose development ease is strongly correlated to your expertise in any language, so that depends whether you're better at Java or Shell Scripting.

But I would presume that for simply file manipulation tasks, the Shell Scripting option would be much quicker to hack and run. OTOH, if you'll be developing this XML part of your program later, it might be better to start with Java (with the XML).

M2C
Karhoo
 
Old 05-20-2004, 09:12 AM   #3
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Editing XML file doesn't sound like a job for a shell script really, maybe unless you execute XSLT scripts from that.

Python, Perl, or Java sound more suitable for this. However it depends how complex the things are you want to do are. If it's just putting some easy-to-find parts of some files together, a shell script wit maybe some sed or awk commands may be the easiest thing to use.

Like khtse already said, it also denpends on your expertise in the different languages.
 
Old 05-21-2004, 10:19 PM   #4
andmalc
LQ Newbie
 
Registered: Nov 2003
Distribution: Debian
Posts: 19

Rep: Reputation: 0
For ease of development, nothing beats Python. It's extremly versitile, but not as fast as Java or C.

Ruby is another good high level language that' quite similar to Python but with more of a shell scripting feel to it. It's perhaps even more nicely designed than Python not nearly as well documented, at least in Englisht.

Python or Ruby are fun to use and you get a lot more done for the same amount of code than with the 'serious' languages.
 
Old 05-22-2004, 07:35 AM   #5
Shah
LQ Newbie
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Red Hat, Fefora, Mandrake, Cygwin
Posts: 13

Rep: Reputation: 0
Hmmm, well you can get alot more done using visual basic on widnows...



Well I recommend Java for editing xml files than to using unix scripts or shell. Thats cus I am used to java in regards to I/O. As Hko stated it depends on your expertise.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Let us develop a C program to resolve the Sudoku square ewt3y Programming 21 08-30-2005 12:09 PM
Just wondering about java... simcox1 Mandriva 1 05-11-2005 09:16 AM
unix korn shell script that interact with windows java program ann124 Programming 5 11-09-2004 09:14 PM
howto use kdevelop to develop and debug a console program vasanthraghavan Programming 5 05-15-2004 12:23 AM
How can I develop the audio program in linux? fliny Programming 3 10-03-2003 07:17 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration