Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Web Developers Cookbook Question

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!

Brett
 
Author
Posts: 48
Android Eclipse IDE PHP
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic