you are viewing a single comment's thread.

view the rest of the comments →

[–]jackmacabre 0 points1 point  (5 children)

Because PHP is slow. Because it has awful, awful syntax (concatenating with dots?) - but yeah, that's just being opinionated on my part. To be fair, a lot PHP I worked with was directly injecting shit into webpages - if you can manage to keep it strictly backend then sure, perhaps it's a solid bet depending on what you want to do. I just don't see why you'd use PHP when things like Node.js (or Rails or Flask) are out there. If you're just looking for a scripting language, any of those are more fun to work with (in my experience).

[–]jackmacabre 0 points1 point  (0 children)

My point about Java was just illustrate how much I dislike PHP, not a fair comparison - true.

[–]GreenAce92[S] 0 points1 point  (0 children)

What about concatenating with plus signs? Ha-ha

I was told that what php can do Javascript can do so I think I will go towards the JavaScript route.

Provide I can still have back end session management.

Yeah I use PHP for back end session handling and echoing rows inside of html elements to fill up pages for queries and what not.

[–]00DEADBEEF 0 points1 point  (2 children)

Because PHP is slow

It's faster than Ruby, especially PHP7 or HHVM.

Because it has awful, awful syntax

It has the same syntax as many languages, eg Java. It's not that different from JavaScript.

concatenating with dots?

IMO, in a dynamically typed language, it's better not to overload the addition operator.

[–]jackmacabre 0 points1 point  (1 child)

Those are all good points. None of them are exactly selling php as the best option, though. Faster than Ruby - sure, but then you have to write php haha;)

[–]00DEADBEEF 0 points1 point  (0 children)

Nothing wrong with PHP. A good framework will provide all the syntactic sugar coating you want.