Graalians

Graalians (https://www.graalians.com/forums/index.php)
-   Off-Topic Chat (https://www.graalians.com/forums/forumdisplay.php?f=14)
-   -   Codecademy (https://www.graalians.com/forums/showthread.php?t=22233)

Platinum 11-23-2013 10:25 AM

Codecademy
 
Codecademy.com is an interactive website dedicated to teaching people coding. It teaches HTML, C#, Python, and a few others (not GS2, sadly). It is simple to use and doesn't slam everything at you all at once, meaning that you can learn fast (at least I did). It requires an account.
I recommend this website to all potential developers wanting to learn how to code :)

GOAT 11-24-2013 04:49 PM

coding is easy. sword= setsword and shield=setshield
example: setsword-talons-dealthough-swrod.png
setshield-emera-leaks-stefans-nuts.png

Talon 11-24-2013 06:35 PM

Love this website, very beginner-friendly. Picked up Python in a few days without any prior experience.

Zazzi* 11-24-2013 09:00 PM

If only I could code my life to actually try it.

Iceswift 11-24-2013 10:02 PM

I signed up for this a while ago and i kind of just lost intrest in it after a while :\

JesterTheCat 11-24-2013 10:06 PM

Quote:

Posted by Iceswift (Post 429875)
I signed up for this a while ago and i kind of just lost intrest in it after a while :\

Its not a very easy/interesting site. Often, the code screws up because the web page has an issue and from learning half of Java,it hasnt taught anything fun lol.
I guess you have to be into programming to love it. I love it because I want to learn programming.

Also, account creation isnt required. I have done some lessons on my iPad without having to sign up.

Dusty 11-24-2013 11:02 PM

Most programmer tutorials/lessons assume you know nothing about programming. So they start from the absolute beginning, teaching you simple concepts and logic. If you already have some sort of understanding of those then that beginner stuff can be insanely boring. Even if you don't, most people think programming is about making cool ****... and get bored when all they're doing is telling a program to output "Hello World" and simple arithmetic.

Then, after you finally get past all of that boring crap you finally realize programming is about 10% fun and 90% frustration.

JesterTheCat 11-24-2013 11:49 PM

Quote:

Posted by Dusty (Post 429886)
Most programmer tutorials/lessons assume you know nothing about programming. So they start from the absolute beginning, teaching you simple concepts and logic. If you already have some sort of understanding of those then that beginner stuff can be insanely boring. Even if you don't, most people think programming is about making cool ****... and get bored when all they're doing is telling a program to output "Hello World" and simple arithmetic.

Then, after you finally get past all of that boring crap you finally realize programming is about 10% fun and 90% frustration.

If you really wanna see a game that can make programming fun, check out Roblox. Not CoddeAcademy. Roblox shows you how scripting works.

HappyCat123 11-29-2013 01:37 AM

I like this website. I'm past the part where I learn about functions in JS and I feel like a fluttering butterfly.

Cadavre 11-29-2013 03:06 AM

Quote:

Posted by Dusty (Post 429886)
Then, after you finally get past all of that boring crap you finally realize programming is about 10% fun and 90% frustration.

True, but the frustration is part of the fun. :>

Koolaid 11-29-2013 03:33 AM

Quote:

Posted by JesterTheCat (Post 429891)
If you really wanna see a game that can make programming fun, check out Roblox. Not CoddeAcademy. Roblox shows you how scripting works.

Robloc... its basically Minecraft lmao

Roblox*

imSupah 12-01-2013 02:14 AM

Quote:

Posted by Koolaid (Post 431081)
Robloc... its basically Minecraft lmao Roblox*

Roblox came before Minecraft......

BboyEatsbacon 12-01-2013 04:50 AM

Quote:

Posted by Cadavre (Post 431074)
True, but the frustration is part of the fun. :>

Precisely: the frustration makes the end solution that much more satisfying.

Cadavre 12-01-2013 10:00 AM

Quote:

Posted by BboyEatsbacon (Post 431809)
Precisely: the frustration makes the end solution that much more satisfying.

Yeah! About that, I've gotten some real promising progress on my RC. :)
It even supports skins and the config from the official one.

Ryan 12-01-2013 10:53 AM

I found this about a year ago and it is very useful.

HappyCat123 12-20-2013 09:14 PM

gosh darn curly brackets screwing up all my stuff.

PoeticFolly 12-21-2013 01:17 AM

I really like this. But I can never really get into it for more than a few weeks. I'll just drop it one day. I do that with a lot of things though.

Platinum 12-23-2013 10:44 AM

I need a bit of assistance with the JavaScript tutorial. If anyone could help me, I would be grateful! These are the instructions:
You are a creature of habit. Every week you buy 5 oranges. But orange prices keep changing!
1. You want to declare a function that calculates the cost of buying 5 oranges.
2. You then want to calculate the cost of the 5 all together.
3. Write a function that does this called orangeCost().
4. It should take a parameter that is the cost of an orange, and multiply it by 5.
5. It should log the result of the multiplication to the console.
6. Call the function where oranges each cost 5 dollars.
-----this is what I coded so far ---
var orangeCost = function (orangeCost) {
var price = number * 5
}
console.log(price = 4)

iDylan 12-23-2013 11:27 AM

Quote:

Posted by Platinum (Post 438325)
I need a bit of assistance with the JavaScript tutorial. If anyone could help me, I would be grateful! These are the instructions:
You are a creature of habit. Every week you buy 5 oranges. But orange prices keep changing!
1. You want to declare a function that calculates the cost of buying 5 oranges.
2. You then want to calculate the cost of the 5 all together.
3. Write a function that does this called orangeCost().
4. It should take a parameter that is the cost of an orange, and multiply it by 5.
5. It should log the result of the multiplication to the console.
6. Call the function where oranges each cost 5 dollars.
-----this is what I coded so far ---
var orangeCost = function (orangeCost) {
var price = number * 5
}
console.log(price = 4)

oh **** i struggled with this one way to long too when i had this task. If you find yourself being stuck at certain tasks, just google the error/task. There's always an answer online!

---

try this;

var orangeCost = function (price){
var cost = price * 5;
return (cost);
};

orangeCost(5);

Platinum 12-23-2013 11:35 AM

http://i.imgur.com/I1MvyfF.jpg

iDylan 12-23-2013 11:58 AM

Quote:

Posted by Platinum (Post 438342)

var orange = 5;
var orangeCost = function (price) {
console.log(orange * 5);
};

orangeCost();

Platinum 12-23-2013 12:12 PM

It worked, thanks iDylan!

iDylan 12-23-2013 11:47 PM

Quote:

Posted by Platinum (Post 438349)
It worked, thanks iDylan!

no problemo :]

Nyte* 12-24-2013 04:26 PM

Quote:

Posted by Platinum (Post 438325)
I need a bit of assistance with the JavaScript tutorial. If anyone could help me, I would be grateful! These are the instructions:
You are a creature of habit. Every week you buy 5 oranges. But orange prices keep changing!
1. You want to declare a function that calculates the cost of buying 5 oranges.
2. You then want to calculate the cost of the 5 all together.
3. Write a function that does this called orangeCost().
4. It should take a parameter that is the cost of an orange, and multiply it by 5.
5. It should log the result of the multiplication to the console.
6. Call the function where oranges each cost 5 dollars.
-----this is what I coded so far ---
var orangeCost = function (orangeCost) {
var price = number * 5
}
console.log(price = 4)

Mother of god, I was stuck on this one weeks ago and haven't logged on since, thought I was gonna break my keyboard.

Dusty 12-24-2013 06:25 PM

Quote:

Posted by iDylan (Post 438345)
var orange = 5;
var orangeCost = function (price) {
console.log(orange * 5);
};

orangeCost();

Shouldn't it be:

var orange = 5;
var orangeCost = function (price) {
console.log(orange * price);
};

orangeCost();

I thought the point of it was that the price is always changing, hence why the function takes a parameter for the price.

iDylan 12-25-2013 10:20 PM

Quote:

Posted by Dusty (Post 438611)
Shouldn't it be:

var orange = 5;
var orangeCost = function (price) {
console.log(orange * price);
};

orangeCost();

I thought the point of it was that the price is always changing, hence why the function takes a parameter for the price.

oh i see what i did wrong x-x. It still worked tough, but that seems much more logical:).

Platinum 12-25-2013 10:56 PM

var myFunction = function (Parameter)

Is the parameter a variable?

Imprint 12-25-2013 11:01 PM

The parameter is the variable you input into the function.

BboyEatsbacon 12-25-2013 11:08 PM

Quote:

Posted by Platinum (Post 438860)
var myFunction = function (Parameter)

Is the parameter a variable?

Quote:

Posted by Imprint (Post 438863)
The parameter is the variable you input into the function.

Yes. So, for example:

PHP Code:

var multiplyByTwo = function (number) { // Define first passed variable (parameter) as 'number'.
   
return number 2// Use the function to return a number result of input number times two.
};

console.log(multiplyByTwo(5)); // Pass two as a variable 

would log 10 into the console.

Platinum 12-25-2013 11:17 PM

Quote:

Posted by Imprint (Post 438863)
The parameter is the variable you input into the function.

Quote:

Posted by BboyEatsbacon (Post 438866)
Yes. So, for example:

PHP Code:

var multiplyByTwo = function (number) { // Define first passed variable (parameter) as 'number'.
   
return number 2// Use the function to return a number result of input number times two.
};

console.log(multiplyByTwo(5)); // Pass two as a variable 

would log 10 into the console.

So the parameter's value is assigned after the function has been coded?

BboyEatsbacon 12-25-2013 11:27 PM

Quote:

Posted by Platinum (Post 438870)
So the parameter's value is assigned after the function has been coded?

The parameter's value is defined every time the function is called. If you call the function with no value in that parameter, the function will be evaluated without a value for the parameter.

ex:

PHP Code:

console.log(multiplyByTwo(5));
console.log(multiplyByTwo(2));
console.log(multiplyByTwo()); 

Would return
PHP Code:

10
4


in the console log.


If you want to think of it as a real life example, think of it like this:
I go to the market and decide to get some items. I must tell the shopkeeper how much of each item I want, or the shopkeeper will be unable to get the item for me. Every time I want to get an item, I have to tell the shopkeeper how many of that item I want, and he (or she) doesn't automatically assume I want a certain amount of an item.

Platinum 01-30-2014 07:48 AM

I am stuck yet again;
PHP Code:

var creditCheck = function (income) {
    if ((
income) >= 100);{
        return; 
"You earn a lot of money! You  qualify for a credit card.";
    } else {
        return 
"Alas you do not qualify for a credit card. Capitalism is cruel like that.";
    }
}
creditCheck(75);
creditCheck(125);
creditCheck(100); 

Instructions:
Spoiler

Write a function called creditCheck that takes the parameter income.
Inside the function, write an if statement where if the income is greater than or equal to 100, the computer will return "You earn a lot of money! You qualify for a credit card."

Thank you BBoyEatsBacon for that explanation, I understand it now!

Dusty 01-30-2014 09:05 AM

You have a stray semi-colon here:

if ((income) >= 100);{

Shotgunz=bawss 01-31-2014 02:50 AM

Quote:

Posted by JesterTheCat (Post 429891)
Roblox shows you how scripting works.

He's right.
Roblox is now making a system where when people play your game you get virtual currency that you can exchange for real money.

So basically you design games and get real money for it.

Kendama 01-31-2014 01:11 PM

Quote:

Posted by JesterTheCat (Post 429891)
If you really wanna see a game that can make programming fun, check out Roblox. Not CoddeAcademy. Roblox shows you how scripting works.

I used to play that game, come to think about it now, it was pretty great. Except for staff and the the rules, I remember being able to say anything on my profile got deleted because it had another accounts name in it from my friends list.. but the coding was very involved with players creating maps. Too bad I was too young to comprehend much of it, except to copy and paste codes.

iHot 02-01-2014 12:53 AM

What is the best coding language to learn for a beginner? We've got JavaScript, HTML, Python, PHP etc. What is the most practical for a beginner?

Era News 02-01-2014 01:12 AM

Quote:

Posted by iHot (Post 449600)
What is the best coding language to learn for a beginner? We've got JavaScript, HTML, Python, PHP etc. What is the most practical for a beginner?

We'll I'm flying through JavaScript ATM and I only had basic scripting knowledge to begin with, try that!

hosler 02-01-2014 01:56 AM

Php was my first language. I liked it because it's easy to publish scripts online.

sssssssssss 02-01-2014 02:21 AM

Do HTML. It's probably the bare bones of them all. I did HTML and PHP together as my first.

Era News 02-01-2014 02:22 AM

Listen to them, maybe I chose the wrong one 0.0

iHot 02-02-2014 02:57 PM

Started doing html

Ryan 02-12-2014 08:07 AM

I've been doing python for almost a week now and i've gotten stuck. Here's what I have to do:

PHP Code:

Set bool_three equal to the result of 100**0.5 >= 50 or False 

But it keeps saying the bool_three value is wrong:

PHP Code:

bool_one == or 'Cleese' == 'King Arthur'

bool_two True or False

bool_three 
60 >= 50 or 5

bool_four 
== or 2

bool_five 
100 == 100 or != 


Torankusu 02-14-2014 02:37 AM

Quote:

Posted by Ryan (Post 452331)
I've been doing python for almost a week now and i've gotten stuck. Here's what I have to do:

PHP Code:

Set bool_three equal to the result of 100**0.5 >= 50 or False 

But it keeps saying the bool_three value is wrong:

PHP Code:

bool_one == or 'Cleese' == 'King Arthur'

bool_two True or False

bool_three 
60 >= 50 or 5

bool_four 
== or 2

bool_five 
100 == 100 or != 


Bool 3 needs to be False or False.
100**0.5 is the same as 100^0.5, which would be 10...


All times are GMT. The time now is 09:57 PM.

Powered by vBulletin/Copyright ©2000 - 2026, vBulletin Solutions Inc.