Live data from Hacker News

PHP is worth learning and using

bulletproofphp.dev

291–300 of 468 posts

Re: PHP is worth learning and using

#291
post #258

You guys think a hell of a lot about your hammers It's a tool, use it or don't. Why do we have this weird slap fight every 2 months? It's so weird

Because we use our hammers 40 hours per week. If you use something that much it is perfectly normal to have opinions.

Re: PHP is worth learning and using

#292
post #98

Earlier quoted context omitted.

If you like PHP, great. Do you plan on creating a start-up that you intend to scale to a babillion customers? That you intend to hire teams of developers for? Probably not a good idea. Are you a new programmer trying to figure out which language to learn first? Absolutely not. Python, Java, JavaScript, C# are much more flexible if nothing else. Anybody who tries to convince new programmers to learn PHP is doing them…

Except Facebook literally did that :) But I agree with you.

Yep, almost 20 years ago and it's been both a technical and hiring problem for them ever since.

Re: PHP is worth learning and using

#293
post #180

As someone actually did (re)learn PHP (last time I used PHP was PHP4) last year for a gig, I would probably say no. Don't get me wrong, it is a much better language now and Laravel is a great framework. With the two you can no doubt build fantastic applications. But I didn't feel it was 'better' in any way than anything else. With Python, Go, Rust, Elixir, TypeScript etc. I can all point to a thing they do and say "i…

I had exactly the same experience. Yes, it has improved, but, no, I did not see any reason for using PHP over any other language (Ruby, Python, JS who all have their own selling points).

Re: PHP is worth learning and using

#294
post #123
post #98

Earlier quoted context omitted.

Except Facebook literally did that :) But I agree with you.

Wikipedia too. And probably many WordPress websites with a lot of traffic. If anything, PHP has proven it works in this regard.

Facebook and Wikipedia were both founded ~20 years ago, think they would make that same decision today?

PHP works, but imho starting a new company or career with PHP is a mistake.

Re: PHP is worth learning and using

#296
post #236

Earlier quoted context omitted.

It does, but it's mostly transparent to the user. I've never had to think about it when I was installing WordPress.

When you start on a minimal server installation setting up LAMP to the point that wordpress doesn't complain is just as much work as setting up RVM/Node and Passenger to run whatever language you want.

All shared hosts already come with LAMP pre-configured. You just plug already supplied credentials into the WordPress setup page and that's it.

Re: PHP is worth learning and using

#297

Earlier quoted context omitted.

I went on a rant, but didn't mean to. I don't have anything against PHP, it's got a valuable and relevant place on the the web. It's important to many people, and like you said you find it fun, which I think is important for our productivity as devs. However, I think this recurring misconceptions how easy PHP is to develop in needs to stop. PHP comes with a lot of complexities. Worst kind of complexity to learn: hidd…

One person’s complexity is another person’s valuable job skill. PHP and Apache aren’t hard to setup and configure if you know how it works.

I completely agree that being able to navigate an ecosystem's complexity is a skill.

I didn't mean to imply that other languages don't have complexities. All ecosystems come with their own boons and complexity issues (hidden or upfront). The thing I wanted to address is the general idea of "PHP is the simplest to develop in, it's just uploading a file" (paraphrasing) shouldn't be taken at face value, and that's why I pointed out some of the complexities when working with PHP that PHP developers tend to forget (or some ignore).

But, because PHP is so easy to get started with, a lot of the complexity initially gets hidden away, and sometimes people learn about it the hard way.

JavaScript used to be much the same, but it has gotten better in the recent years. Maybe PHP has gotten better in this aspect too, but I could be ignorant because I've not been keeping up with PHP as much

Re: PHP is worth learning and using

#298
post #43

Earlier quoted context omitted.

I haven’t used PHP in over a decade. I can never forgot how much PHP got wrong in terms of how application development on the internet would happen. The ergonomics of using it were just… bad compared to other frameworks that came on the market. I remember when rails came out and it was so mind blowing compared to PHP. The language was certainly useful for a time, and I’m sure the language has progressed since, but sw…

Comparing Rails to PHP is unfair given that one is a framework and one is a programming language. Compare PHP and Ruby or Rails and Laravel to keep things apples to apples and oranges to oranges.

A lot of people 10+ years ago were building websites by interpreting PHP and using the output as HTML. The language (at the time) seemed to encourage this. I agree that PHP is not a framework, but it seemed to have some opinion on how HTML was to be generated, which most languages don’t have. Also rails is 7 years older than Laravel, so my point still stands that PHP was behind the curve.

Re: PHP is worth learning and using

#300

Earlier quoted context omitted.

I used to believe this, but... But that's just not true. All the things you mentioned are a yum/apt/nix/pacman/ install away on Linux, and probably as simple to install on macOS. I'm sure Windows has installers for these, too. So, it's no harder to develop in them than it is in PHP. You could argue it's cheaper because you don't have to pay for a shared hosting provider to host your files. However that's a bit moot s…

If you don’t manage your own servers I don’t think you can call yourself a professional developer. “My hosting provider doesn’t let me do X” is a lame excuse with cloud servers in the $10/mo range. I do a lot of work with PHP, both legacy and new code. The number one mistake I see with PHP sites set up by amateurs or cheap hosting services is running Apache+PHP on the same server as MySQL or Postgres. Separate those…

[deleted]
Post reply on HN