Click here to Skip to main content
15,861,168 members
Home / Discussions / Web Development
   

Web Development

 
QuestionWhich language should I use out of javascript or php? Pin
Member 1595298015-Mar-23 22:39
Member 1595298015-Mar-23 22:39 
AnswerRe: Which language should I use out of javascript or php? Pin
Richard MacCutchan15-Mar-23 22:43
mveRichard MacCutchan15-Mar-23 22:43 
GeneralRe: Which language should I use out of javascript or php? Pin
Member 1595298015-Mar-23 22:58
Member 1595298015-Mar-23 22:58 
GeneralRe: Which language should I use out of javascript or php? Pin
Richard MacCutchan15-Mar-23 23:15
mveRichard MacCutchan15-Mar-23 23:15 
GeneralRe: Which language should I use out of javascript or php? Pin
Member 1595298016-Mar-23 2:47
Member 1595298016-Mar-23 2:47 
AnswerRe: Which language should I use out of javascript or php? Pin
Jeremy Falcon20-Mar-23 8:45
professionalJeremy Falcon20-Mar-23 8:45 
GeneralRe: Which language should I use out of javascript or php? Pin
Member 1595298024-Mar-23 0:20
Member 1595298024-Mar-23 0:20 
GeneralRe: Which language should I use out of javascript or php? Pin
Jeremy Falcon24-Mar-23 4:15
professionalJeremy Falcon24-Mar-23 4:15 
Member 15952980 wrote:
So does using Node mean you can skip learing php altogether?
Yes
Member 15952980 wrote:
Also, considering it is javascript based, are the server side scripts run entirely on the server as with php?
Yes. One of the main advantages to Node too, is that you can have what's called an isomorphic application. Which is a fancy of way of saying you can run the same code on both the client and server. Stuff that accesses the DOM will be client only, but for algorithmic type routines it's the same code.
Member 15952980 wrote:
Or are there client and server security concerns that put using it at disadvantage compared to using an entirely server side language such as php?
No security concerns that PHP wouldn't also suffer. The main considerations are performance and available libraries. Google has put a lot of work into V8 (the JS engine Node is built on), so it's not nearly as slow as people would think. PHP can pre-compile into bytecode to speed up parsing prior to execution, but V8 also JITs in real time to native code in memory. Don't get me wrong, V8 will never be as fast as C/C++ or Rust and it's single threaded. But when compared to things like PHP, it does pretty well.

PHP vs Node js - Which programs are fastest?

PHP has a ton of built in functionality, like say for editing PDF files. Node doesn't. Fortunately, the community is huge for Node so finding a package to do most stuff is rarely a problem. In fact, it's so huge the real problem will be knowing which packages to avoid.

I say this as a dude who used to love PHP. I'll always have a fond soft spot for it, but times change.
Jeremy Falcon

GeneralRe: Which language should I use out of javascript or php? Pin
Member 1595298026-Mar-23 0:04
Member 1595298026-Mar-23 0:04 
GeneralRe: Which language should I use out of javascript or php? Pin
Jeremy Falcon27-Mar-23 4:31
professionalJeremy Falcon27-Mar-23 4:31 
QuestionEnumerate a div pattern in html page Pin
_Flaviu14-Mar-23 0:28
_Flaviu14-Mar-23 0:28 
AnswerRe: Enumerate a div pattern in html page Pin
jsc4214-Mar-23 4:24
professionaljsc4214-Mar-23 4:24 
GeneralRe: Enumerate a div pattern in html page Pin
_Flaviu14-Mar-23 5:45
_Flaviu14-Mar-23 5:45 
GeneralRe: Enumerate a div pattern in html page Pin
_Flaviu14-Mar-23 22:08
_Flaviu14-Mar-23 22:08 
AnswerRe: Enumerate a div pattern in html page Pin
Jeremy Falcon20-Mar-23 9:15
professionalJeremy Falcon20-Mar-23 9:15 
QuestionArrange image and text in a div, div after div Pin
_Flaviu6-Mar-23 3:19
_Flaviu6-Mar-23 3:19 
AnswerRe: Arrange image and text in a div, div after div Pin
Richard Deeming6-Mar-23 4:26
mveRichard Deeming6-Mar-23 4:26 
GeneralRe: Arrange image and text in a div, div after div Pin
_Flaviu6-Mar-23 5:51
_Flaviu6-Mar-23 5:51 
GeneralRe: Arrange image and text in a div, div after div Pin
Richard Deeming6-Mar-23 22:55
mveRichard Deeming6-Mar-23 22:55 
GeneralRe: Arrange image and text in a div, div after div Pin
_Flaviu7-Mar-23 1:39
_Flaviu7-Mar-23 1:39 
GeneralRe: Arrange image and text in a div, div after div Pin
Zarchiver Apk17-Mar-23 19:27
Zarchiver Apk17-Mar-23 19:27 
QuestionEnglish to Arabic language change integrate in html Pin
Manish Kumar 2926-Feb-23 21:22
Manish Kumar 2926-Feb-23 21:22 
AnswerRe: English to Arabic language change integrate in html Pin
Andre Oosthuizen28-Feb-23 1:43
mveAndre Oosthuizen28-Feb-23 1:43 
Questionwhy doesn't the file I have submitted appear in the email? Pin
rahmat_ hasibuan10-Feb-23 4:03
rahmat_ hasibuan10-Feb-23 4:03 
AnswerRe: why doesn't the file I have submitted appear in the email? Pin
Andre Oosthuizen10-Feb-23 5:33
mveAndre Oosthuizen10-Feb-23 5:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.