Nice set of points you raise Ala'a. I agree with you that programming
languages are just tools, but that's exactly my point, I really can't think
of myself facing any task that would require Java as an answer. I know there
always are more than one way to solve any problem you face, but i just don't
seem to be able to find a functionality to say "This is Java's play field,
When I face this problem the first thing that should pop to my mind is
Java".

I found an interesting article (what intel giveth, microsoft taketh
away<http://exo-blog.blogspot.com/2007/09/what-intel-giveth-microsoft-taketh-away.html>)
that explores windows/intel performance gains (or lack of), and I guess you
can say that some of that holds for Java. Still, I don't know why I should
develop (let alone use) bloated software when there are thiner alternatives.
Of course, if you compare it with Google Docs for instance, you'll find that
even on a relatively old machine you don't get a serious performance hit (I
know, unfair comparison, but the end user doesn't think of it that way).

OO is definitely a programming style, but my beef with it is that Java
proponents throw the word around as if it's some kind of magical word that
solves any technical problem you face. And I don't view it that way at all.

I don't see myself agreeing with you about strongly typed languages, but
let's get our definitions inline: To me, strongly typed means the
restrictions over intermixing data types and the operations over them. Are
we on the same page? maybe i got things wrong?
The thing that made me love PHP is weak typing (along with variable
variables), the power it gives is greatly liberating, but as always, with
great power comes great responsibility.
Code generators are great tools when i applied correctly. I'm with you 100%
in the situation you mentioned. But what i was referring to is generators
that build entire applications, a la .net wizard styles that ask you a few
question and bam, you have an application.

The points you raise agianst PHP are interesting, lack of certain error
handling and advanced mathematics (haven't faced either myself). Maybe the
Java people should use those points to explain where Java is superior to
PHP.

Perhaps Xushi's question is an appropriate one to ask, and I usually shy
away from comparing X to Y, but this guy really got on my nerves so I
thought of getting some of your input to better argue with such people in
the future. No trolling intended :).

On Nov 17, 2007 4:35 AM, Ala'a Ibrahim <[EMAIL PROTECTED]> wrote:

> Well, I'm not a Java fan myself, I've always been C/C++ guy, till I
> started working with PHP, but for me Programming Languages are tools that
> you use to accomplish things, and that's the way I think we should look at
> them, before starting the comparison.
> About performance, yes it's expected to have a lower performance, but it
> gained the speed the hardware is offering, but it feels that way cause it's
> slower than everything else. well try running OpenOffice on a PII with a
> 32M/ RAM machine and you'll see there is a difference :P.
> About OO, well OO is a programming style, the language only offers you
> tools that would make it easier to implement, I've written a lot of OO
> applications using C, and believe me, whatever the programing language is
> fully OO, I can assure you that you can write your applications in a
> Top/Down code style.
>
> Also, strongly typed languages are not just about defining a space in the
> memory, and one of the problems I had with PHP is that it doesn't have the
> double type, I needed that while writing a package that calculates the
> praying times in a day, and the precision I needed for it, well it had an
> error of minutes, which wasn't a good result, so I needed to write it in C,
> and call it from PHP to get a better result. and sometimes you just need to
> specify the actual type of a certain variable, in a big application, a
> variable tossed around the whole application his type might change in the
> middle of something that has a bug, causing a logical error in the end. I
> prefer to see that as a warning, or an error.
>
> Also code generators are not as bad as people talk about them, they are
> very useful for all types of languages, I have bash and vim scripts all over
> my machine that it's job is to generate certain code for me that I don't
> think that I need to waste my time writing, it saves me a lot of time, also
> most of the frameworks (including rails) have some certain feature that
> would generate part of the code for you. If I had a better knowledge with
> gtk I would write a wizard to generate most of the stuff for me, like
> imagine every time I need to write a class, I would write the basic class
> structure that I use for most of the classes I write. also I hope I can
> write a class generator for inherited classes, to at least write the
> function prototype for all the abstract functions in its parent. using my
> written generators, I managed to cut down about 25% of the time I need to
> write a certain application, we really waste a lot of time writing stupid
> stuff that we don't even think about.
>
> it's a very nice quote, but when it comes to the point that Java runs on
> all platforms, well this is really not true, have you ever tried Java with a
> 64bit OS (which is not Mac of course), it's a real pain in the A**. also I
> guess there is no Programming language that runs on all platforms, it should
> say it's easy to be ported to all platforms, and the best thing to do to
> achieve that, is to publish your source code, and use only open source
> libraries in it ( i.e. comply to the gnu standards), that way, someone
> might figure out a way to run it on his system, and whatever Suns CEO says,
> Java is still not open source which makes porting harder.
>
> If you want to see on it's best performance, try it on Mac OSX, as it's
> built into the core of the OS, (an upgrade of the JVM used to require a
> reboot, I don't know how it is now, I haven't used a Mac in a very long
> time).
>
> but still a lot of problems arise in scripted languages, like the system
> exceptions, it's different from a language to another, but for example, PHP
> (as when it was built it wasn't written to be a language that supports OO)
> till the moment, a lot of errors can happen and you have no way of handling
> them in your application, I know it's uncommon, but for me, I had to deal
> with a lot of Segmentation Faults with it, also the common problem, a Fatal
> Error for reaching the maximum memory limit, cannot be handled via PHP in a
> productive way.
>
> This is what is on my mind right now, I have to go back to working :P
>
>
> On 11/16/07, Al-Faisal El-Dajani < [EMAIL PROTECTED]> wrote:
> >
> > Hey Guys,
> >
> > I just had a _very_ heated debate with a friend of mine about the merits
> > of using Java, and just wanted your input on the matter. I was a Java fan up
> > until I left university and met the real world, and there, the whole
> > paradigm of predefined variables just crumpled on itself.
> >
> > I just can't stop thinking that in the 12 years that Java has existed
> > (and hardware has evolved 8x, according to moore's law), Java applications
> > have not gained one ounce of speed that the hardware should be giving. I
> > mean, they seem to be some kind of performance blackholes. Seriously,
> > whenever I use any Java application (Azureus, OpenOffice, Eclipse), I
> > actually feel physical pain.
> >
> > And ever since I tried out PHP and Ruby, I just completely lost faith in
> > ALL strongly typed languages. I mean, come on, do I really need to specify
> > that this variable is a double? It's some space in memory that I use to
> > whatever ends I see fit. If you want to protect me as a developer from using
> > my variables in the way I want, then perhaps the language should be
> > developed using wizards and auto code generators like a certain set of other
> > languages does.
> >
> > The Java proponents, however, keep saying "well, it works on all
> > platforms". That is true, but I'll take online applications over Java anyday
> > of the week. I actually _prefer_ network latency to Java's performance, at
> > least the PC would be free to do a sophisticated thing as "Multitasking".
> > And sometimes I retort with this qoute <http://bash.org/?338364> which
> > usually shuts them up :).
> >
> > Another point that Java proponents use (or at least try to), is the
> > claim that Java is an OO language as opposed to PHP (and they seem to prefer
> > JSP over PHP, go figure...). Of course I would (politely) point to them that
> > PHP5 is OO, and more importantly that Java is not fully OO. No offense, but
> > ever after using Ruby, I don't view Java to be the pinnacle of OO (as it
> > shouldn't be).
> >
> > Now don't get me wrong, this extends to languages far beyond Java, but
> > the question I have is: Am I being overly critical of Java? Is there any
> > merit to my points? or theirs? What's your input?
> >
> > --
> > Al-Faisal El-Dajani
> > Phone: +962-7-79 73 70 50
> > P.O Box: 140056
> > 11814 Amman, Jordan
> >
> >
>
>
> --
>                                  Ala'a A. Ibrahim
> http://guru.alaa-ibrahim.com/
>
> >
>


-- 
Al-Faisal El-Dajani
Phone: +962-7-79 73 70 50
P.O Box: 140056
11814 Amman, Jordan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Jolug" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.com/group/Jolug?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

رد على