4 Replies - 708 Views - Last Post: 25 May 2009 - 05:41 PM

#1 Davidsen  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 86
  • Joined: 12-November 08

Javascript question

Posted 24 May 2009 - 02:37 PM

Will i need to know the basics of Javascript to be able to code in OOP efficiently?
Is This A Good Question/Topic? 0
  • +

Replies To: Javascript question

#2 Wimpy  Icon User is offline

  • R.I.P. ( Really Intelligent Person, right? )
  • member icon

Reputation: 159
  • View blog
  • Posts: 1,038
  • Joined: 02-May 09

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! :P

View PostDavidsen, 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

Was This Post Helpful? 0
  • +
  • -

#3 Davidsen  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 86
  • Joined: 12-November 08

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
Was This Post Helpful? 0
  • +
  • -

#4 Wimpy  Icon User is offline

  • R.I.P. ( Really Intelligent Person, right? )
  • member icon

Reputation: 159
  • View blog
  • Posts: 1,038
  • Joined: 02-May 09

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! :)

View PostDavidsen, 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

This post has been edited by Wimpy: 24 May 2009 - 03:21 PM

Was This Post Helpful? 0
  • +
  • -

#5 crazyjugglerdrummer  Icon User is offline

  • GAME OVER. NERD WINS.
  • member icon

Reputation: 119
  • View blog
  • Posts: 690
  • Joined: 07-January 09

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. :D
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1