jsp vs php?

evident

Lifer
Apr 5, 2005
12,157
774
126
So finally, my job has me doing some coding, and i'm ramping up on JSP and java server faces technology to be able to do the job. I read in an article that PHP is in really high demand but no mention of JSP at all. http://www.odesk.com/blog/2008...demand-php-ajax-mysql/

aside from the faces framework, i've been enjoying JSP so far, but im sure i'll encounter headaches, like with any other language.

so what makes php so in demand and jsp not even mentioned in that article? the reason why .net isnt mentioned is because of the MS haterade.
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
At almost every large client, J2EE is the platform of choice for enterprise applications. We have a few clients that are dedicated Microsoft shops that have gone the .NET route, and .NET certainly works well for thick clients when needed, but J2EE is by far the dominant platform.

I can't say I've ever seen PHP used at a large corporation.
 

sourceninja

Diamond Member
Mar 8, 2005
8,805
65
91
There are a lot of midsized to very large corps using php. IBM, Bell, Mcaffee, SugerCRM, salesforce to name a few off the top of my head.

As for jsp not being able to do a whole website. That is not true at all. You can do anything with java that you can do with php. We are in the process of moving from php to java. The reason is not that we don't like php. Personally we would prefer to stay with php. But the main vendor that we use for a huge piece of software has a portal that is all java servlets. So it makes sense for us to extend that portal with java rather then some java/php hackjob.
 

Hyperblaze

Lifer
May 31, 2001
10,027
1
81
What is unfortunate about PHP is that it gets a bad rap.

For a few reasons
1) There are a lot of PHP applications out there which are poorly coded, doesn't look professionally well done (it's free, therefore a lot of folks use it, even kids. Kids who don't know how to code as well as others, you get where this is going?)
2) Some people put more faith in a language which cost money. PHP is free, therefore it cannot be as good as let's say....asp. (lamest argument i've heard yet)
3) PHP works best along with Linux, another free item (see number 2)
4) The PHP community isn't paid to help support PHP, but they'll do it for free, some people rather have paid support (old business way of thinking)

In conclusion, a lot of people do not like PHP due to psychological things.

My conclusion on PHP: There hasn't been anything so far that I haven't been able to build using it. I love using the language. Show me something technically bad about it?

 

drebo

Diamond Member
Feb 24, 2006
7,034
1
81
PHP is a fine language. You can do quite a bit with it and it's fairly well publicized.

However, from a development point of view, I much prefer ColdFusion. Application development is much more rapid, and I've found that ColdFusion is easier to use in a lot of instances.

That said, I still use PHP for a variety of things.
 

NiKeFiDO

Diamond Member
May 21, 2004
3,901
1
76
Personally, I am a PHP developer and know it's potential (especially with OS applications like Drupal, Magento Commerce, etc). PHP also has some kick ass frameworks (CodeIgniter is really easy to learn and has pretty decent documentation that's super easy to use - Zend framework has some real power behind it but is more complicated).

I tend to agree with Hyperblaze's view of PHP.

However, I have to say I really like ECMAScript languages like Java. Their style of OOP and . syntax (and really it's over all syntax) just makes more sense to me. (I love when ActionScript projects come my way :p ). Design patterns and OOP is FTW in my book.

RoR does a lot of cool things in terms of programming, but I don't have much experience with it so I can't really comment.

As far as I'm concerned, Coldfusion can DIAF (sorry drebo, just my opinion on the matter :p)
 

drebo

Diamond Member
Feb 24, 2006
7,034
1
81
Meh, it's a matter of taste. Personally, PHP was the first language I used in a production setting. Then, when I got my current job, I was introduced to ColdFusion (the company has been a ColdFusion shop since Allaire released it) and immediately realized that whatever I was doing in PHP could be done much more quickly in CFML. I still need to use PHP in my job (a lot more now that I've switched to product development and forcing customers to buy CF isn't really an option), and I still like it. But CFML is so much easier for 90% of everything that needs to be done on the web.
 

Woosta

Platinum Member
Mar 23, 2008
2,978
0
71
PHP is a horrible language, a shell of what it stole from ( Perl ). I would recommend Python for any modern developer looking getting into web development for nice, maintainable code especially with Django being available.
 

ivan2

Diamond Member
Mar 6, 2000
5,772
0
0
www.heatware.com
Originally posted by: sourceninja
There are a lot of midsized to very large corps using php. IBM, Bell, Mcaffee, SugerCRM, salesforce to name a few off the top of my head.

As for jsp not being able to do a whole website. That is not true at all. You can do anything with java that you can do with php. We are in the process of moving from php to java. The reason is not that we don't like php. Personally we would prefer to stay with php. But the main vendor that we use for a huge piece of software has a portal that is all java servlets. So it makes sense for us to extend that portal with java rather then some java/php hackjob.

u won't be writing the whole thing with just JSP for sure, more like the whole J2EE get up.
 

NiKeFiDO

Diamond Member
May 21, 2004
3,901
1
76
Originally posted by: Woosta
PHP is a horrible language, a shell of what it stole from ( Perl ). I would recommend Python for any modern developer looking getting into web development for nice, maintainable code especially with Django being available.

lol, don't let hyperblaze see this post :p
 

lozina

Lifer
Sep 10, 2001
11,711
8
81
If you want to learn a language that will earn you money and a good career, go with Java/JSP.

If you want to learn a language that makes you cool but forces you to get a second job to support yourself, go with PHP.
 

troytime

Golden Member
Jan 3, 2006
1,996
1
0
Originally posted by: lozina
If you want to learn a language that will earn you money and a good career, go with Java/JSP.

If you want to learn a language that makes you cool but forces you to get a second job to support yourself, go with PHP.

wow. i guess all the php developers I know are WAY overpayed. They better sell their BMWs before the rest of the world realizes that PHP doesn't pay.
They'll learn Java/JSP and will be able to live lives of luxory again soon. Thanks for the heads up.
 

Hyperblaze

Lifer
May 31, 2001
10,027
1
81
Originally posted by: NiKeFiDO
Originally posted by: Woosta
PHP is a horrible language, a shell of what it stole from ( Perl ). I would recommend Python for any modern developer looking getting into web development for nice, maintainable code especially with Django being available.

lol, don't let hyperblaze see this post :p

meh. Everyone has a right to their own opinion.

I tend to disagree strongly on the perl part. PHP has a lot of syntax from C/C++

By the way, saying PHP is a horrible language without specifying why or provide examples is not going to give your statement any validity.
 

Hyperblaze

Lifer
May 31, 2001
10,027
1
81
Originally posted by: lozina
If you want to learn a language that will earn you money and a good career, go with Java/JSP.

If you want to learn a language that makes you cool but forces you to get a second job to support yourself, go with PHP.

if that's the case where you live, you need to move elsewhere. There are lots of high playing PHP positions out there.
 

Hyperblaze

Lifer
May 31, 2001
10,027
1
81
Originally posted by: NiKeFiDO
Personally, I am a PHP developer and know it's potential (especially with OS applications like Drupal, Magento Commerce, etc). PHP also has some kick ass frameworks (CodeIgniter is really easy to learn and has pretty decent documentation that's super easy to use - Zend framework has some real power behind it but is more complicated).

I tend to agree with Hyperblaze's view of PHP.

However, I have to say I really like ECMAScript languages like Java. Their style of OOP and . syntax (and really it's over all syntax) just makes more sense to me. (I love when ActionScript projects come my way :p ). Design patterns and OOP is FTW in my book.

RoR does a lot of cool things in terms of programming, but I don't have much experience with it so I can't really comment.

As far as I'm concerned, Coldfusion can DIAF (sorry drebo, just my opinion on the matter :p)

Have you coded any applications using OO PHP?

 

ahurtt

Diamond Member
Feb 1, 2001
4,283
0
0
Originally posted by: ivan2
you can write a whole website with just PHP, but you can't do that with just JSP, i guess that's their main difference.

nonsense.
 

Hyperblaze

Lifer
May 31, 2001
10,027
1
81
Originally posted by: ahurtt
Originally posted by: ivan2
you can write a whole website with just PHP, but you can't do that with just JSP, i guess that's their main difference.

nonsense.

well you can...but it won't have much functionality....
 

polarbear6

Golden Member
Jul 14, 2008
1,161
1
0
Originally posted by: Hyperblaze

1) There are a lot of PHP applications out there which are poorly coded, doesn't look professionally well done (it's free, therefore a lot of folks use it, even kids. Kids who don't know how to code as well as others, you get where this is going?) .


hyper blaze how dare u say kids dont how to code :p
i have coding php since i was 14 now iam 17 :p(i think php but i surely have been coding in some or the other language since 14 and iam not alone i have a ton load of friends who been coding since childhood)
take ur word back

this is my site which i coded when i was 15 ish ~ 16 ish
MY SITE
 

Hyperblaze

Lifer
May 31, 2001
10,027
1
81
Originally posted by: ganesh1
Originally posted by: Hyperblaze

1) There are a lot of PHP applications out there which are poorly coded, doesn't look professionally well done (it's free, therefore a lot of folks use it, even kids. Kids who don't know how to code as well as others, you get where this is going?) .


hyper blaze how dare u say kids dont how to code :p
i have coding php since i was 14 now iam 17 :p(i think php but i surely have been coding in some or the other language since 14 and iam not alone i have a ton load of friends who been coding since childhood)
take ur word back

this is my site which i coded when i was 15 ish ~ 16 ish
MY SITE

geesh...taking things so personally are we? :D

i'm sure at 14 your code wasn't stellar. Mine sure as hell wasn't

It wasn't until I was in my 20s that my code flow drastically improved (C/C++)

Also took me a few years before my PHP was "decent".

PS: Thanks for showing me a site which isn't resolving.

Also, going to a site tells me nothing of code flow.