News for hackers. Stuff that matters.
Re:PHP in a JavaScript world by zer00eyz on Thursday August 27, 2015 @11:58AM (#10130181)
Wordpress, drupal, magento, phabricator, mediawiki, sugarcrm...

These are vastly popular, feature rich out of the box tools in PHP, aka the "killer apps".

As I don't follow the node community, what are the killer apps on the node side? Im talking about a complete piece of software, where I would want to set up an environment not for development but for running an application.

Re:PHP in a JavaScript world by joshuacc on Thursday August 27, 2015 @12:22PM (#10130339)
Personally, I'd say that the front-end tooling ecosystem constitutes the "killer app":

- Minification: Uglify

- Transpilation: Babel/TypeScript/CoffeeScript

- JS Module Systems: Require/Browserify/Webpack/JSPM

- CSS preprocessors: Less/Sass/Stylus

- Linting: JSHint/ESLint/CSSLint

If you're using a lot of front-end tools, you're using Node. And if you're using Node, you might as well use it to write your APIs.

Re:PHP in a JavaScript world by aikah on Thursday August 27, 2015 @01:24PM (#10130763)
These are not apps. And none of these are meant to run on a server like Wordpress. If you run less or babel compiler on production servers to serve CSS or JS well , you're not a serious developer.

Cloud9 I guess would be a good example of a killer app ,but that's no CMS.

The reason why there is no serious CMS with node is that nodejs development is extremely hard, because async programming is hard. No matter how much layers one puts on top of it (promises,generators...) you can't abstract async programming in nodejs.

Look at Go, Go routines can be totally abstracted. IF I write that code:

   result := Object.DoNonBlocking()
As a client of Object I don't have to know whether it is run concurrently, or not , or blocking or not. In node I have to know whether I returns a promise or a value , IE hump into the event loop or not.

PHP has its share of problems though,just like Go, but their concurrency model(or lack of) make things way more easy.

I can't imagine writing something such as Magento or Drupal in nodejs (with the exact same features). It would be just insane. A great challenge though.

Re:PHP in a JavaScript world by audessuscest on Thursday August 27, 2015 @12:25PM (#10130365)
That's not true for a simple reason : Many people who use these front-end tools, still use PHP to build website (like I do)
Re:PHP in a JavaScript world by joshuacc on Thursday August 27, 2015 @12:31PM (#10130402)
Sure. And lots of people that use Rails still use it to communicate with Java-based backend systems. That doesn't mean that Rails isn't Ruby's "killer app."
Re:PHP in a JavaScript world by audessuscest on Thursday August 27, 2015 @12:38PM (#10130471)
Sorry i wasn't clear. I don't deny these front tools are node's killer app (they obviously are). I deny it is enough to make node replace php.
Re:PHP in a JavaScript world by BrianDGLS on Thursday August 27, 2015 @12:27PM (#10130372)
I agree.

At this time Javascript's biggest strength is build tools. It may not be as mature as PHP on the server, but there is so much community growth that I don't think it will be long catching up.

Re:PHP in a JavaScript world by delta9 on Thursday August 27, 2015 @12:32PM (#10130421)
It's like saying PHP as a great community, we will catching up JAVA soon.. non sense, as the topic said, I want to use node if there are some killer app that I want to use, like the one I know in other languages. Do you know any like drupal for example (multilingual, workflow, content management system, and more) ?
Re:PHP in a JavaScript world by Daishiman on Thursday August 27, 2015 @12:59PM (#10130602)
On the contrary.

The fact that there's at least 4 "mainstream" build tools and their popularity changes every 6 months is a sign of an ecosystem with little stability that is no good to build a solid foundation.

On Ruby and Python land, how long has it been since RoR and Django have been the dominant players?

Re:PHP in a JavaScript world by mtberatwork on Thursday August 27, 2015 @12:50PM (#10130548)
> And if you're using Node, you might as well use it to write your APIs.

No, not when I have access to all kinds of other languages, frameworks, libraries, etc to choose from on the server side.

Re:PHP in a JavaScript world by scriptproof on Thursday August 27, 2015 @01:13PM (#10130688)
You are comparing Apples and Oranges, PHP is a language, Node is a platform. Actually, Node.js is the killer app for the JavaScript language, among others. Implementing Unreal engine in asm.js is another thing you can not imagine to make in PHP.
Re:PHP in a JavaScript world by zer00eyz on Thursday August 27, 2015 @01:20PM (#10130735)
Server side JS VS php, Node vs Zend engine would be cleaner semantics, but not perfect (nothing ever is)

Unreal engine in asm.js <<< this would be a "killer app" for the platform as a whole.

Re:PHP in a JavaScript world by maratd on Thursday August 27, 2015 @12:22PM (#10130342)
PHP today is overwhelmingly being used to augment/modify:

> Wordpress, drupal, magento, phabricator, mediawiki, sugarcrm...

Very few apps are built from scratch using PHP unless the intention is to share the application code like wordpress, drupal, etc.

On Node, you're almost always building from scratch, rather than creating plugins for an existing application.

Apples and oranges. Different use cases.

Re:PHP in a JavaScript world by debaserab2 on Thursday August 27, 2015 @12:30PM (#10130398)
Very few? There's plenty of apps out there written in PHP. You can do the same thing in PHP as you can in node. Writing from scratch is no greater of a use case for using node than it is for PHP.
Re:PHP in a JavaScript world by maratd on Thursday August 27, 2015 @12:46PM (#10130521)
> There's plenty of apps out there written in PHP.

Yes, there are. I didn't say there weren't. I think PHP is great, relax.

In my professional experience, however, I don't see people start a codebase from scratch in PHP anymore. It's almost always based on Node.

Re:PHP in a JavaScript world by debaserab2 on Thursday August 27, 2015 @02:10PM (#10131036)
> Very few apps are built from scratch using PHP unless the intention is to share the application code like wordpress, drupal, etc.

Err.. that's exactly what you said, no?

Well, yeah, if you work in a shop where node is the goto solution on the server side, that's going to be your experience.

Re:PHP in a JavaScript world by Killswitch on Thursday August 27, 2015 @01:06PM (#10130647)
I disagree. Laravel is a huge community, and that's just a framework, lots of people writing things from scratch in PHP still.
Re:PHP in a JavaScript world by meritt on Thursday August 27, 2015 @12:59PM (#10130598)
There's plenty being built new on PHP today. Language allegiance is highly dependent upon age and location of the programmers in question.
Re:PHP in a JavaScript world by audessuscest on Thursday August 27, 2015 @12:32PM (#10130419)
well, most node apps rely on many node lib, which is not very different than relying on a framework like symfony.
Re:PHP in a JavaScript world by untog on Thursday August 27, 2015 @01:16PM (#10130713)
what are the killer apps on the node side

There aren't any, really. Coupled with NPM it's great for building your own platform with custom requirements, but if you want to spin up an instance of something that already gets you 90% of the way there, PHP is a better choice.

Re:PHP in a JavaScript world by sonnyp on Thursday August 27, 2015 @12:19PM (#10130315)
Re:PHP in a JavaScript world by audessuscest on Thursday August 27, 2015 @12:22PM (#10130340)
https://news.ycombinator.com/item?id=10127715

"I will be honest. I use ghost as my blogging platform for about a year, and in comparison to wordpress... it just doesn't hold up. Everything from stuff as big as upgrading, mid range as plugins, and even simple things like spell check were overlooked (at least in the version I have). It kind of reminds me of the Pepsi Vs. Coke test. Went to it for that initial appeal of simplicity.. and now am very dissatisfied due to how much its lacking."

Re:PHP in a JavaScript world by mellett68 on Thursday August 27, 2015 @12:35PM (#10130448)
I agree from my experience with Ghost but attribute it to being a young platform.
Re:PHP in a JavaScript world by delta9 on Thursday August 27, 2015 @12:23PM (#10130349)
It's not open source, i cannot checkout it and start building something with it...
Re:PHP in a JavaScript world by mellett68 on Thursday August 27, 2015 @12:33PM (#10130436)
Re:PHP in a JavaScript world by delta9 on Thursday August 27, 2015 @12:39PM (#10130486)
Oh thank you for correcting me. I just saw the free trial things.. that has remind me wordpress.. and I run out..
Re:PHP in a JavaScript world by audessuscest on Thursday August 27, 2015 @12:15PM (#10130292)
I 100% agree. That's what keep PHP so popular.

Similarly, Rails made Ruby popular.

(I won't call phabricator a "vastly popular, feature rich out of the box tools")

Re:PHP in a JavaScript world by k__ on Thursday August 27, 2015 @12:12PM (#10130276)
PHP was cool in the pre-SaaS era, where the only "cloudy" thing was renting webspace or server. You had to install and manage your Wordpress and co. yourself.

I think >99% of the people who wanted a website (blog/forum/etc) had to call an IT guy to get this running.

Now they just have to register for a SaaS and the most technical they have to do, is linking their domain to it.

Re:PHP in a JavaScript world by delta9 on Thursday August 27, 2015 @12:20PM (#10130318)
I think 99% of the people wanted to link a domain to it, had to call an IT guy.
Re:PHP in a JavaScript world by k__ on Thursday August 27, 2015 @12:24PM (#10130358)
Probably, but fact is, renting a server and installing Wordpress on it ranges on another level than using a custom domain on a SaaS.