Live data from Hacker News

Go with PHP

gowithphp.com

21–30 of 532 posts

Re: Go with PHP

#21
I used to refresh nettuts.com obsessively in high-school and Jeffrey Way's PHP content was the highlight.

Sadly the site got a refresh ages ago and is nothing like it used to be.

Anyway, if you're reading this thread, thanks Jeff!

Re: Go with PHP

#22
> It can handle more than 500,000 orders per month

How many seconds in a month? 60 * 60 * 24 * 28 = 2,419,200.

So basically, its performance is at least 0.2 requests a second...

Re: Go with PHP

#23
post #17

As a fullstack developer who has worked many, many years in the javascript hellhole, I mean ecosystem, as well as the python ecosystem and .NET; coming back to PHP the last 2 years, working essentially in Laravel and the like - I couldn't approve more of this message. Seriously, PHP is the grand father that will drive you to class and you'll never be late, the car will never smell and everything will always just be f…

There's javascript in the back. And there's javascript in the front. Curious what you use for application development on the frontend and if you have some recommendations for that?

Thanks in advance!

Re: Go with PHP

#24
I'm in the group described halfway down: was on the Internet during PHP 5, lost interest in it, and moved on [to Go]. I haven't written anything in PHP newer than version 5. Even transitioning from 4 to 5 was quite a big deal, I definitely noticed improvements.

But it wasn't enough.

I couldn't fit the data set in memory with PHP. But I could do it with Go.

I couldn't do parallel computations in PHP in order to respond to an HTTP request quickly enough. But I could do it with Go.

I couldn't reliably and easily deploy to different systems with PHP. But I could do it with Go.

Eventually, I couldn't write a web server with PHP. But I could do it with Go.

A lot of my early websites were written in PHP and I was able to build them quickly and routinely. I didn't really have a problem with PHP as a paradigm, or even its security and consistency posture. I'm glad they've since made an actual language spec and fixed a lot of issues with it. And I don't judge or look down on PHP programmers. I just don't think it was the right tool for my jobs.

Re: Go with PHP

#25
post #9
post #6

> Your website is automatically protected against XSS, session hijacking, CSRF, SQL injection, host header attacks, and other vulnerabilities. That's quite misleading however

Just made the same comment and deleted it seeing that you already stated it. Protecting against all of these is hard and no tech is going to automatically protect for all of this on its own. Such a weird statement to make that takes away from the message of the site entirely.

The code snippet is very Laravel, and it does a lot to stop all those attacks with that API.

Re: Go with PHP

#27
post #5

They’re not wrong… PHP7+ is blazing fast, has a huge library, gradual typing support, etc. If starting a new project in the space where they all “compete”, I would choose PHP7 or PHP8 with Laravel or Symfony (or maybe even WordPress) over Rails, Django and probably over NodeJS.

You lost me at WordPress haha...

Ive a lot of love for WP, but I don't really get the appeal of extending it past blogging... if you're doing anything more complicated it's pretty trivial to implement blogging functions in your site.

Re: Go with PHP

#28

> It can handle more than 500,000 orders per month How many seconds in a month? 60 * 60 * 24 * 28 = 2,419,200. So basically, its performance is at least 0.2 requests a second...

Yeah...

OTOH it makes a point that it solves a real problem. A business processing 500k orders a month is not trivial.

Post reply on HN