This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
LuaEclipser's profile picture

Great Way To Learn Different Coding Languages

Started by LuaEclipser, 26 March 2013 - 11:26 AM
LuaEclipser #1
Posted 26 March 2013 - 12:26 PM
i found this website

it lets you take cool courses that are interactive. try it for yourself!
Sammich Lord #2
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?
LuaEclipser #3
Posted 26 March 2013 - 12:31 PM
on this wensite, you can skip exersices

*website
Sammich Lord #4
Posted 26 March 2013 - 12:34 PM
on this wensite, you can skip exersices

*website
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.
alakazard12 #5
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.
Sammich Lord #6
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.
Azhf #7
Posted 26 March 2013 - 01:06 PM
I knew of this website, it's where I learned Java.
LuaEclipser #8
Posted 26 March 2013 - 01:14 PM
for instance


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?
Kingdaro #9
Posted 26 March 2013 - 01:18 PM
I knew of this website, it's where I learned Java.
Java ~= Javascript.

And yeah, codecademy is pretty great, except for the fact that their Ruby backend is pretty crappy at times.

LUA if/else statment


if 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.
LuaEclipser #10
Posted 26 March 2013 - 01:22 PM
I knew of this website, it's where I learned Java.
Java ~= Javascript.

And yeah, codecademy is pretty great, except for the fact that their Ruby backend is pretty crappy at times.

LUA if/else statment


if 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.
my syntax was right. it was Java-Script. not Java
Bubba #11
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.
ETHANATOR360 #12
Posted 26 March 2013 - 02:01 PM
i usually get books they are very complete
LuaEclipser #13
Posted 26 March 2013 - 02:14 PM
He's saying your lua syntax was wrong, which it was. You missed the "end" for the if statement.
of didnt see that xD
theoriginalbit #14
Posted 28 March 2013 - 02:56 AM
if I need help with any method I normally just use my good friend google.
StackOverflow FTW!!! And Google sometimes too I guess :P/>

my syntax was right. it was Java-Script. not Java
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 (==)…
Kingdaro #15
Posted 28 March 2013 - 03:54 PM
i usually get books they are very complete
A book can't be updated.

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 (==)…
Please don't use w3schools. That page specifically may be correct, but it's generally a bad place to learn from.
AnDwHaT5 #16
Posted 28 March 2013 - 03:58 PM
I knew of this website, it's where I learned Java.
Java ~= Javascript.

And yeah, codecademy is pretty great, except for the fact that their Ruby backend is pretty crappy at times.

LUA if/else statment


if 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.
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.

let me proclaim that i was referring to the javascript ~= java statement
ds84182 #17
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…
Kingdaro #18
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!
LuaEclipser #19
Posted 28 March 2013 - 04:49 PM
if I need help with any method I normally just use my good friend google.
StackOverflow FTW!!! And Google sometimes too I guess :P/>

my syntax was right. it was Java-Script. not Java
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 (==)…
i see a mistake in there java already xD
LuaEclipser #20
Posted 28 March 2013 - 04:51 PM
"how it can be used"

if (age<18) x="to young"

IS WAAAY OFF the correct syntax;

if (age<18) {
var x="too young"
}
AndreWalia #21
Posted 28 March 2013 - 05:00 PM
I knew of this website, it's where I learned Java.
I would like to learn java. Could you link to that course i cannot find java only javascript which is for web
Kingdaro #22
Posted 28 March 2013 - 05:29 PM
"how it can be used"

if (age<18) x="to young"

IS WAAAY OFF the correct syntax;

if (age<18) {
var x="too young"
}
That's not a mistake. You're allowed one statement after an if statement, and other control statements (some, if not all of them).

i see a mistake in there java already xD
It's JavaScript, not Java. Get it right, people.

I would like to learn java. Could you link to that course i cannot find java only javascript which is for web
There is no Java course.
theoriginalbit #23
Posted 28 March 2013 - 05:31 PM
Please don't use w3schools. That page specifically may be correct, but it's generally a bad place to learn from.
2 things:
  1. I used it because that particular page I know for a fact is correct
  2. 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!

"how it can be used"

if (age<18) x="to young"

IS WAAAY OFF the correct syntax;

if (age<18) {
var x="too young"
}
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.
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")
Kingdaro #24
Posted 28 March 2013 - 06:03 PM
Please don't use w3schools. That page specifically may be correct, but it's generally a bad place to learn from.
2 things:
  1. I used it because that particular page I know for a fact is correct
  2. 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!
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.
theoriginalbit #25
Posted 28 March 2013 - 06:09 PM
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.
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/>
Dlcruz129 #26
Posted 29 March 2013 - 12:13 PM
http://thenewboston.org/

Taught me so much.
Mailmanq! #27
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.
Sammich Lord #28
Posted 29 March 2013 - 12:38 PM
Sammich said that the MAJOR difference, like html works via tags and such.
What do you mean by that?
Mailmanq! #29
Posted 29 March 2013 - 12:47 PM
Sammich said that the MAJOR difference, like html works via tags and such.
What do you mean by that?

Like the major syntax differences, like how html uses tags not functions. That is something major. The things that you need to know.
Kingdaro #30
Posted 29 March 2013 - 02:15 PM
HTML isn't the same type of language. That seems like something major.
1lann #31
Posted 01 April 2013 - 12:01 AM
Ignore this post, didn't notice there were 2 pages.