Live data from Hacker News

I still love PHP and JavaScript

the.scapegoat.dev

201–210 of 402 posts

Re: I still love PHP and JavaScript

#201

I love other devs shitting on PHP in my area. The more PHP work they forgo, the better for me. Less guys doing it, always in demand. Making good bank and am quite good at using it.

there's still thousands of low quality entry level devs that will always be there to drag down the salary range for you, don't you worry that

Re: I still love PHP and JavaScript

#202

I kinda like js but hate php with passion. Having said that php has one really very big thing going for it - people who use it are simply addicted to getting things done.

> Having said that php has one really very big thing going for it - people who use it are simply addicted to getting things done.

does that mean every other language the people don't get anything done?

Re: I still love PHP and JavaScript

#203

Earlier quoted context omitted.

I often get called in to fix things which are horribly broken.

That's a funny way of spelling job security

job security in software development isn't a problem especially since the pandemic started, if you're working on crappy code its because you're choosing to at this point

Re: I still love PHP and JavaScript

#204
Loved everything about this. Excellent read.

Anyone have a suggestion on a good resource for making my first PHP backend?

Search results have felt a little messy / all over the place in the past...

Re: I still love PHP and JavaScript

#205
post #181
post #149

Earlier quoted context omitted.

Python covers many of the same use cases and is much more consistent/predictable. TCL if you want to go back a bit further.

With Python one never knows when a particular feature code depends on will be removed. With PHP code written 15 years ago still works.

> With PHP code written 15 years ago still works.

If you never upgrade, sure. PHP 7 and each minor version in it have deprecated and removed plenty of stuff that was legal in 5.6. PHP 8 is on track to do more of the same. I think the backwards incompatible changes are pretty much all good for the language, but claiming backwards compatibility in PHP is completely wrong.

If you aren't on PHP 8, you aren't supported, and if you're on anything earlier than 7.4, you aren't getting security releases. And the new versions released yearly all have breaking changes, and get three years of security support. It's not 2015 anymore.

Re: I still love PHP and JavaScript

#206
post #4

PHP has so many hidden benefits: - it's stateless by design (much easier to scale) - it was "serverless" before Serverless - surprisingly performant - no "unknown unknowns". it's so tried-and-true, there's no surprises - deployment is so simple, just drop a file on a web server. No middleware needed. - No long compile times because there is no compiling needed. EDIT: why the downvotes? If you don't agree, just reply…

agreed reminds me of nomadlist and the sort of php philosophy of I wanted some function so with 1 php flat file I made a sort of website with app like behavior. If anything is this not programming to the masses? PHP PHP! :p

Re: I still love PHP and JavaScript

#207
post #128

Earlier quoted context omitted.

"No reason", at all? Have you seen how much standardized legwork is done with a backend framework like Rails and Django? How much easier that is to work with other developers because everyone is following known conventions? With Django, there's also the huge benefit of millions of data libraries an import away. When I search for client libraries to do something, anything under the sun has a Python client. Much much l…

> Have you seen how much standardized legwork is done with a backend framework like Rails and Django? How much easier that is to work with other developers because everyone is following known conventions? How is Django different from, say, ASP.Net Core in that respect?

It's not imo but ASP.NET MVC is uniquely good among frameworks for statically typed languages. Java, Go, etc don't have anything comparable.

Re: I still love PHP and JavaScript

#208
post #87
post #33

Earlier quoted context omitted.

> - no "unknown unknowns". it's so tried-and-true, there's no surprises This part is laughable. People who have been programming PHP for 20 years (several of them at my company) still routinely discover hidden bugs, quirks or general behavior that is totally unintuitive and nowhere found in the documentation.

But genuine question -- what other languages are as simultaneously as useful AND predictable?

Ruby, Python, C#, Java, and JavaScript are all are more predictable and just as useful. Go, Elixir, Clojure, and probably others are more predictable while being less "useful" only in the sense that they may have less convenient deployments or less mature web libraries.

Re: I still love PHP and JavaScript

#209
post #96

> I love legacy codebases. > A legacy codebase means that the product is performing well. It means that I can often make immediate and impactful improvements. Wow. This person must have worked on very different legacy codebases than me. Legacy Javascript code, to me, is something that I do not want to touch with a 10 foot pole, because every little piece of it can be intertwined with and used by many other hidden pla…

Everything you say is well and good, but the businesses with the legacy codebase (PHP or Javascript) are still trying to pay someone to work on their systems, and quite frankly, their money is the same shade of green.

Their culture is different though. Prepare to fight for every minor technical improvement.

Re: I still love PHP and JavaScript

#210

> I love legacy codebases. > A legacy codebase means that the product is performing well. It means that I can often make immediate and impactful improvements. Wow. This person must have worked on very different legacy codebases than me. Legacy Javascript code, to me, is something that I do not want to touch with a 10 foot pole, because every little piece of it can be intertwined with and used by many other hidden pla…

> never found a legacy JS codebase that has a robust test suite, so any refactoring I do can be hard to test and verify. Wouldn't you just... make a test suite?

> just

Not sure if sarcasm or serious.

Post reply on HN