Codecademy

Discussion in 'Mac Programming' started by Tilpots, Jan 10, 2012.

  1. macrumors 601

    Tilpots

    Joined:
    Apr 19, 2006
    Location:
    Carolina Beach, NC
    #1
    I'm giving Codecademy a try and wanted to see if anybody else is doing the same. Maybe we can help each other out. So far, it's been good, but when I've gotten stuck, there's no place to ask questions. Please, feel free to ask questions here and hopefully we'll help each other get by.

    If you haven't heard of it, read this and this. So far they've signed up over 200,000 people for their January classes.

    If you're one of those +200k, say "hello!"
     
  2. macrumors member

    dauber

    Joined:
    Jan 10, 2012
    Location:
    Chicago
    #2
    I really would LOVE to do CodeAcademy's Ruby On Rails course, but 1) I have a day job, so their schedule wouldn't work, and 2) the $6000 is extremely cost-prohibitive. (Is there financial aid available??)

    In fact, I'm finding the whole Ruby On Rails thing to be extremely exclusive...kind of a pain. The only other class I could find was a program where I'm going for my master's, and you have to pay a nonrefundable application fee and then they'll decide whether or not to accept you, and the schedule is RIDICULOUS, like three nights a week...
     
  3. thread starter macrumors 601

    Tilpots

    Joined:
    Apr 19, 2006
    Location:
    Carolina Beach, NC
    #3
    I think we're talking about different programs. Is the Code Academy you're referring to in Chicago? The Codecademy I'm working on is an online, beginner's, learn-to-program course. If I'm gonna get billed $6,000 for this, I'm not going home tonight. :eek:
     
  4. macrumors 6502a

    Hexiii

    Joined:
    Jun 30, 2011
    Location:
    Prague, Czech Republic
    #4
    Wow, this seems like a great idea. I've done 4 lessons so far and I think I am going to continue tomorrow :)
     
  5. macrumors member

    dauber

    Joined:
    Jan 10, 2012
    Location:
    Chicago
    #5
    Ahh...okay...didn't realize there was that one. :)

    I might do it just to brush up on my JavaScript skills...
     
  6. thread starter macrumors 601

    Tilpots

    Joined:
    Apr 19, 2006
    Location:
    Carolina Beach, NC
    #6
    Nice! I've done 2 so far. Hoping to get some time this weekend do more.

    If you already know javascript and take the class, I'd love to hear your thoughts on how effective the course is and what your thoughts are on the program. I basically know zero about programming so I hope these classes are thorough!
     
  7. Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #7
    Thread moved to Mac Programming as we do get a lot of beginners 'round these parts and this could be a useful resource for them.

    B
     
  8. thread starter macrumors 601

    Tilpots

    Joined:
    Apr 19, 2006
    Location:
    Carolina Beach, NC
    #8
    Thanks, balamw!


    Newbs and skilled alike, feel free to share your talents!
     
  9. macrumors newbie

    Joined:
    Jul 10, 2008
    #9
    FizzBuzz

    I can't seem to figure out FizzBuzz. I'm stuck at step 4 because either its not possible to have more than one "else if" or I'm doing something else wrong. Either way I get into a rut where I have 3 answers for #15 'Fizz', 'Buzz' & 'FizzBuzz', 2 answers, Fizz or Buzz and FizzBuzz, or one answer and then I lose the other Fizzes or Buzzes throughout the other 20 #s. Anyone know why?
     
  10. thread starter macrumors 601

    Tilpots

    Joined:
    Apr 19, 2006
    Location:
    Carolina Beach, NC
    #10
    ^^Unfortunately, I'm not that far along yet. Hopefully I'll get there by the weekend and I'll try to help then.
     
  11. macrumors 65816

    Airforcekid

    Joined:
    Sep 29, 2008
    Location:
    United States of America
    #11
    I signed up for it not to far in just working with arrays sometimes though I can't pass a section even if I copy and paste the code it gives in the hint section. Overall it's easy and fun for free.
     
  12. macrumors Pentium

    KnightWRX

    Joined:
    Jan 28, 2009
    Location:
    Quebec, Canada
    #12
    What language are you trying to write FizzBuzz in and what is your code ? We can't know why if you don't show us the code.

    FizzBuzz is pretty simple really.
     
  13. macrumors regular

    Joined:
    Jul 2, 2010
    Location:
    Winnipeg, Canada
    #13
    Seems interesting! I'll take a look when I have some time. I'd like to brush up on some things.. Feels like I haven't programmed in a while.

    (Says a third year CS student) :D
     
  14. macrumors member

    Joined:
    Jan 12, 2012
    #14
    Can anyone explain Javascript Quick Start Lesson 1 Exercise 4 to me please?

    I managed to get through the first part and FizzBuzz okay but this has me stumped. I'll copy and paste what it wants me to do below.

    thanks


    // Don't worry about the syntax of declaring a
    // function - we'll go over that later.

    // This should return true if the first number is bigger
    // than the second number and false if the first number
    // is smaller or equal to the second number.
    function isGreaterThan(first, second) {

    // Add a test here to compare the two numbers
    if ( ) {
    return true;
    } else {
    return false;
    }
    }

    I know I have to put something after IF but i just don't know what.

    Much appreciated.
     
  15. macrumors Pentium

    KnightWRX

    Joined:
    Jan 28, 2009
    Location:
    Quebec, Canada
    #15
    This should return true if the first number is bigger. So... hum... check that it is ?

    Use the comparison operators.
     
  16. macrumors member

    Joined:
    Jan 12, 2012
    #16
    I sort of understand what I have to do, maybe if I explain what I'm trying to put in.

    So first thing is I'm not sure if I'm supposed to use isGreaterThan or if i can just use >

    Next i don't understand if I should put parenthesis after if and before isGreaterThan and then after this again with the numbers in it, ie

    if ( 4 isGreaterThan (8, 10) )


    Finally I don't really understand why there is supposed to be two number simply seperated like that anyway


    This must be coming across as ultra-noob...sorry
     
  17. macrumors member

    naples98

    Joined:
    Sep 9, 2008
    Location:
    Houston
    #17
    The function isGreaterThan accepts two numbers which are stored in the variables "first" and "second". You should understand this by now. You don't know what is stored in them though so the function is supposed to tell you which is bigger.

    Your job is to use comparison operators (>, <, >=, <=, etc.) to determine if first is bigger than second. If so, you return true.

    You do not call the isGreaterThan function from within the isGreaterThan function to do this. This is called recursion and is way more advanced so don't worry about it, just don't do it.
     
  18. macrumors Pentium

    KnightWRX

    Joined:
    Jan 28, 2009
    Location:
    Quebec, Canada
    #18
    The exercise is to implement the isGreaterThan function. If you call it from inside the if, you're doing recurssion, which is going to end up as a big infinit loop in this case (and eventually crash the application from lack of stack space).
     
  19. macrumors member

    Joined:
    Jan 12, 2012
    #19
    Thanks for taking the time to help but I still can't seem to get it.

    You're right that I should have spotted the fact that "First" and "Second" were variables because of the quotation marks and I can see now what the Comparison Operators are, but I'm still drawing a blank, I'll post what I have below and try and explain what I'm trying to do.

    function isGreaterThan(first, second) {
    if (first >= second) {
    return true;
    } else {
    return false;
    }
    }


    So I'm trying to prove that the variable "First" is higher than "Second" so I can get 'true' so I thought I could just use If to state that.

    Part of the problem i think is that it won't let me reload the original dialogue so i don't know if there's anything I've added erroneously and not taking out.

    Haha I was so smug at how I flew through the first part, I think I probably need to go back and do it again.
     
  20. macrumors regular

    Joined:
    Jul 2, 2010
    Location:
    Winnipeg, Canada
    #20
    According to the instructions, you want to make the if statement return true ONLY when the first number is GREATER than the second. If the first value is SMALLER or EQUAL to the second, you want to return false.

    Read the instructions carefully, and compare it with your code. You're very close. ;)
     
  21. macrumors member

    dauber

    Joined:
    Jan 10, 2012
    Location:
    Chicago
    #21
    Well...FizzBuzz just plain will not run. Anybody else have this problem? Tried Firefox and Internet Exploder on W7...
     
  22. macrumors member

    naples98

    Joined:
    Sep 9, 2008
    Location:
    Houston
    #22
    "Will not run" is pretty hard to debug. Is it just your FizzBuzz program or every piece of code you try to run?

    I've had no problems with the website and I'm using Safari on Mac OSX
     
  23. macrumors member

    Joined:
    Jun 19, 2009
    #23
    did you call your function of just declare it?
     
  24. macrumors member

    dauber

    Joined:
    Jan 10, 2012
    Location:
    Chicago
    #24
    I didn't have a function in FizzBuzz; just straight code.

    I did leave feedback saying it wouldn't run (that is, no code would execute. at all.) -- and it suddenly works now, so there might have been a bug. Used the exact same code.

    Got through the whole thing now.
     
  25. chaser7016, Jan 14, 2012
    Last edited: Jan 14, 2012

    macrumors newbie

    Joined:
    Sep 1, 2010
    #25
    I just found this Codecademy and I'm a bit lost on one of the first exercises.

    I typed var myName then typed myName = Robert successfully. It then asked me to enter full name (myFullName), which I entered var myFullName = Robert Jones, but it says that's wrong. Any idea where I went wrong?

    Also anyone know other sites like Codecademy.com or CodePupil.com?

    I'm an eager beaver and want to create my own web app in next 3 months!
     

Share This Page