D
D
Dmitry2015-12-12 18:27:33
CMS
Dmitry, 2015-12-12 18:27:33

Site in Java Script or PHP?

Hello everyone) Does it make sense to completely write an Internet portal in Java Script without using PHP? I just want to delve into one programming language, the most serious and promising.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexander Taratin, 2015-12-12
@makarovceo

I am for JavaScript.
On https://nodejs.org/en/ you can do everything like on php. But the application works on other principles.
Briefly.
Nodejs launched the application, hung up handlers for requests and it will work until it crashes or we force it to close. This allows you to drive data between requests through the application's memory, it is easy to organize work with web sockets.
Classic php out of the box will run on each request for a "new application" and process this request. That is, we cannot, for example, store data in the application's memory from one request and use it in another. Of course, there are things like reactphp.org, but why use them when there is nodejs, I personally don’t understand.

S
Sergi0Limit, 2015-12-12
@Sergi0Limit

There is.

A
Anton Tikhomirov, 2015-12-17
@Acuna

Why is JS more serious than PHP? What can JS do that PHP can't? If you can't answer this question (clearly, indistinctly, at least somehow), then you don't need JS at all.

A
Anton Shcherbakov, 2015-12-12
@WestTrade

Good sir. I will not even delve into your knowledge. Just asking, where are you going to store the data and how will you process it on the server?

I
Ilya Beloborodov, 2015-12-12
@kowap

The northern part is still needed. And if you do not need traffic from search engines, then you can completely on js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question