Hacker, author, trainer
Technorati Profile [technorati.com]
So I decided to use some of my Copius Free Time to learn some more Java. I bought a copy of Core Java 2 Volume 1 - Fundamentals and sat down last night to read through the introductory chapters.
At the end of chapter one they have a list of "Common Misconceptions about Java". This contains things like "Java is an HTML extension" or "JavaScript is a simplified Java". One of them says "You should use Java instead of Perl for CGI scripting". Here's what they say about that:
This is half right. Not only should you no longer use Perl, you should also not use CGI scripts for server-side programming. Java servlets are a superior solution. Servlets execute much more efficiently than CGI scripts, and you can use Java - a real programming language - to implement them.
Now, I can understand them plugging servlets and I know that CGI really isn't very efficient, but that implication that Perl isn't a real programming language really rankled with me. It's so pointless. I almost gave up reading the book at that point.
I've emailed the authors to find out what constitutes a real programming language by their definition. I'll let you know if I get a reply.
Real programming languages (Score:1)
Perl 6?
Java Zealots (Score:3, Interesting)
The sad thing is the same people who take digs at Perl for not being a real language state quite emphatically that Python is a real language. Yet the differences between the two are small once you dig deeper than syntax.
Reply to This
Advocacy useless ? (Score:2, Insightful)
I can't count the number of time I heard some co-workers or (now ex
I tried to go into systematic advocacy
Define what is a script language ?
And prepare to have a lot of fun if they venture to the path : JAVA is compiled,
JAVA use a system independant virtual machine (Replies=>same as opcode,more platforms available)
CGI (Score:1)
A couple of years ago someone wrote an article comparing Java servlets to Perl CGIs, and talked about the language differences and the performance differences together, as if you can't have Perl servlets. It's either ignorance or slander, and neither is acceptable.
Funny You Should Mention That... (Score:1)
Is that what people mean when they say that perl isn't really a programming language? Because it seems like explaining that we don't quite understand how electricity works, either. So what?
Sometimes when people feel inferior (say, because they watched another programming language beat the pants off of their favorite in something) they need to compensate. I couldn't care less; I'm learning mor
------------------------------
You are what you think.
People believe the first thing they learn (Score:1)
That Java developer was a biologist by training & experience, who had just started out on programming a year or two ago. She felt pretty strongly that for web programming, Java was unquestionably superior to Perl because, like your quote says, Java can do servlets while CGI scripts can't & are thus Perl is slower. It was
--
DO NOT LEAVE IT IS NOT REAL.