This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
Great Way To Learn Different Coding Languages
Started by LuaEclipser, 26 March 2013 - 11:26 AMPosted 26 March 2013 - 12:26 PM
Posted 26 March 2013 - 12:30 PM
Well here's the thing… the way I learn a language is normally by looking at other people's code then if I need help with any method I normally just use my good friend google. A whole interactive website might be good for noobies but for people who are experience with other languages, it's not ideal. For instance, I was looking at the API section of the website and it has a course on how to get the top videos on Youtube with Javascript, but the first lesson in the course is "What is HTTP?". You see what I mean?
Posted 26 March 2013 - 12:31 PM
on this wensite, you can skip exersices
*website
*website
Posted 26 March 2013 - 12:34 PM
I realize that, but my point was that going step by step for something simple such as learning the basics of a language is pointless. Let's say I didn't know PHP(I do know it) and I already knew a few other languages, I wouldn't want to go through what an if statement is or something along those lines. What I want to see is what makes this language different from the languages I have learned previously.on this wensite, you can skip exersices
*website
Posted 26 March 2013 - 12:37 PM
I've been to that website a couple times before. Sammich is right, but do realize that other languages syntax's are a lot different from others, so someone might want to go to learn from that site. Such as lua and C.
Posted 26 March 2013 - 12:44 PM
I am actually going to learn some jQuery from the site. It does some basics to get people started which is nice. But after looks at this course I still think it would of been better for me to of looked at the plain docs instead of going through an interactive course.
Posted 26 March 2013 - 01:06 PM
I knew of this website, it's where I learned Java.
Posted 26 March 2013 - 01:14 PM
for instance
LUA if/else statment
and JAVASCRIPT
LUA if/else statment
if 1 + 1 = 2 then
syntax = true
else
syntax = flase
and JAVASCRIPT
if (1 + 1 === 2)
{
var syntax = true
}
else
{
var syntax = false
}
see what i mean?Posted 26 March 2013 - 01:18 PM
Java ~= Javascript.I knew of this website, it's where I learned Java.
And yeah, codecademy is pretty great, except for the fact that their Ruby backend is pretty crappy at times.
LUA if/else statmentif 1 + 1 = 2 then syntax = true else syntax = flase
if 1 + 1 == 2 then
syntax = true
else
syntax = false
end
If you're going to make an example at least try to avoid syntax errors.
Posted 26 March 2013 - 01:22 PM
my syntax was right. it was Java-Script. not JavaJava ~= Javascript.I knew of this website, it's where I learned Java.
And yeah, codecademy is pretty great, except for the fact that their Ruby backend is pretty crappy at times.LUA if/else statmentif 1 + 1 = 2 then syntax = true else syntax = flase
if 1 + 1 == 2 then syntax = true else syntax = false end
If you're going to make an example at least try to avoid syntax errors.
Posted 26 March 2013 - 01:33 PM
He's saying your lua syntax was wrong, which it was. You missed the "end" for the if statement.
Posted 26 March 2013 - 02:01 PM
i usually get books they are very complete
Posted 26 March 2013 - 02:14 PM
of didnt see that xDHe's saying your lua syntax was wrong, which it was. You missed the "end" for the if statement.
Posted 28 March 2013 - 02:56 AM
StackOverflow FTW!!! And Google sometimes too I guess :P/>if I need help with any method I normally just use my good friend google.
take a look at JavaScript Comparison and Logical operators, you will find that not only did you miss the 'end' from the Lua script, but you used an overkill of a comparison. You used exactly equal (===) not just equal (==)…my syntax was right. it was Java-Script. not Java
Posted 28 March 2013 - 03:54 PM
A book can't be updated.i usually get books they are very complete
Please don't use w3schools. That page specifically may be correct, but it's generally a bad place to learn from.take a look at JavaScript Comparison and Logical operators, you will find that not only did you miss the 'end' from the Lua script, but you used an overkill of a comparison. You used exactly equal (===) not just equal (==)…
Posted 28 March 2013 - 03:58 PM
in a way it is but the main difference is java script is the code of the web where as java is mainly the code of the programs and desktop. Thats breaking it into simpler terms.Java ~= Javascript.I knew of this website, it's where I learned Java.
And yeah, codecademy is pretty great, except for the fact that their Ruby backend is pretty crappy at times.LUA if/else statmentif 1 + 1 = 2 then syntax = true else syntax = flase
if 1 + 1 == 2 then syntax = true else syntax = false end
If you're going to make an example at least try to avoid syntax errors.
let me proclaim that i was referring to the javascript ~= java statement
Posted 28 March 2013 - 04:11 PM
I thought the greatest way to learn a different coding language is by sticking to ComputerCraft Lua… Odd…
Posted 28 March 2013 - 04:32 PM
I thought the greatest way to learn a different coding language is by sticking to ComputerCraft Lua… Odd…
Great idea! I'll learn to code in C by making a ComputerCraft OS!
Posted 28 March 2013 - 04:49 PM
i see a mistake in there java already xDStackOverflow FTW!!! And Google sometimes too I guess :P/>if I need help with any method I normally just use my good friend google.take a look at JavaScript Comparison and Logical operators, you will find that not only did you miss the 'end' from the Lua script, but you used an overkill of a comparison. You used exactly equal (===) not just equal (==)…my syntax was right. it was Java-Script. not Java
Posted 28 March 2013 - 04:51 PM
"how it can be used"
IS WAAAY OFF the correct syntax;
if (age<18) x="to young"
IS WAAAY OFF the correct syntax;
if (age<18) {
var x="too young"
}
Posted 28 March 2013 - 05:00 PM
I would like to learn java. Could you link to that course i cannot find java only javascript which is for webI knew of this website, it's where I learned Java.
Posted 28 March 2013 - 05:29 PM
That's not a mistake. You're allowed one statement after an if statement, and other control statements (some, if not all of them)."how it can be used"if (age<18) x="to young"
IS WAAAY OFF the correct syntax;if (age<18) { var x="too young" }
It's JavaScript, not Java. Get it right, people.i see a mistake in there java already xD
There is no Java course.I would like to learn java. Could you link to that course i cannot find java only javascript which is for web
Posted 28 March 2013 - 05:31 PM
2 things:Please don't use w3schools. That page specifically may be correct, but it's generally a bad place to learn from.
- I used it because that particular page I know for a fact is correct
- That website is academically recognised and is recognised AND recommended by the W3C, I doubt it is a "bad place to learn" if W3C is recommending it!
Well actually. that is correct syntax. if an if statement (or any control statement) only contains a single instruction you do not need to have the curly braces."how it can be used"if (age<18) x="to young"
IS WAAAY OFF the correct syntax;if (age<18) { var x="too young" }
this is also correct
if (age<18)
System.out.println("too young")
else
System.out.println("Eh, you're legally an adult in most countries")
Posted 28 March 2013 - 06:03 PM
1. Fair enough, though I still disapprove of referencing the site at all.2 things:Please don't use w3schools. That page specifically may be correct, but it's generally a bad place to learn from.
- I used it because that particular page I know for a fact is correct
- That website is academically recognised and is recognised AND recommended by the W3C, I doubt it is a "bad place to learn" if W3C is recommending it!
2. W3Schools is not affiliated with the w3c at all, and even if the w3c somehow recommended it, there are still way better, more comprehensive and updated places to learn, such as the Mozilla Developer Network, and Codecademy.
It's good for beginners, if that, but relying on it solely as a resource for web development is never really a good idea, as one bad tip can keep you occupied for hours. I know from personal experience.
Posted 28 March 2013 - 06:09 PM
Fair enough… I've only ever used it just to check my syntax when I've had a mental blank anyways. aced all my web development units at University. got ~98% on all of them, so learning web isn't required for me. its more just making sure I was right with what I was doing… :P/> too many programming languages in my head, then when I go to a programming languages retarded little brothers (html/javascript/css/etc) I get annoyed at what I cannot do, or I'll try to do some other languages syntax for something :P/>1. Fair enough, though I still disapprove of referencing the site at all.
2. W3Schools is not affiliated with the w3c at all, and even if the w3c somehow recommended it, there are still way better, more comprehensive and updated places to learn, such as the Mozilla Developer Network, and Codecademy.
It's good for beginners, if that, but relying on it solely as a resource for web development is never really a good idea, as one bad tip can keep you occupied for hours. I know from personal experience.
Posted 29 March 2013 - 12:13 PM
Posted 29 March 2013 - 12:36 PM
I use no single source for everything. I learn languages normally from the languages website. I figure out a few things of the language then look at example code. That shows me how the syntax looks. And LuaEclipser just because syntaxs differ does not prove that that website is useful. Sammich said that the MAJOR difference, like html works via tags and such.
Posted 29 March 2013 - 12:38 PM
What do you mean by that?Sammich said that the MAJOR difference, like html works via tags and such.
Posted 29 March 2013 - 12:47 PM
What do you mean by that?Sammich said that the MAJOR difference, like html works via tags and such.
Like the major syntax differences, like how html uses tags not functions. That is something major. The things that you need to know.
Posted 29 March 2013 - 02:15 PM
HTML isn't the same type of language. That seems like something major.
Posted 01 April 2013 - 12:01 AM
Ignore this post, didn't notice there were 2 pages.