Menu
[font=trebuchet ms]Hey guys,
I was looking over a lot of Java-related documents over at Apache.org a few minutes ago, remembering that Java was ideal for XML parsing, and became interested in learning to use the Java Server Pages (JSP) technologies. I was curious, though, if there were any outstanding features of Java over other common scripting languages such as ASP, Perl, Python, or PHP, before I invest my time in learning new syntax for a new language which may otherwise be unnecessary.
Thanks.[/font]
[i]Originally posted by buntine [/i]Yes I am, infact I have said that before in another thread and you neglected to read that. I said I have not made much use of it with asp.net, I have not dug into polymorphism, inheritance, etc from the server. I used it when I used java. I do not like java because I think it takes too long to compile and run (on any platform, though jsp will run fast enough after compiled) and that its syntax is retarded. I can remember sitting in computer class twiddleing my thumbs waiting for the stuff to compile, we were on crappy boxes so that obviously added to it, but c++ blazed past it. I also had thought that c++ runs faster on linux then java (dono about mac because isnt its swing made up of java?). I have used c++ before and find it to have a much nicer syntax.
[B]I have been a Java programmer for quite a while and love it. Its by far the best environment I have ever developed in. Peo is not an OO programmer, hence the reason he hates it.[/B][/QUOTE]
Yes I am
[/quote]
[i]Originally posted by buntine [/i]No, I have not done much [i]practical[/i] java. We did ap style java. It was all in a prompt. But we did do a lot of java. I wish we would have learned the gui though. I have a college credit in java now, I have downed a few cups of java, and I think they tasted aweful.
[B]Hang on, you told me that you had not ever done much Java. Infact, you said that you have never even done anything outside of the command window. Such as the AWT and Swing packages. [/B][/QUOTE]
I'd heard that Java has open-source applications to parse XML and is very unique in that area, but perhaps I misunderstood.[/quote]There are several XML parser packages, probably more than any other particular language but people have written parsers for almost any high level language out there at this point.
So from what I understand, Java and ASP(X) are not precompiled languages like PHP and Perl are?[/quote]I'm not sure I follow that. Java and the .Net languages run from precompiled modules.
So in order to write Java/ASP code, I'd have to have a compiler to write applications.[/quote]Yes but "application" has many meanings.
How does that apply to the Web, though? A request is sent to the server, it runs a *.jar/*.aspx application based on one of the supported languages, and the output of the application is what is printed on the web page? How exactly does that work? I'm interested in expanding my language fields, but if Java/ASPX must be compiled, I may go with CGI/Perl or Python for now...[/quote]You're thinking in terms of CGI. Java and .Net servers don't work like CGI at all. When they load objects for their web apps, those objects are loaded into the context of the web/app server for the life of the application, which is often until the server is rebooted the next time. CGI creates a separate process at the OS level and connects to its I/O streams. When the CGI service ends that process is destroyed and the CGI app exits. It's a very different way of thinking about your application.
OO is fundamentally a different cut at the problem of developing software to satisfy business requirements. It gets you to the same place but it hopes to get you there along a better path. It's more process than language. You can do OO analysis and OO design then code the design in C or COBOL, translating the OO concepts into the procedural concepts of library cohesion and coupling and data structures. The OOP languages eliminate the need for that design translation by directly expressing the OO concepts in their syntaxes.
Also, as far as OOP, I've never had much experience in the area. What are its advantages? When I look at OO code, it seems extremely redundant... I can understand how classes etc. are used to save coding space, but in the same way you can use a simple function, can you not?[/quote]
[i]Originally posted by buntine [/i]Its some of the keywords in particular, and how java gets so fussy about parsing this into this and this into this, and it saved me some time when I used css. But I do not know much css. Also everyone just seems to claim that java's greatest advantage is that it can go anywhere, but so can c++....
[B]You said the only thing that you didnt like about Java was the syntax. How could you like C++? It has very similar core syntax. [/B][/QUOTE]
[i]Originally posted by Jona [/i]
[B][font=trebuchet ms]..I'd heard that Java has open-source applications to parse XML and is very unique in that area, but perhaps I misunderstood.
[/B][/QUOTE]
[i]Originally posted by Jona [/i]executable applications
[B][font=trebuchet ms]What can Java do that PHP can't?[/font] [/B][/QUOTE]
0.1.9 — BETA 5.18