(no title)
commanderkeen08 | 4 years ago
Nobody can tell me why PHP is “bad” or what Python does that PHP can’t. Inconsistent params are the only argument I’ve heard. Which my IDE solves. What about JavaScript splice vs slice. I look it up every time.
Hasu|4 years ago
Personally, I can't stand writing PHP, because, sure, I can write secure, testable, safe code in any language, including PHP, but, how do I say this, PHP is the only language that feels actively hostile to my attempts to do so. The house style at my current company could be boiled down to "Check 3 times that there are no PHP footguns present in this code. We have been burned before." The developer experience and tooling is far behind comparable languages. I feel like I have to put my sysadmin hat on to fix anything that goes wrong with my environment.
When I write Javascript or Python, I have complaints and issues, but I enjoy writing code. I think PHP, for many programmers, including myself, is just a hostile and unenjoyable experience. If you enjoy writing PHP, I have nothing against you and am certain you will remain employable, there's a lot of PHP out there.
> Honest question: what are people using if not PHP? Node? Python? The 80% of us who aren’t FAANG and are writing CRUD apps.
Python, Node, Java, .NET, Ruby. MVC CRUD apps are pretty similar in all of these (also in PHP). All of those languages (including PHP) power many many many software companies (including FAANG, who use a lot of Java and C++, and Facebook famously was built on PHP).
hnarn|4 years ago
Surely JS has at least an equal amount of foot-guns to PHP. I mean, at least PHP (to my knowledge) never had a meta-language written around it that compiles to PHP to make it safer.
tored|4 years ago
tored|4 years ago
This is important
This is not importantemodendroket|4 years ago
francislavoie|4 years ago
ipaddr|4 years ago
sam_goody|4 years ago
They have trouble grokking that there is a method of dev in which the server is not the language parser, so all other languages feel like a wrong step.
Here on HN someone just asked why anyone would write in anything except JS [1].
Now, Node has it's advantages, and so does PHP. My personal preference is PHP. But in mindset, Node is far ahead of anyhere that Rails or Django ever got in their respective waves.
[1]: https://news.ycombinator.com/item?id=29321426
equinoxmist|4 years ago
Static typing, concurrency, blazing fast, single binary.
nicce|4 years ago
ipaddr|4 years ago