Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old March 21st, 2002, 03:26 PM
markhorgan markhorgan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: Salford, UK
Posts: 0 markhorgan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Does anybody else find server-side java a pain in the neck?

I did a site for a client in JSP and it took a lot longer than sites I did in PHP and coldfusion. Every little exception had to be caught and handled. I then went a step further and developed my own framework that was based on the controller-model-view model, with servlets, custom-tags and javabeans. Now I find my server account is suspended because the site is taking up too much processor time. I beginning to wonder is java worth it. Of all the server-side languages it seems to take the most effort. My attraction to the platform is the use of components and custom tags but I'm wondering should I leave the platform and go back to something simpler like PHP? On a related note, how fast is server-side Java? Because the code is compiled into byte-codes shouldn't it be faster than interpreted scripting languages? Also does garbage-collection encourage sloppy code for example using String when you should use StringBuffer?

Mark

Reply With Quote
  #2  
Old March 22nd, 2002, 03:04 PM
Marky_Mark Marky_Mark is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: On a screen near you
Posts: 498 Marky_Mark User rank is Private First Class (20 - 50 Reputation Level)Marky_Mark User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
I think compiled Java would be a lot faster than PHP and database access would be a lot faster


In my view Java is more powerful than PHP because Java can be ported to many devices and has massive support from large corporations like Sun and IBM


You dont see IBM and other large corporations supporting PHP but they do support Java


In my view Java is more powerful by far but on the downside it is much harder to maintain and develop


Mark
__________________
100 trillion calculations per nanosecond

Reply With Quote
  #3  
Old March 22nd, 2002, 09:21 PM
Lord MJ Lord MJ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Posts: 34 Lord MJ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 57 m 2 sec
Reputation Power: 7
Send a message via AIM to Lord MJ Send a message via Yahoo to Lord MJ
I can't see why people care about Exception handling. I mean with PHP you handle exceptions by checking return values, and such, to avoid PHP fatal errors. There's little difference between Java Exceptions and PHP runtime errors other than it's easier to handle Java exceptions.



As for the speed aspects, it depends on what app server you use. Obviously a Apache-Tomcat engine will be slow compared to PHP, while an optimized engine like Resin or JRun will perform much better.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Does anybody else find server-side java a pain in the neck?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway