News for hackers. Stuff that matters.
Re:Node.js and the new web front-end by 10098 on Monday October 07, 2013 @04:28PM (#6511013)
> I was never a fan of PHP

Interesting how the same people who are "not fans" of PHP somehow like Javascript. As if it's better.

Re:Node.js and the new web front-end by rmrfrmrf on Monday October 07, 2013 @04:47PM (#6511151)
I'm a fan of both PHP AND Javascript! Take that, haters!
Re:Node.js and the new web front-end by pessimizer on Monday October 07, 2013 @07:36PM (#6512058)
I can't stand either of them! Take that, people who make up rules about how the same people like and don't like stuff!
Re:Node.js and the new web front-end by rtfeldman on Monday October 07, 2013 @04:34PM (#6511056)
Considering there are an increasing number of designed-to-be-likable languages that compile to JS, it's about as close to objectively better as you can get.
Re:Node.js and the new web front-end by JPKab on Monday October 07, 2013 @04:50PM (#6511167)
While "better" is of course subjective in many, many ways, Javascript on V8 via Node is much faster in most computations: http://benchmarksgame.alioth.debian.org/u32/benchmark.php?te...

Obviously, performance isn't always a good reason to pick a language. I'm certainly not looking to write stuff in C, despite the performance benefits. Just pointing out that there are some solid reasons to prefer JS to PHP. ClojureScript alone is enough of a reason for me.

Re:Node.js and the new web front-end by Cyranix on Monday October 07, 2013 @04:35PM (#6511062)
Are you claiming to have an objective yardstick for comparing the goodness of languages? (Don't answer that.)

If not, please remember that different languages are just that -- different, not necessarily better or worse. Personal attitudes towards the differences between languages are totally normal. Bearing this in mind will help the conversation proceed in a more civil manner.

Re:Node.js and the new web front-end by 10098 on Monday October 07, 2013 @04:53PM (#6511188)
> "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.

Re:Node.js and the new web front-end by tracker1 on Monday October 07, 2013 @09:26PM (#6512434)
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.

Re:Node.js and the new web front-end by jasonlotito on Monday October 07, 2013 @11:40PM (#6512907)
> Well, probably the biggest difference is npm

composer is PHP's version.

Not "frameworks".

Re:Node.js and the new web front-end by tracker1 on Thursday October 10, 2013 @04:08AM (#6526300)
I was referring to frameworks for creating modular code in PHP.. not a package manager called "frameworks"