A
A
Andrey Berezhnoy2016-02-20 23:08:16
PHP
Andrey Berezhnoy, 2016-02-20 23:08:16

Node.js as PHP replacement?

I am engaged in front-end development and I would like to delve a little into the back-end, but I don’t want to be torn into 2 completely different programming languages.
So I would like to know. Can NodeJS replace PHP in back-end development, or is it still used for more specific tasks?

Answer the question

In order to leave comments, you need to log in

9 answer(s)
A
Andrzej Wielski, 2016-02-20
@wielski

I will say even more - it was created for this.
NodeJS is good for everyone. An understandable concise language (javascript), suitable as a web server, a bunch of goodies like asynchrony, threads, etc.
Minus one - none of the virtual hosting does not support it.
Please, buy a VPS.

I
index0h, 2016-02-20
@index0h

The node is good for tasks tied to the event model. For tasks with sequential execution, it is better NOT to take a node.
PHP is good for web tasks that do not require stateful storage (or with external storage for sessions for example) the language is ideal.
A node cannot be a replacement for PHP, and PHP cannot be a replacement for a node. They are designed for different tasks.

A
Alexander Kubintsev, 2016-02-20
@akubintsev

If I were you, I would think to whom you can sell your knowledge with this node.js
Node.js, I would not consider it as an alternative to php in the real world. He has his own small niche for a narrow range of tasks. Which, by the way, Go successfully covers with interest and even more.

T
Timur Shemsedinov, 2016-02-21
@MarcusAurelius

Read: What can be written in Node.js?

I
Ilya Erokhin, 2016-02-25
@AirWorker

Working with Noda will allow you to grow as a professional very quickly, to develop quickly. The node fires PHP absolutely everywhere.

O
OnYourLips, 2016-02-21
@OnYourLips

Can NodeJS replace PHP in back-end development, or is it still used for more specific tasks?
Can not, only for specific tasks.
Technically, of course, it is possible, not inefficient.
Although if by PHP you mean libraries like Ratchet, then it can, but this is not the usual use of PHP.

Y
Yuri, 2016-02-21
@riky

If you know JS and don't want to learn php from scratch - learn a node.
I myself write mainly in PHP, but sometimes I do something on the node, I quite like it, but I don’t want to completely switch yet, only where sockets are needed.
there are just a lot of ready-made developments in php, both our own and third-party ready-made libraries, for the next few years there is no way without it.
in any case, I recommend that you at least start with a node, you won’t lose anything.

B
beduin01, 2016-02-21
@beduin01

I strongly advise vibed.org asynchronous model, extremely high performance, convenient syntax, and most importantly, you will get binaries at the output, which you can simply take and run without wasting time setting up the environment.

V
Vitaly Pasyuta, 2016-02-25
@pasutavitaliy

Learn this yummy
hardcore only, not for chicks =)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question