|
|
|||||||
| Computers & Information Technologies « Everything related to computers and internet. » |
![]() |
|
|
Share | Thread Tools | Search this Thread |
|
|
#21 | ||
|
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
|
Quote:
Quote:
__________________
|
||
|
|
|
|
|
#22 | ||
|
Ma ghayro
Last Online: 04-19-2018
Join Date: Dec 2005
Posts: 5,592
Thanks: 1,765
Thanked 4,201 Times in 2,361 Posts
Groans: 12
Groaned at 18 Times in 11 Posts
|
Quote:
In both posts you quoted, the main idea was "Javascript" and not "Node.js". In your first reply to Freddy, you were surprised how he was comparing "Client side" language to "server side" THEN he gave Node.js as a server-side javascript based system that works like charm and is just great for so many things. Server-side javascript has been there for ages: http://en.wikipedia.org/wiki/Compari...ript_solutions Quote:
If they add the needed libraries to create the right environment for web development it will work just fine and maybe this might happen later, but currently it's not intended to. On the other hand PHP has many client-side libraries such as PHP-GTK, not much supported but they're available and work fine. Inno you have experience with Node.js and you ask how could he compare Javascript "Client Side" to "Server Side"?
__________________
http://twitter.com/danymoussa
|
||
|
|
|
|
|
#23 | ||
|
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
|
Quote:
You do agree ya3ne that Javascript will take over PHP? Answer this question please. Server-side Javascript has been there for ages? True. So what? Would that mean it will take over PHP? No. You said: Quote:
Lol, this is funny. I think I'm arguing for nothing :P
__________________
|
||
|
|
|
|
|
#24 | |
|
Ma ghayro
Last Online: 04-19-2018
Join Date: Dec 2005
Posts: 5,592
Thanks: 1,765
Thanked 4,201 Times in 2,361 Posts
Groans: 12
Groaned at 18 Times in 11 Posts
|
Quote:
![]() I believe JavaScript is a very powerful language that is gaining ground pretty fast, JavaScript is the most misunderstood language ever. Few years back it was used for basic stuff like animation... However now we look at is, it's such an important aspect for Facebook, Twitter that build their pages using JSON responses + Javascript templating system to build the pages at your end to reduce their load... This said, it's quite clear how big this language is becoming. It started to invade the server side and more systems are adopting it. Node.js (again) is doing a great job and many are adopting it, it's certainly not a bubble. Is it possible for Javascript to take over PHP in few years? With the growth we're seeing, with that flexibility it has? it's very possible.
__________________
http://twitter.com/danymoussa
|
|
|
|
|
|
|
#25 | |
|
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
|
Quote:
I agree on the first part but what you are talking about is called "AJAX/Asynchronous JavaScript and XML" (reducing server load, shiny interface, Asynchronous requests whal khbar...) and like wikipedia says: "... a group of interrelated web development methods used on the client-side to create asynchronous web applications." Very cool. However, this is not server side. This is not what we are talking about. As for Node.Js, for God sake could you please tell me who has started to adopt it? I know it is good and might be usefull in some specific applications but let's get real From what I'm seing, you're mixing too much between the concepts of client-side and server-side (Day3a ltase :P). You come to tell me about features that are nothing but AJAX and we all know what AJAX is. Still I'm not convinced why Javascript could in any way take over PHP.
__________________
|
|
|
|
|
|
|
#26 | |||||
|
Ma ghayro
Last Online: 04-19-2018
Join Date: Dec 2005
Posts: 5,592
Thanks: 1,765
Thanked 4,201 Times in 2,361 Posts
Groans: 12
Groaned at 18 Times in 11 Posts
|
Quote:
No, i'm no talking about Ajax dear, data could be transfered through Web sockets (HTML5), Flash sockets or AJAX. What i'm talking about is client-side template-engine & JSON/JavaScript Objects Annotation. Facebook & Twitter no longer rely on PHP/C++ or Ruby on Rails to render the output, they send JSON objects and Javascript template-engine takes charge of rendering the template in your browser using your resources. Now that's the cool part ![]() Read about JSON & Mustache.js Since we're talking about JSON, it's JavaScript Objects Annotation and XML is losing ground for it, since many giants (Google, Facebook, Youtube, Twitter...) have it as a primary data type for their API responses. That's another sign of how important JavaScript have become. Quote:
http://venturebeat.com/2011/08/16/linkedin-node/ Quote:
![]() Quote:
Here's your problem, you don't even see that a language is a language and everything related to it are bunch of APIs it interacts with. In the case of browsers it interacts with the DOM... In Node.js it interacts with other APIs like sockets, sessions... PHP-GTK is a "server-side" language with GUI to create desktop apps. Again, a language is a language, in what environment you use it is a different subject. Java is quite a good example too! Quote:
I am currently reading "JavaScript: The definitive guide", i suggest you read it too =)
__________________
http://twitter.com/danymoussa
|
|||||
|
|
|
|
|
#27 | |||
|
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
|
Quote:
If you use JSON instead of XML it won't be AJAX anymore ya3ne?! Allow me to slap my face :/Simple wikipedia dude: "Despite the name, the use of XML is not needed (JSON is often used instead), and the requests do not need to be asynchronous." Quote:
Quote:
__________________
|
|||
|
|
|
|
|
#28 |
|
Administrator
Last Online: 12-29-2011
Join Date: Nov 2006
Posts: 44
Thanks: 7
Thanked 20 Times in 6 Posts
Groans: 1
Groaned at 0 Times in 0 Posts
|
JavaScript on the server side is a lot faster than PHP currently. Only problem is, due to availability of many libraries and built-in function in php, it is must faster to develop an application on PHP today than it is using JavaScript.
__________________
Code + Addict = Coddict |
|
|
|
![]() |
|
| Tags |
| favorite, language, programming |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|