Hacker News new | past | comments | ask | show | jobs | submit login

> "not necessarily better or worse"

I don't agree with that. Sure, comparing something from completely different domains (for example, SQL and HTML) doesn't make sense. However, for some languages (e.g. C#/Java, Python/Ruby, etc.) it is entirely possible to compare them and point out which is better in some aspects or worse in others.

What I'm saying is that Javascript and PHP are comparable (now that node.js exists and it's possible to write server-side javascript), however, I don't see much advantage over PHP other than being more trendy.




Well, probably the biggest difference is npm... A great package manager makes things easier to create and use as independent modules. PHP has frameworks, but these are a bit cumbersome.

JavaScript even with the bad parts is still more consistent and friendly to use than the core methods within PHP, inconsistent naming structures, parameter ordering and a lot of other issues at the language level.

I've NEVER liked PHP as a language... and that stems from VERY early on in web development. I've used a number of platforms and languages over the years, and none have irked me nearly as much as PHP has.


> Well, probably the biggest difference is npm

composer is PHP's version.

Not "frameworks".


I was referring to frameworks for creating modular code in PHP.. not a package manager called "frameworks"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: