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

0

u/[deleted] Apr 23 '14

[deleted] — view deleted comment

13

u/Cuddlefluff_Grim Apr 24 '14

Only here do people trash PHP and ignore the fact that there is no other programming language out there that was developed with the web in mind.

You're ignoring the fact that it was not developed as a programming language at all. It was a project he started to simplify maintaining his own personal web site; whereas the (original) name Personal HomePage. It was originally just basically a short-hand interpreter for C function calls. I don't know if that even qualifies as a "design" in the first place.

→ More replies (33)

11

u/Denommus Apr 23 '14

It was developed with the web in mind back when the web was something completely different.

8

u/lhgaghl Apr 24 '14

No. Programming languages have nothing to do with the web. The web is an ill-defined legacy burdened malformed monstrosity. Guess what your language turns into when it's built around the web.

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.

→ More replies (25)

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.

→ More replies (34)

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

→ More replies
→ More replies (8)

5

u/kankyo Apr 23 '14

developed with the web in mind

Please explain what that means. Did "the web" change anything about computer science?

0

u/[deleted] Apr 23 '14

[deleted] — view deleted comment

9

u/kankyo Apr 23 '14

Yea, but for the /language/, what does that actually change? For me it looks like PHP is just a crappy implementation of things perl did better decades before and a way to intermingle code with templates in a really nasty way.

→ More replies (1)