Live data from Hacker News

Go with PHP

gowithphp.com

311–320 of 532 posts

Re: Go with PHP

#311

Earlier quoted context omitted.

> It’s cool to see PHP getting its second heyday once again. It’s currently a perfect storm of two communities starting to notice PHP. Really? I see no evidence that this is happening

The Frontend / server less / JS ecosystem craziness and high rate of change has left a lot of devs disenchanted. High profile posts over bundlers, tailwind, and microservices set the scene. A few popular people on Twitter have been talking about Laravel which has influenced other devs. Wind is in Laravel's sails, not php's

[dead]

Re: Go with PHP

#312

Earlier quoted context omitted.

The Frontend / server less / JS ecosystem craziness and high rate of change has left a lot of devs disenchanted. High profile posts over bundlers, tailwind, and microservices set the scene. A few popular people on Twitter have been talking about Laravel which has influenced other devs. Wind is in Laravel's sails, not php's

PHP has never been replaced as the dominant scripting language for the web.

Almost every PHP site also uses JavaScript so I'd say not

Re: Go with PHP

#313
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

[flagged]

Re: Go with PHP

#314

The fact that you can build a whole app inside just one index.php file is highly underrated and I understand how newbies finding this out are getting excited. I remember when Rails first launched and I wanted to try it but it was so complicated to get started.

[flagged]

Re: Go with PHP

#315

Earlier quoted context omitted.

PHP has matured and has been a nice language for a decade now. But PHP developers havent. Cargo culting “good practice” and lack of creativity plagues the community. Frameworks have become so heavy that you spend more time configuring them than actually adding value. Oh and some still argue over setters and getters.

> PHP has matured and has been a nice language for a decade now. And how did it manage that? Python forced people to deal with encodings properly and the result was a lot of pain. You're claiming PHP somehow invisibly fixed the numerous problems of the language without anybody noticing? That "fractal of bad design" blog post, everything described in it has been fixed? If so I want to learn how they did it. That's som…

There are breaking changes from 4->5->7->(less so)8

This is why so many basic php web hosts continue to offer older php versions because the old code will not work and why paid projects like cloudlinux hardened php still exists. Just in the last 2 years they finally ended security support for php4 on the hardened php project.

So to explain how it worked, it wasn’t as sudden as python, but the problem areas have been depreciated and removed as php has evolved.

Re: Go with PHP

#316
post #93

Earlier quoted context omitted.

This 100%. It's actually a bit of a red flag to me these days if a developer turns up their nose at PHP. The language has matured a lot and building stuff with it is simple, cheap, straightforward and fast. If someone's still hating on PHP in 2023 it makes me wonder if they've been focused on more exotic technology because they were looking to pad their resume with more expensive skills, build science projects for th…

Don't you dare to tell me that my isomorphic Node trpc graphql with redux and sagas on top of next.js with SSG and SSR and parts in server components with my home grown validation and ORM framework and still no translations because they don't work together with everything else and deployed on serverless docker lambdas to a kubernetes cluster is over engineering a landing page with a contact form. So fast! That's a st…

Don’t forget to deploy all that code to the edge. Your $5 VPS in NY running both nginx and MySQL is going to be a huge bottle neck when somebody in Texas tries to view your simple website and it takes .10 seconds longer to load. You’re going to want that contact form code on at least 1,000 servers worldwide for maximum benefits and conversions.

Re: Go with PHP

#317
post #128

Earlier quoted context omitted.

You seem to know what you’re talking about. I checked out payloadcms though, that site is pretty terrible…

I am afraid that if you think that then there is no help.

Umm... are you serious? I could believe you perhaps with your criticism but then you say this is the future of web design?

The site you held up as the example I should emulate feels like some kind of terminal from the 80s movie "Hackers"... are we "hacking the gibson"?

It features white text on a black background, overlaid on animated white text on a black background...

Then you scroll down, and it has TEXT IN A GIANT SIZE going slowly across the screen..

Then it turns to white and has a video that doesn't fit

Then it has text of all different sizes, and code examples, which is irrelevant to most customers.

I am not making this up. It's literally here, I would invite anyone to look at these images and tell me whether this is unironically what I should make the Qbix site look like: https://imgur.com/a/IMT6pgB

Are you affiliated with that site or project?

Re: Go with PHP

#318

Earlier quoted context omitted.

Being able to host for free on dodgy free hosting is hardly a benefit anyone should care about.

You can throw it into lambda or vercel for that matter too. Yes you can use sketchy hosts but still can use legit ones too to host for free or very little money.

You can throw basically anything on lambda. That’s hardly a feature of php

Re: Go with PHP

#319
Why do most PHP related posts on HN read like repentance ? If you want to promote the language -to the point of buying a domain and making a webpage-, please show interesting stuff, not something that is equally trivial to solve in gazillions of web frameworks written in gazillions of languages.

Re: Go with PHP

#320
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…

The main reason I don't use PHP is because the browser doesn't.

Sooner or later I end up having to write Javascript and lots* of it. Therefore I use it across the board.

*where "lots" = logic that needs to exist on both client and server side

Post reply on HN