Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 11-29-2006, 03:42 PM   #1 (permalink)
Salchester
Salchester
 
Salchester's Avatar
 
Join Date: Jul 2005
Location: In a house
Posts: 230
Salchester is an unknown quantity at this point
Java Vs. Other Languages

Evening Everyone, (Well it is here )

How does Java differ from other programming languages, and what are the advantages/disadvantages of using one language over another?

Many Thanks,
__________________
Many Thanks, in advance!

Salchester.
The Future Is Here - Are You Ready?
Salchester is offline   Reply With Quote
Old 11-29-2006, 05:26 PM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,139
Belisarius is on a distinguished road
Well, most languages have certain advantages over other languages that people use in certain cases. For instance, I'd use PHP for web development as opposed to C. On the other hand, I'd rather use C++ than Perl to create a graphical application

Java is a bit of a jack-of-all-trades. It can do pretty much anything, but not necessarily as well as a language that has been designed to do it well.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 12-10-2006, 10:09 AM   #3 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 596
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
Right, like what Belisarius said, java is a general purpose language that has it's own virtual machine. It's around the same detail level as C++ in terms of what you have to tell the compiler, but java has garbage collection so you don't have to explicitly manage memory for your objects. Java is object oriented and supports classes and inheritance. Java is generally worse than C/C++ for heavily I/O based OS level tasks such as recursively crawling through a file system. But in exchange for the elimination of pointer errors, this may or may not be a deal breaker, depending on your problem.

The second part of your question is somewhat useless in the abstract but is much easier to answer given a specific problem domain. For example, nothing beats Perl for text processing. Also, Forth is the king of minimalist stack based programming, but I certainly wouldn't want to write a web browser in Forth.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 12-11-2006, 09:28 AM   #4 (permalink)
toe_cutter
Code Monkey
 
Join Date: Aug 2002
Location: Boston, MA
Posts: 79
toe_cutter is on a distinguished road
Send a message via ICQ to toe_cutter Send a message via AIM to toe_cutter Send a message via Yahoo to toe_cutter
Quote:
Originally Posted by teknomage1 View Post
For example, nothing beats Perl for text processing.
Oh? I'd put my Python against your Perl any day. That sounds kind of sick now that I think about it.
__________________
toe_cutter is offline   Reply With Quote
Old 12-11-2006, 12:04 PM   #5 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 596
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
I give Perl the edge in the text arena because regular expressions are completely integrated into the language, so a user doesn't have instantiate a regex opbject, and scan for matches, and extract the matches manually. Also perl's quoting is more flexible than python's, letting you do fancier escapes.

Mantainence is, of course, something else entirely.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 12-11-2006, 12:41 PM   #6 (permalink)
toe_cutter
Code Monkey
 
Join Date: Aug 2002
Location: Boston, MA
Posts: 79
toe_cutter is on a distinguished road
Send a message via ICQ to toe_cutter Send a message via AIM to toe_cutter Send a message via Yahoo to toe_cutter
Quote:
Originally Posted by teknomage1 View Post
Mantainence is, of course, something else entirely.
hahaha..Perl does have the edge in Obfuscated coding.
__________________
toe_cutter is offline   Reply With Quote
Old 03-02-2007, 02:33 PM   #7 (permalink)
Rasheed
Recruit
 
Rasheed's Avatar
 
Join Date: Mar 2007
Location: Netherlands
Posts: 10
Rasheed is on a distinguished road
And if you want to write applications for a cellphone, I guess Java is your best option.
Rasheed is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparison of Different Programming Languages Punch-M6.net All Other Coding Languages 23 04-19-2007 01:34 PM
Java Resources Belisarius Java 0 03-28-2005 02:03 PM
Java Developer Position in Kansas City justplaindoug Java 0 10-29-2004 11:52 AM
IBM urges Sun to make Java open source redhead Code Newbie News 0 03-01-2004 10:39 PM


All times are GMT -8. The time now is 01:42 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting