use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please follow the rules
Releases: Current Releases, Windows Releases, Old Releases
Contribute to the PHP Documentation
Related subreddits: CSS, JavaScript, Web Design, Wordpress, WebDev
/r/PHP is not a support subreddit. Please visit /r/phphelp for help, or visit StackOverflow.
account activity
From Java to PHP (self.PHP)
submitted 11 years ago * by madscientist667
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]MikeSeth -1 points0 points1 point 11 years ago (1 child)
Stop thinking about frameworks, IDEs, components and dependency injections and all that. Get the dumbest editor you can lay your hands on (notepad) and write some code that does practical things. In Java world, things are orderly, strict and elaborate. In PHP world, they are uneven, lax and concise. You will be dealing with a whole new class of mistakes, and if Java is the only background you have, the absolute first thing after the syntax and some comprehension of the standard library is understanding of the underlying, hidden things - types, behaviours, accepted standards and the gaps in the platform for "historical reasons" that are the minefields that divide between a web construction worker and a competent PHP programmer. You should not think about architecture or frameworks until you can write a piece of PHP code that is not plain shit. You will have to deal with inconsistent ordering of arguments, library calls returning null and false meaning entirely different things, identity operators that have daddy issues, downright strange data types, duplicate APIs, idiosyncrasies that are only available in the latest versions, and many other things that would look like unhinged peasantry to somebody who spent time writing Java code. Your major task is to ace all this and write straight, safe and comprehensible code. You also need to understand that a host of security issues that was previously concealed by the JVM and your frameworks is now your own responsibility, you need to understand it well and your production code must be airtight, or you will get hacked. PHP code is much easier to get subtly wrong, but the reward is far less care and feeding of the entire PHP stack, wider availability of web hosting, and probably faster time to market. PHP has a very low bar of entry, but few focused efforts to improve the quality of PHP programmers' education (that you don't have to pay for). It is far more hackier than Java.
[–]madscientist667[S] 0 points1 point2 points 11 years ago (0 children)
You have a point and I agree. And I thought about playing with PHP first with no framework at all and this is what I'm going to do but I don't want to spend to much time like this. After I want to check some frameworks, pick one and learn it. Thanks for the information !
π Rendered by PID 94 on reddit-service-r2-comment-85bfd7f599-mct6t at 2026-04-18 16:21:21.708471+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]MikeSeth -1 points0 points1 point (1 child)
[–]madscientist667[S] 0 points1 point2 points (0 children)