Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Is there any point in investing my time learning Servlets and JSP?

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Given that there are much better and popular server side languages like PHP.

I mean is there any point investing my time learning Servlets or JSP when PHP can do the job.

Are there situations where you Servlets or JSP have an advantage or can do something that PHP cannot?
 
Rancher
Posts: 43016
76
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you haven't learned servlets/JSPs yet, how do you know that PHP is much better?
 
Marshal
Posts: 67418
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As you already seem to have made up your mind, why don't you tell us?
 
author & internet detective
Posts: 40035
809
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this writeup is a good answer to your question. It talks about scenarios where each is better and what to watch out for.

Another take on it: you are going to learn more than one language in your career.
 
John Drulo
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:If you haven't learned servlets/JSPs yet, how do you know that PHP is much better?



Because whenever I hear server side language, I hear PHP. I never heard about JSP. PHP's popularity in the programming world, may have come from its superiority
 
author
Posts: 23878
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

John Drulo wrote:

Ulf Dittmer wrote:If you haven't learned servlets/JSPs yet, how do you know that PHP is much better?



Because whenever I hear server side language, I hear PHP. I never heard about JSP. PHP's popularity in the programming world, may have come from its superiority



To answer your original question, you should invest time in something if there is a need or if there is a desire. Do you have a need? Meaning is your company going to use that technology? and you need to learn it for work?

As for desire, it is clear that you regard PHP as superior, and hence, no desire. And no further discussion needed in this regard... so, is there a need? If so, then, there is a point.

Henry
 
Bear Bibeault
Marshal
Posts: 67418
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

John Drulo wrote:

Ulf Dittmer wrote:If you haven't learned servlets/JSPs yet, how do you know that PHP is much better?



Because whenever I hear server side language, I hear PHP. I never heard about JSP. PHP's popularity in the programming world, may have come from its superiority



That's a huge stretch in two ways: firstly, just because the scope of your own exposure has been limited doesn't mean that exposure is representative of the rest of the world, and secondly, popularity often does not indicate any sort of technical superiority.
 
Ranch Hand
Posts: 528
10
Android Open BSD Slackware
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found really nice what seniors said, if you do not know a language how do you can compare, on the other side I found this statistics that is not encouraging at all, it looks that PHP is quite used
http://w3techs.com/technologies/overview/programming_language/all

So I think in the end, for the love of the logical reasoning, in part the request made makes sense, considering the efforces needed to master a language, one would love some job market share over the 20 per cent at least, so it comes spontaneous to me to ask if knowing Java there are some synergies that JSP can offer.. and also fathom a bit about some things that despite all Java allows to do better than JSP, this would be really informative i guess.

 
Jeanne Boyarsky
author & internet detective
Posts: 40035
809
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, keep in mind that people don't use *just* JSP. (or at least they shouldn't). Which means Servlets or Java EE or the like are better indicators of Java web technology usage.
 
Giovanni Montano
Ranch Hand
Posts: 528
10
Android Open BSD Slackware
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

John Drulo wrote:Given that there are much better and popular server side languages like PHP.

I mean is there any point investing my time learning Servlets or JSP when PHP can do the job.

Are there situations where you Servlets or JSP have an advantage or can do something that PHP cannot?


ehy John,
just seen there is another discussion on the same page
https://coderanch.com/t/642438/Servlets/java/Servlets-JSP-obsolete

and really important have a look at that link
http://itxdesign.com/php-vs-java/
 
Rancher
Posts: 4614
47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Giovanni Montano wrote:I found really nice what seniors said, if you do not know a language how do you can compare, on the other side I found this statistics that is not encouraging at all, it looks that PHP is quite used
http://w3techs.com/technologies/overview/programming_language/all

So I think in the end, for the love of the logical reasoning, in part the request made makes sense, considering the efforces needed to master a language, one would love some job market share over the 20 per cent at least, so it comes spontaneous to me to ask if knowing Java there are some synergies that JSP can offer.. and also fathom a bit about some things that despite all Java allows to do better than JSP, this would be really informative i guess.



The first sentence on that site:
"This diagram shows the percentages of websites using various server-side programming languages."

Note, this has nothing to do with the jobs market.
Most amateur sites use PHP because that's where most of the free hosting lies (my own one is a PHP one, not that I use it for more than email).

A simple trawl of the jobs market (as given here, can't guarantee accuracy, but it matches what I've heard before) shows a completely different picture.
Or this from IT World last year:
"Jobs looking for people skilled in JavaScript were, far-and-away, the most plentiful, mentioned in about 14% of the job listings. C# programmers were the next highest in demand (9%), followed by Java coders (8% of listings). As I wrote last week, JavaScript is the top programming language choice among startups, so this isn’t so surprising."
 
Giovanni Montano
Ranch Hand
Posts: 528
10
Android Open BSD Slackware
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Dave Tolls wrote:

Giovanni Montano wrote:I found really nice what seniors said, if you do not know a language how do you can compare, on the other side I found this statistics that is not encouraging at all, it looks that PHP is quite used
http://w3techs.com/technologies/overview/programming_language/all

So I think in the end, for the love of the logical reasoning, in part the request made makes sense, considering the efforces needed to master a language, one would love some job market share over the 20 per cent at least, so it comes spontaneous to me to ask if knowing Java there are some synergies that JSP can offer.. and also fathom a bit about some things that despite all Java allows to do better than JSP, this would be really informative i guess.



The first sentence on that site:
"This diagram shows the percentages of websites using various server-side programming languages."

Note, this has nothing to do with the jobs market.
Most amateur sites use PHP because that's where most of the free hosting lies (my own one is a PHP one, not that I use it for more than email).

A simple trawl of the jobs market (as given here, can't guarantee accuracy, but it matches what I've heard before) shows a completely different picture.
Or this from IT World last year:
"Jobs looking for people skilled in JavaScript were, far-and-away, the most plentiful, mentioned in about 14% of the job listings. C# programmers were the next highest in demand (9%), followed by Java coders (8% of listings). As I wrote last week, JavaScript is the top programming language choice among startups, so this isn’t so surprising."


thank you Dave to come back on that, i amend my consideration, it was ingenuous from my side as I did not consider the amateur sites in PHP do you mention.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic