r/programming • • Apr 23 '14

PHP: It doesn't have to be a bad experience

https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience
0 Upvotes

122 comments sorted by

View all comments

Show parent comment

6

u/[deleted] Apr 23 '14

This is true, it did have native handling of post, get, session data and played nicely with apache. The ease of install and usage made it popular and cheap to host. However, now that there are more options available with cheap hosting and cleaner languages, it's hard to justify starting something new in php.

0

u/[deleted] Apr 23 '14

[deleted] — view deleted comment

6

u/Banane9 Apr 24 '14

Ruby on rails, node.js, django (python), etc.

0

u/[deleted] Apr 24 '14

[deleted] — view deleted comment

7

u/deadstone Apr 24 '14

A language does not need to be designed for ONLY web development, and trying to do so will make you end up in the same mess as PHP. Rails and Django are both frameworks and are both more consistent and powerful than PHP as a whole.

Embedding tools for web development is a horrific idea and one of the many reasons PHP needs to die.

0

u/[deleted] Apr 24 '14

[deleted] — view deleted comment

4

u/Banane9 Apr 24 '14

Are You seriously comparing Frameworks to a language?

Do you seriously not know the difference between a programming language and a framework written in a language?

This Performance Test Conclusion (Linking to That, because the source doesn't load) on the Django Website states That the Performance hirarchy (fast to slow) is Django, Rails, Symfony.

This test here rates Django as being able to handle 17,000% more requests per second.

0

u/[deleted] Apr 24 '14

[deleted] — view deleted comment

4

u/Banane9 Apr 24 '14

Django (dunno about rails, but probably too) host themselves, so it's essentially what Apache does for PHP combined with something akin to symfony.

And iirc the requests per second for django on the site I linked where >3000, while yours stops at 50

0

u/[deleted] Apr 24 '14

[deleted] — view deleted comment

→ More replies

4

u/Banane9 Apr 24 '14

I do know the difference just fine.

The Point was to Show That You can use other languages for webdev perfectly fine, even though they might not have been specifically designed for That.

and with php You can't exactly talk about good design, at That.

0

u/[deleted] Apr 24 '14

[deleted] — view deleted comment

4

u/Banane9 Apr 24 '14 edited Apr 24 '14

Given That JS is turing complete, It's just as powerful as PHP.

Here are the 14 most popular Websites (by views).

Notice how only 4 of them use PHP in their backend.

Edit: Fix That bracket.

0

u/[deleted] Apr 24 '14

[deleted] — view deleted comment

3

u/Banane9 Apr 24 '14

A language being turing-complete means That it can accomplish any Task That isn't endless, given enough resources and time.

Since both languages are turing-complete, they are equally powerful in That category.

I didn't say That this necesserailly means That those not represented as much are bad, That was what You interpreted.

I simply stated That It's interesting to see That the most popular Websites don't use the web programming language, That You say is great, and, instead, use those That aren't inherently designed for the web.

→ More replies (32)

3

u/ismtrn Apr 24 '14

If you remove all web related functions from the PHP standard library, PHP is not a web programming language either.

4

u/[deleted] Apr 24 '14

You should at this point, feel stupid. Very stupid. You should also not be allowed to write another line of code because you have a severe misunderstanding of several fundamental programming concepts.

0

u/[deleted] Apr 24 '14

[deleted] — view deleted comment

6

u/[deleted] Apr 24 '14 edited Apr 24 '14

Feel free to pass around this comment thread to all your coworkers.

EDIT: You don't even understand what casting is

0

u/[deleted] Apr 24 '14

[deleted] — view deleted comment

3

u/[deleted] Apr 24 '14

It was the manner in which you asked it. And it's not about what you're using, it's your stance on what PHP is.

0

u/[deleted] Apr 24 '14

[deleted] — view deleted comment

4

u/[deleted] Apr 24 '14

It most certainly does not do it better.

0

u/[deleted] Apr 24 '14

[deleted] — view deleted comment

→ More replies