Live data from Hacker News

An Internet of PHP

timotijhof.net

141–150 of 333 posts

Re: An Internet of PHP

#141
post #10

Earlier quoted context omitted.

> You wouldn't pick it for your job interview's coding test if you had a choice (Python all the way there), I do actually pick it for several reasons. 1. I want to know if the environment I am going into is pragmatic about languages. If you are going to refuse to continue working with me over something so minor as PHP then we aren't a culture fit. 2. I want to showcase my best. I know this language in and out. It's t…

Not to nitpick but choosing a programming language isn't a minor decision nor is switching programming style, e.g. OOB vs FP. Of course I agree with the intend and I too want to work in pragmatic and explorative programming environments trying out different programming languages and styles depending on the project.

>Not to nitpick but choosing a programming language isn't a minor decision

In the grand scheme of things, talking solely about software projects not life in general, it kind of is.

Most modern languages, are interchangeable, and projects of most kinds have been done with all of them succesfully.

As long as the programmers for the chosen language are available, and the libs you want are there, for startups doing some web backend for example, it doesn't really matter if it's Python, Ruby, JS/Node, PHP, C#, Go, Java, CL, Kotlin, Clojure, and so on.

Re: An Internet of PHP

#142

php runs securely in 5minutes in any web server 3-10$/month. Every other tech, it's complicated servers or complicated billing, not to mention depencies and build tools. thats why php

Well it's not exactly secure by default. I was deploying an app to a new server and some bot grabbed my .env file before I finished the Apache config. Ultimately it's my own stupidity, but you don't have to worry about that with most other languages

You shouldn't deploy .env files to production. You should set the actual environment variables on production. .env files are intended for convenience on non-prod systems.

Re: An Internet of PHP

#143
post #119

As an ex-PHP developer (almost 10 years now), I do not miss it. As a language, it is a scripting language with an okay interpreter. But as an eco-system, it is a hot mess. It has both the worst software developers (and I was one of them) as well as the worst clients (and the cheapest, regardless of geography). It is not a surprise that PHP is running the web. That's because WordPress made sites/e-commerce accessible…

PHP was the Visual Basic 6 for web. People without proper training and theoretical knowledge just went and did stuff.

Re: An Internet of PHP

#144

From php.net home page: « PHP 8.2 is a major update of the PHP language.It contains many new features, including readonly classes, null, false, and true as stand-alone types,… » That says all for me. Doesn’t matter if it powers half the web. It’s an awful programming language.

Can you explain why you think it’s an awful language? It definitely used to be lacking in features, but the improvements in the recent versions have been great.

Re: An Internet of PHP

#145
For those of you who are proponents of other web ecosystems, I’m curious what benefits you enjoy? What framework or language do you use and what makes it great?

I use PHP everyday but we definitely have a lot to learn from others.

Re: An Internet of PHP

#146

Earlier quoted context omitted.

There's a lot and hate of criticism of PHP out there, so some praise and sane opinions are nice to balance it out.

Hate almost always comes from people who haven't used PHP in a very long time or touched it briefly at some point. Fanboyism serves no purpose. Experienced developers understand that programming languages are just tools each with their own trade-offs.

A good programmer doesn't really care about the langage itself, but rather whether the language is the right tool for the job.

For example, Erlang is painful to adapt to, but in some cases (example: if you build a Messenger app) it will be the best.

It doesn't mean that Erlang is a bad language at all, it is designed for a main purpose in mind.

It's normal to see junior developers and low-quality packages in PHP, JavaScript, Java or Python, it's because these languages are well-documented and rather accessible.

There is no point in making a language needlessly complex.

Re: An Internet of PHP

#148
post #146

Earlier quoted context omitted.

Hate almost always comes from people who haven't used PHP in a very long time or touched it briefly at some point. Fanboyism serves no purpose. Experienced developers understand that programming languages are just tools each with their own trade-offs.

A good programmer doesn't really care about the langage itself, but rather whether the language is the right tool for the job. For example, Erlang is painful to adapt to, but in some cases (example: if you build a Messenger app) it will be the best. It doesn't mean that Erlang is a bad language at all, it is designed for a main purpose in mind. It's normal to see junior developers and low-quality packages in PHP, Jav…

It's not any different to my point. You can use a hammer to hammer in a screw it doesn't make it fit for the job but it will work up to a certain extend. Similarly you can make a messenger app in PHP but you are better off using Erlang or maybe Node.

Re: An Internet of PHP

#150
post #52

Earlier quoted context omitted.

You mean like hating MS for putting ads in the OS? MS didn't change, they still exploit as much as they can. And they try to force people people into the cloud unable to secure their own software stack. MS didn't get better just because Google got worse.

Don't forget that now Microsoft ♥ Linux

I'd much prefer the previous one that hates Linux but actually gives me a usable OS & tooling without ads or other user-hostility.
Post reply on HN