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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-20-2004, 04:35 AM
|
#1
|
LQ Newbie
Registered: Apr 2004
Location: Osaka, JAPAN
Posts: 21
Rep:
|
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
|
|
|
05-20-2004, 05:41 AM
|
#2
|
Member
Registered: Sep 2003
Location: Hong Kong
Distribution: Slackware 9.1
Posts: 43
Rep:
|
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
|
|
|
05-20-2004, 09:12 AM
|
#3
|
Senior Member
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536
Rep:
|
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.
|
|
|
05-21-2004, 10:19 PM
|
#4
|
LQ Newbie
Registered: Nov 2003
Distribution: Debian
Posts: 19
Rep:
|
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.
|
|
|
05-22-2004, 07:35 AM
|
#5
|
LQ Newbie
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Red Hat, Fefora, Mandrake, Cygwin
Posts: 13
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 03:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|