News for hackers. Stuff that matters.
[dead]
Re:The self-hating web developer by justuk on Sunday July 19, 2015 @07:28AM (#9910849)
PHP is perfect for newbies. It's flexible. Has lots of functions built in. Several mature frameworks available. It's in active development. Hugely popular so lots of people to ask. Easy to set up a dev environment. No need to learn server admin as almost all hosting services supports it. I could go on and on.
Re:The self-hating web developer by Udo on Sunday July 19, 2015 @09:41AM (#9911156)
As someone who did a lot (and still does some) server-side development in PHP, I disagree about the newbies part, I think it's deceptive.

Doing PHP right is challenging, and for bigger apps it requires more insight into the internals of the server and the client than, say, a comparable application written for Ruby on Rails. PHP certainly gives you enough rope to hang yourself, and while I personally do enjoy the length of rope it gives me, it's also very clear that newbies have no chance of making the right decisions given this tool.

Re:The self-hating web developer by sillygeese on Sunday July 19, 2015 @11:35AM (#9911489)
It's certainly convenient for getting started, but I think he wants to say that the drawbacks of choosing PHP outweigh the benefits.

I started out with Java, moved on to Python, and now I'm using Clojure. Every language & ecosystem -combination is some sort of trade-off, but one could reasonably make the case that Clojure is the best trade-off currently available.

Whatever he does, he should not get stuck using PHP because there are much better tools available.

Re:The self-hating web developer by noir_lord on Sunday July 19, 2015 @07:51AM (#9910898)
I don't think you are going to change his mind, he seems very set on it.
Re:The self-hating web developer by lowmagnet on Sunday July 19, 2015 @08:11AM (#9910934)
Php is still a super effective lever for people starting out. It has some really bad technical warts but it has the shortest path to "shit's on screen" amongst web-based scripting languages.

I may not like it, but it has its place.

Re:The self-hating web developer by imakesnowflakes on Sunday July 19, 2015 @09:09AM (#9911075)
>but it has the shortest path to "shit's on screen" amongst web-based scripting languages

Let us see. You follow the shortest path to make a service/web app. I use your service/app. You get hacked. (By the way, has the php community yet have a clue how the php.net site got hacked, like, I don't know, 2 years back?), I am fucked.

Who wins?

Instead, what if you put in the effort to actually educate yourself about the stuff you need to know before you put a service online? What if you actually use a language that is not a complete mine field. What if you actually use a language that will actually tell you that you are wrong, right to your face, instead of conveniently working half of the time?

And the funny thing is that it is not even the shortest path to "shit on screen". Check out how easy it is in python to put stuff on screen

http://flask.pocoo.org/

The worst thing right now is people who are actually promoting php to new comers! My earlier comment was removed from here, because I told not to start programming careers with PHP.

[dead]
Re:The self-hating web developer by dang on Sunday July 19, 2015 @03:52PM (#9912586)
Personal attacks are not allowed on Hacker News, no matter how thick-headed someone else may seem.