Live data from Hacker News

PHP needs a vision

news.php.net

61–70 of 182 posts

Re: PHP needs a vision

#61
post #58

Earlier quoted context omitted.

If this is the case, then maybe PHP's role is a rapid prototyping language which is replaced when the codebase gets to a certain size.

Generally that size is not more than about 5 files.

Yeah good one. Wordpress is a great example of a huge failure written in PHP over 5 files, right?

Re: PHP needs a vision

#62

I think PHP (5.x/6x) is still applicable to any developer, new or old, experienced or not. Many of us cut our teeth on PHP's simple scripting concepts, and that shouldn't change. And from what I've seen from past history, it won't. There is a tremendous amount of backwards compatibility in current versions of PHP that allows one to follow the same approach to Web development that those did back 10-15 years ago with P…

"Many of us cut our teeth on PHP's simple scripting concepts" -- The Gateway Drug :D

I went Perl -> PHP and have been there ever since. Not because I'm too lazy to learn another language, but because it has done everything that I have needed it to do, and when I found something that it couldn't, I looked elsewhere for that one aspect of the project.

Isn't it our role as developers to push the boundaries of our chosen language? I'm pretty sure back when Javascript was being thrown around, they wouldn't have imagined what it is today.

Trying not to sing praises, and throwing fuel on a fire that should have died a long time ago... To each their own.

Re: PHP needs a vision

#63
post #18
post #7

Earlier quoted context omitted.

Python has often been called an easy to learn language and a good first start because it tries to be easy to read. Does that mean that it is also a beginner's language that people eventually are supposed to move on from?

People who pickup Python will always stay and never move on completely. My programming carear startet with perl -> php -> python and i found one holy grail to solve most of my problems. Python had an easy entry point the same as PHP but when you jumped over the first learning curve and discovered the complete ecosystem it`s mindblowing. I never had that feeling with PHP you could do websites and thats it. And most of…

Python was my first language. Haskell is my #1 language right now, and I do Java professionally. There have been many between.

It's a nice language, but it's not for everyone.

Re: PHP needs a vision

#64
post #57

I come from a C++ background, and early last year tried my hand at web development. After hearing about all the stuff about how PHP was an "old", kludgey language, I tried to learn python, and go the webpy. It was doable, but I kept running into issues all the time. I gave up and switched to PHP, and I have to say that it was a much easier experience. For the most part, everything just worked. Regardless of how kludg…

PHP works fine as long as you're never exposed to a better way. In a year or two start using rails. You'll come back to PHP and wonder why anyone would ever make a hammer with two claws.

You're confusing a language with a framework.

A more apt comparison is rails with symfony2 or zend framework2.

Re: PHP needs a vision

#65
post #58

Earlier quoted context omitted.

Generally that size is not more than about 5 files.

Yeah good one. Wordpress is a great example of a huge failure written in PHP over 5 files, right?

Yes, it is a "good one." Wordpress' source looks like spaghetti with shit sauce. The fact that it runs is a testament to something, but not the readability, maintainability, or usability of the code base. Those people wouldn't know a well-designed API if, well, fill in the rest here.

Re: PHP needs a vision

#66

You want a vision? Here is one - make the mess we have at the moment work. I write in php for the better part of 4 years now and hate it every day. And I have written in c++ before that. Ask 20000 developers what are their main pain grievances sort them by "popularity" and just remove them one by one. For me it is the hard debugging, the include mess and the "extremely" creative ways parsing and runtime errors are co…

You seriously find PHP hard to debug? I wrote something that may help you : http://jtreminio.com/2012/07/xdebug-and-you-why-you-should-b...

Thanks to namespaces, PSR-0 and Composer, I no longer have to worry about "include mess". Use an autoloader, that's what it's for. If you're finding you have to include a file to access information in it, that tells me you're not testing your code.

The only error I've run across that gave me pause, for a second, was the T PAAMAYIM NEKUDOTAYIM. A quick, 5 second Google search gave me the information I needed.

Re: PHP needs a vision

#67

You want a vision? Here is one - make the mess we have at the moment work. I write in php for the better part of 4 years now and hate it every day. And I have written in c++ before that. Ask 20000 developers what are their main pain grievances sort them by "popularity" and just remove them one by one. For me it is the hard debugging, the include mess and the "extremely" creative ways parsing and runtime errors are co…

[deleted]

Re: PHP needs a vision

#68

You want a vision? Here is one - make the mess we have at the moment work. I write in php for the better part of 4 years now and hate it every day. And I have written in c++ before that. Ask 20000 developers what are their main pain grievances sort them by "popularity" and just remove them one by one. For me it is the hard debugging, the include mess and the "extremely" creative ways parsing and runtime errors are co…

[deleted]

Re: PHP needs a vision

#69

Earlier quoted context omitted.

It's not an "empty, non-contributing comment" to those of us who have had to use PHP, especially after years of using far better languages. It rings especially true to us who have seen the horror systems implemented in PHP can be.

I'm one of the "us" you mention, and in fact I'm still working with PHP. The comment added nothing to the discussion, and was still useless. I'm aware of the drawbacks of PHP. I look forward to a day when I'm no longer using it on a daily basis. But Tichy's comment added nothing to this discussion.

I think it clearly added a lot if it expresses his opinion, my opinion, and apparently even your opinion of PHP in a mere five words.

Re: PHP needs a vision

#70
post #49

Worthwhile reading the email that preceded it: http://news.php.net/php.internals/64763 The response hardly seems warranted. The vision is pretty stated there.

The response would seem warranted if you had been a participating member of the PHP internals list for any significant length of time. Stas is pretty well known for jumping into threads and completely derailing, and shooting things down with BS like "PHP is not Java, stop trying to make it into Java". The response is a culmination of a long time of watching him respond in such a fashion.

Stuff like this: http://marc.info/?l=php-internals&m=135083835232016&...

Sometimes he contributes to discussions in a very positive manner. But too often he degrades the discussion into BS rhetoric and greatly demoralizes contributors (I know I am not the only one to voice disdain, I may just be the first publicly)...

I guess you can say I just had enough...

Post reply on HN