Game Development Community

Trying to learn javaScript to help with C

by Morrie · in General Discussion · 11/15/2005 (3:55 pm) · 10 replies

I'm trying to learn JavaScript to help me with C++, I'm at a part in the book where it want me to make a tic tac toe game. I'm having trouble tring to code it.
can anyone help me.

#1
11/15/2005 (4:14 pm)
Javascript? What does it have in common with C++? Buy a C or C++ book, or at least Java. Browse amazon or barns & nobles.
#2
11/15/2005 (4:26 pm)
I know but I'm still trying to learn it, so can anyone help me.
#3
11/15/2005 (4:27 pm)
So wait... you KNOW C++ and don't know Javascript? That's a first for me...


Java School: http://www.w3schools.com/js/default.asp

C++: http://www.cprogramming.com/tutorial.html
#4
11/15/2005 (4:49 pm)
No I'm tring to learn JavaScript and then I'll learn C++. Everyone I've talked too says C++ is easer to learn if you know JavaScript.
#5
11/15/2005 (6:06 pm)
I learned C++ before JavaScript... But I really dont know JavaScript very well either.
#6
11/15/2005 (6:12 pm)
Just look for a good C++ book and don't bother. Time's a wasting!

I used Wiley's "Teach Yourself C++" by Al Stevens. I thought it was pretty good.
#7
11/15/2005 (7:08 pm)
@Adam:

Start with Java, or start with C#

here's why i say that:

Javascript has very poor debugging support. so dont use it.

C++ you have to deal with memory management... which is a headache for newbies.

Java and C# are about the same from functional standpoint.
#8
11/15/2005 (8:06 pm)
My first programming language i learned was Javascript. What i learned was that Javascript is very similiar to torquescript as well, so i was able to learn that pretty quickly. But about C++.... it's got similiar syntax... but there's so much more to C++. you gotta deal with variable types that you don't have to worry about with Javascript. Both are object oriented, so you might be a feel about how you modify variables that are attached to objects.

If you are learning Javascript for the sole reason of learning C++.... then i'j just start out with C++ instead.


www.cplusplus.com/doc/tutorial/ Here's a link to some nice tutorials.
www.maththinking.com/boat/langCppBooks.html Learn C++ in 21 days...

But basically, most programming languages are similiar. Once you learn one, it makes learning another one easier because they follow a similiar logical paths.
#9
11/15/2005 (9:30 pm)
If you live in a state where tuition is not prohibitive, I recommend taking a community college course. Having a live instructor really helps sometimes, and having assignment deadlines is a motiviator :-)

Of course if the classes are out of your price range the books and tutorial sites everybody already mentioned are very good, you just have to be disciplined about it.
#10
11/15/2005 (10:01 pm)
If you are total newbie, i recomend what Cholly says, a 'real life' teacher is the best way to get into it. 1 quarter of it at least!