Vcoderz Community
We create websites that have it all, beauty & brains
Lebanon Web Design & Development - Coddict
 

Go Back   Vcoderz Community > Computer Zone > Computers & Information Technologies

Notices

Computers & Information Technologies « Everything related to computers and internet. »

Reply
 
Share Thread Tools Search this Thread
Old 10-10-2011   #21
Google

 
Google's Avatar
 
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
Default

Quote:
Originally Posted by xcoder View Post
You're comparing oranges to apples, Freddy didn't mean Node.js will replace PHP, he was just answering you that Javascript doesn't only work in a web browser but also anywhere; it's just a language that uses bunch of APIs be it the browser using DOM or server side using sockets, GD or any other API.
Quote:
Originally Posted by Freddy View Post
Javascript is making major advancements on the server side such as in Node.JS

In theory it could take over php given a few years.
Quote:
Originally Posted by Freddy View Post
For me It's mostly PHP and JavaScript
Even though JavaScript could take over PHP in some future, i still love both
Dude, I'm 21 years old, I'm still young, ba3ed ma khatyaret :P The guy said explicitly in two posts that Javascript is going to take over PHP and I was replying to this idea. Don't defend him! :P And I'm not the one who were comparing an apple to an orange (read my first reply to his first post). I already have experience with Node.JS and event-driven programming (SAX?) so I guess I don't need to watch videos with my crappy connection xD


__________________

Google is offline   Reply With Quote
Old 10-10-2011   #22
xcoder
Ma ghayro
 
xcoder's Avatar
 
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
Default

Quote:
Originally Posted by Google View Post
Dude, I'm 21 years old, I'm still young, ba3ed ma khatyaret :P The guy said explicitly in two posts that Javascript is going to take over PHP and I was replying to this idea. Don't defend him! :P And I'm not the one who were comparing an apple to an orange (read my first reply to his first post). I already have experience with Node.JS and event-driven programming (SAX?) so I guess I don't need to watch videos with my crappy connection xD
I'm not defending Freddy, it's just that i share his point of view because we already discussed this subject many times; he will probably post something later when he sees these replies; and sadly u're still not getting the point.

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:
Originally Posted by Node.js
Node's goal is to provide an easy way to build scalable network programs. In the "hello world" web server example above...
Node.js is bunch of APIs used by Javascript for network programming.
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
xcoder is offline   Reply With Quote
Old 10-11-2011   #23
Google

 
Google's Avatar
 
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
Default

Quote:
Originally Posted by xcoder View Post
I'm not defending Freddy, it's just that i share his point of view because we already discussed this subject many times; he will probably post something later when he sees these replies; and sadly u're still not getting the point.

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



Node.js is bunch of APIs used by Javascript for network programming.
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"?
Yes, the main idea is Javascript and whether it will take over PHP or not. Why are you arguing? I don't get it why you're trying to define to me what Node.Js is and how beautiful and charm it is -.-
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:
In both posts you quoted, the main idea was "Javascript" and not "Node.js".
When he mentioned Node.Js in his second post he wanted to recover his first post, 2ennou 3am y7ettele 3a 3ayne 2ennou: "shouf Javascript can be used as server-side language so this will support my miserable first post saying that javascript would take over PHP". That's why I explained 2ennou even if Javascript would go server side, it will fail to beat PHP for the reasons I already mentioned.

Lol, this is funny. I think I'm arguing for nothing :P
__________________

Google is offline   Reply With Quote
Old 10-11-2011   #24
xcoder
Ma ghayro
 
xcoder's Avatar
 
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
Default

Quote:
Originally Posted by Google View Post
Yes, the main idea is Javascript and whether it will take over PHP or not. Why are you arguing? I don't get it why you're trying to define to me what Node.Js is and how beautiful and charm it is -.-
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:

When he mentioned Node.Js in his second post he wanted to recover his first post, 2ennou 3am y7ettele 3a 3ayne 2ennou: "shouf Javascript can be used as server-side language so this will support my miserable first post saying that javascript would take over PHP". That's why I explained 2ennou even if Javascript would go server side, it will fail to beat PHP for the reasons I already mentioned.

Lol, this is funny. I think I'm arguing for nothing :P
Daya3 dude

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
xcoder is offline   Reply With Quote
Old 10-11-2011   #25
Google

 
Google's Avatar
 
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
Default

Quote:
Originally Posted by xcoder View Post
Daya3 dude

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.
Yeah, daya3 :P
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.
__________________

Google is offline   Reply With Quote
Old 10-11-2011   #26
xcoder
Ma ghayro
 
xcoder's Avatar
 
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
Default

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.
Ow lord (yea i said it), this is my last reply to this.
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:
As for Node.Js, for God sake could you please tell me who has started to adopt it?
LinkedIn adopted the messed up concept Node.js that is less than a year old . what a bunch of amateurs:
http://venturebeat.com/2011/08/16/linkedin-node/
Quote:
Originally Posted by LinkedIn-leader-developer
The app is two to 10 times faster on the client side than its predecessor, and on the server side, it’s using a fraction of the resources, thanks to a switch from Ruby on Rails to Node.js, a server-side JavaScript development technology that’s barely a year old but already rapidly gaining traction.
Obviously, they extended it enough and used it instead of Ruby on Rails

Quote:
From what I'm seing, you're mixing too much between the concepts of client-side and server-side (Day3a ltase :P).
My brother asked me why i laughed for the monitor, you are to blame.
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:
Still I'm not convinced why Javascript could in any way take over PHP.
My favorite language is still PHP and will always code in it, however if you go deep into JavaScript prototyping you would see the ultimate flexibility this language has.

I am currently reading "JavaScript: The definitive guide", i suggest you read it too =)
__________________
http://twitter.com/danymoussa
xcoder is offline   Reply With Quote
Old 10-11-2011   #27
Google

 
Google's Avatar
 
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
Default

Quote:
Originally Posted by xcoder View Post
Ow lord (yea i said it), this is my last reply to this.
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.
Khallile lfehem 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:
LinkedIn adopted the messed up concept Node.js that is less than a year old . what a bunch of amateurs:
http://venturebeat.com/2011/08/16/linkedin-node/
We all know Ruby doesn't scale. And the guys are talking about a mobile application. Cool, I already said Node.Js has certain applications.

Quote:
Again, a language is a language, in what environment you use it is a different subject.
And if you use Javascipt in server side it won't be better than PHP. That's the point.
__________________

Google is offline   Reply With Quote
Old 10-16-2011   #28
Freddy
Administrator
 
Freddy's Avatar
 
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
Default

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
Freddy is offline   Reply With Quote
Reply

  Vcoderz Community > Computer Zone > Computers & Information Technologies

Tags
favorite, language, programming



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:35 PM.


Lebanon web design and development
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Share