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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Web Developers Cookbook Question

Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Robin -

Being a long time Java developer I am looking for a change, a new technology to add to my arsenal and I have heard some great things about PHP. How do you see the see the transition form Java to PHP? One would think it would be easier to pick up and master and it could be learned in a short amount of time. What do you vision being the most challenging thing to grasp with PHP coming form Java?

Thanks for taking the time to answer my question!

Posts: 48
Android Eclipse IDE PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my view if you are competent with Java you'll have little difficulty with PHP. It's also a language based on C-style syntax, and it also supports OOP.

If you are new to PHP then my cookbook could help you quickly get up to speed as it comes with thousands of lines of code you can draw on and learn from.
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Same pinch I am also a Java/J2EE developer switched to PHP recently.

It is indeed very easy and simple You can easily learn PHP and you can do many more things in an easy way. You should NOT compare the things with Java PHP has its own concepts and syntax.
Ranch Hand
Posts: 71
PHP Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The biggest adjustment that I have is the loss of JSTL and the separation of back-end servlet code from UI JSP code. In my JSPs I have NO server-side scripting. I use only tags and pass data from the servlet to the JSP using JavaBeans. While I can somewhat simulate that in PHP, it isn't quite the same.

Then the complex data structures can get somehwat complicated. But there are tools/functions built in that let you dump such things in a semi-readable way. Makes for really ugly web pages but at least you can see that data being passed around to figure out why your code isn't working the way you expected.

Fianlly, command completion in Java IDEs has crippled me - I can no longer function without it. The PHP IDEs sometimes have a hard time at guessing the data type and thus the command completion doesn't always work.
We find this kind of rampant individuality very disturbing. But not this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic