Welcome Guest, Not a member yet? Register   Sign In
How easy PHP is
#1

(This post was last modified: 07-28-2016, 10:54 PM by skunkbad.)

So this week I have officially been given the task to start making an Android app for the company I work for. If you've never done such a thing, Android seems like a strategy for Java programming. Holy moly, it's so different than PHP. I'm so glad I have a good grasp on PHP OOP, because it has really helped, but Java seems so much harder to get simple things done. 

For instance, in PHP we have file_get_contents(), which is usually a one liner for getting some sort of file contents, maybe even a URL. Try to do a simple HTTP GET request in Android/Java and you're talking about writing like 20 lines of code.

In PHP or HTML we can switch "pages" by simply linking up another file. In Android/Java this is a whole different concept, where you're just showing another "Activity" that you eventually quit to go back to the main "Activity".

Another thing that really takes some getting used to is that Java has checked and unchecked exceptions. In PHP exceptions are not something that you have to use, but can if you want to. In Java you can be forced to implement try-catch blocks. I can see how this is a good thing, but it's much more strict.

So the whole time I'm thinking how blessed we are to have PHP. It's just so so easy. I think I will always love it for being that way. I'm starting to like Java, but it sure is different. You can have classes inside classes in Java. It has no associative array like we are used to though, and that's a big bummer.
Reply


Messages In This Thread
How easy PHP is - by skunkbad - 07-28-2016, 10:44 PM
RE: How easy PHP is - by iridion2015 - 07-28-2016, 11:56 PM
RE: How easy PHP is - by iridion2015 - 07-29-2016, 12:14 AM
RE: How easy PHP is - by albertleao - 07-29-2016, 12:53 AM
RE: How easy PHP is - by iridion2015 - 07-29-2016, 02:47 AM
RE: How easy PHP is - by skunkbad - 07-29-2016, 06:41 AM
RE: How easy PHP is - by mwhitney - 07-29-2016, 09:25 AM
RE: How easy PHP is - by skunkbad - 07-29-2016, 12:50 PM
RE: How easy PHP is - by arma7x - 07-29-2016, 09:42 AM
RE: How easy PHP is - by marksman - 07-29-2016, 06:50 PM
RE: How easy PHP is - by Call-Me-Captain - 07-31-2016, 12:54 PM
RE: How easy PHP is - by albertleao - 07-31-2016, 01:54 PM
RE: How easy PHP is - by johnsmith - 09-16-2016, 08:47 AM
RE: How easy PHP is - by AmarInfotech - 09-21-2016, 01:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB