Will i need to know the basics of Javascript to be able to code in OOP efficiently?
Javascript question
Page 1 of 14 Replies - 556 Views - Last Post: 25 May 2009 - 05:41 PM
Replies To: Javascript question
#2
Re: Javascript question
Posted 24 May 2009 - 02:40 PM
Code OOP in general or OOP Javascript? You have to know Javascript to code Javascript no matter in what way you will code it. And I still don't really know if Javascript can be Object Oriented, I always seem to get different answers to that question. Some say it can be used in an object oriented way, some say that it cannot, and some people say it's prototype oriented, whatever that means, and so on, so forth.
Hope it helps!
Hope it helps!
Davidsen, on 24 May, 2009 - 11:37 PM, said:
Will i need to know the basics of Javascript to be able to code in OOP efficiently?
This post has been edited by Wimpy: 24 May 2009 - 02:40 PM
#3
Re: Javascript question
Posted 24 May 2009 - 02:48 PM
i guess Code OOP in general, but i was planning on using javascript OOP for the mmorpg im trying to make.
I think its quite possibly to code OOP in java script:
http://w3schools.com...s_obj_intro.asp
I think its quite possibly to code OOP in java script:
http://w3schools.com...s_obj_intro.asp
#4
Re: Javascript question
Posted 24 May 2009 - 03:21 PM
You CAN create objects/prototypes in Javascript, but that doesn't necessarily mean it can be object oriented! But I'm not in the position to say if Javascript can or cannot be object oriented since I don't have all the facts on my table! 
Davidsen, on 24 May, 2009 - 11:48 PM, said:
i guess Code OOP in general, but i was planning on using javascript OOP for the mmorpg im trying to make.
I think its quite possibly to code OOP in java script:
http://w3schools.com...s_obj_intro.asp
I think its quite possibly to code OOP in java script:
http://w3schools.com...s_obj_intro.asp
This post has been edited by Wimpy: 24 May 2009 - 03:21 PM
#5
Re: Javascript question
Posted 25 May 2009 - 05:41 PM
OOP in javascript is arguable, but YOU CANNOT MAKE AN MMORPG IN Javascript. Javascript can only interact with the content already on the page, and not communicate with a server without ajax. Languages better suited to the task would be java (used in runescape) or php, as they can communicate with servers and have extremely good oop.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|