Auto pointers forever!!!!!!Xenoveritas said:I'd say it depends entirely on the game you want to create. I wouldn't recommend starting with C or C++, since you'll have to learn about how to manage memory.
This isn't meant as a flame, just clearing up some things. Javascript is actually a pretty versatile language that includes many OOP concepts like encapsulation, polymorphism, inheritance, etc. Objects can have private, public and protected members and methods just like any other OO language. With JS, I can tell you the voltage going through your northbridge -- so, it is more useful than just a HTML add-on.Elim Garak said:Oh, totally different - I just meant it is dead boring. If Java is C++ on training wheels, Javascript is Java on training wheels.Only one variable type (var), barely any classes, etc. It is a scripting language for HTML, and not designed for anything more complex than that.
Not quite. JavaScript does support something similar to normal OO style, but it's actually prototype based and it takes a bit of getting used to. It's closer to Lisp than Java.argonaut05 said:Javascript is actually a pretty versatile language that includes many OOP concepts like encapsulation, polymorphism, inheritance, etc. Objects can have private, public and protected members and methods just like any other OO language. With JS, I can tell you the voltage going through your northbridge -- so, it is more useful than just a HTML add-on.
/proc
HEATHEN!AC10 said:I hate VI, there I said it!!! I DON'T TAKE IT BACK!!!
:wq!
Nooooooooooooooooo!!!! *melts*Xenoveritas said:HEATHEN!AC10 said:I hate VI, there I said it!!! I DON'T TAKE IT BACK!!!Code::wq!
I have to disagree with a lot of this, or at most give you that you are splitting some fine hairs. I can't argue that class prototyping takes some getting used to, but most programming languages have some quirk that takes awhile to grok (for me it was indentation in Python).Xenoveritas said:Not quite. JavaScript does support something similar to normal OO style, but it's actually prototype based and it takes a bit of getting used to. It's closer to Lisp than Java.argonaut05 said:Javascript is actually a pretty versatile language that includes many OOP concepts like encapsulation, polymorphism, inheritance, etc. Objects can have private, public and protected members and methods just like any other OO language. With JS, I can tell you the voltage going through your northbridge -- so, it is more useful than just a HTML add-on.
And no, all members are public unless you're doing something really evil with closures. Which, while it works, isn't quite the same thing as true data protection.
As for "telling the voltage going through your northbridge" you're obviously using some third-party library, since you can't do that directly through JavaScript. (And if you're reading something from, that still counts as "some third-party library:" in this case, the kernel.)Code:/proc