Codeacademy

Message Bookmarked
Bookmark Removed
Not all messages are displayed: show all messages (254 of them)

I'm in, I fiddle a bit with JQuery, but learning standard Javascript is something I should learn.

Chewshabadoo, Tuesday, 10 January 2012 15:17 (twelve years ago) link

lol so I'm already stuck on fizzbuzz p2. what's going wrong here?

// Write a statement that decides if the variable `i` is divisible by 3.

// for the numbers 1 through 20,
for ( i=1; i<=20; i++) {

// if the number is divisible by 3, write "Fizz"
if ( i%3=0 ) {
console.log("Fizz");
}

// otherwise, write just the number
else {i

}
}

iatee, Tuesday, 10 January 2012 15:23 (twelve years ago) link

http://learncodethehardway.org/

the marijuanaut farmer (am0n), Tuesday, 10 January 2012 15:24 (twelve years ago) link

xpost try
else {console.log(i)}}

?

The Eyeball Of Hull (Colonel Poo), Tuesday, 10 January 2012 15:26 (twelve years ago) link

why are you using console.log() in only one of the conditional clauses?

Bam! Orgasm explosion in your facehole. (DJP), Tuesday, 10 January 2012 15:27 (twelve years ago) link

cause I tried the other way too and it didn't work!

iatee, Tuesday, 10 January 2012 15:28 (twelve years ago) link

if ( i%3=0 )

Take a look back at this lesson page
http://www.codecademy.com/courses/programming-intro/5#!/exercises/0

and console yourself with the knowledge that this is probably the #1 most common and annoying bug in programming a C-like language

Schleimpilz im Labyrinth (a passing spacecadet), Tuesday, 10 January 2012 15:28 (twelve years ago) link

(that was me trying not to spell the answer out completely but I possibly just succeeded in sounding vague and dickish so if need be I'll be more direct)

Schleimpilz im Labyrinth (a passing spacecadet), Tuesday, 10 January 2012 15:30 (twelve years ago) link

haha ty

iatee, Tuesday, 10 January 2012 15:30 (twelve years ago) link

you need double equal sign ==

the marijuanaut farmer (am0n), Tuesday, 10 January 2012 15:31 (twelve years ago) link

haha lol I completely glossed over that

Bam! Orgasm explosion in your facehole. (DJP), Tuesday, 10 January 2012 15:32 (twelve years ago) link

triple even? they said there was a difference between double and triple

iatee, Tuesday, 10 January 2012 15:33 (twelve years ago) link

triple double check

the marijuanaut farmer (am0n), Tuesday, 10 January 2012 15:39 (twelve years ago) link

hah I didn't even think about == which is really dumb of me since I am writing Python code today. Told you my Javascript sucks.

The Eyeball Of Hull (Colonel Poo), Tuesday, 10 January 2012 15:45 (twelve years ago) link

I'm sure this is gonna get really annoying for ppl who actually program but I'm finding it fun / pretty well-designed so far

iatee, Tuesday, 10 January 2012 15:46 (twelve years ago) link

yeah i was enjoying myself doing this. but now i'm kind of going insane being stuck at the part where you have to make 15=fizzbuzz.

Jibe, Tuesday, 10 January 2012 15:50 (twelve years ago) link

Spoilers:

____________
if {
15 'fizzbuzz' bit
}
else {
everything else
}
____________

Chewshabadoo, Tuesday, 10 January 2012 15:54 (twelve years ago) link

there's another week before new material so it's not horrible to be stuck for a while and think it over. I like that it's not patronizing enough to make us do super easy stuff for hours at a time but at the same time you sorta need to repeat something a lot of times / ponder over it in order to really get it in your head.

iatee, Tuesday, 10 January 2012 15:55 (twelve years ago) link

i agree. my only concern is what happens if you legitimately get stuck and can't really see where you're going wrong/what needs to be done? i'm glad to see there are ppl here who can help but they might get bored of answering simple requests. you can probably google the answers too and thus get the right one without really understanding why its right and why you were messing up.

Jibe, Tuesday, 10 January 2012 16:08 (twelve years ago) link

I'm sure this is gonna get really annoying for ppl who actually program but I'm finding it fun / pretty well-designed so far

― iatee, Tuesday, January 10, 2012 10:46 AM (30 minutes ago) Bookmark Suggest Ban Permalink

yeah this is fun!

call all destroyer, Tuesday, 10 January 2012 16:18 (twelve years ago) link

i'm glad to see there are ppl here who can help but they might get bored of answering simple requests. you can probably google the answers too and thus get the right one without really understanding why its right and why you were messing up.

― Jibe, Tuesday, January 10, 2012 11:08 AM (13 minutes ago)

firefox -> tools -> web developer -> error console

the marijuanaut farmer (am0n), Tuesday, 10 January 2012 16:26 (twelve years ago) link

we'll see how it goes I guess. I like the pace so far, and w/ a group of people doing it I could see it working?

also I don't think we'll be encountering any 'higher level thinking skills' problems for a long time, right now it's just 'how do we format this'

xp

iatee, Tuesday, 10 January 2012 16:28 (twelve years ago) link

or firebug

the marijuanaut farmer (am0n), Tuesday, 10 January 2012 16:28 (twelve years ago) link

if it consoles u (punz, lol) iatee, i forgot about the === entirely and originally wrote ( i % 3 is 0 ). imagine my shock when they didn't recognize the 'is' syntax.

Mordy, Tuesday, 10 January 2012 17:21 (twelve years ago) link

Okay, I'm stuck on the "Fizzbuzz". I could code it so that for the iteration of 15 it says FizzBuzz, but I'd prefer to code it so that it would check for any numbers divisible by both 3 and 5 (so, for instance, if I changed the count length it would still work and say FizzBuzz in the right place). But I can't work out how to do it.

emil.y, Tuesday, 10 January 2012 17:47 (twelve years ago) link

I think "and" is && in Javascript if that helps?

The Eyeball Of Hull (Colonel Poo), Tuesday, 10 January 2012 17:49 (twelve years ago) link

SPOILER TAGZ

for ( i % 3 === 0 ) {
for (i % 5 === 0 ) {
console.log ("Fizzbuzz");
}
else {
console.log ("Fizz");
}

^^ I think that's how I did it.

Mordy, Tuesday, 10 January 2012 17:50 (twelve years ago) link

fizzbuzz done!

call all destroyer, Tuesday, 10 January 2012 17:50 (twelve years ago) link

the second for should be an if i think

Mordy, Tuesday, 10 January 2012 17:50 (twelve years ago) link

yeah i did an &&

call all destroyer, Tuesday, 10 January 2012 17:51 (twelve years ago) link

emily, you can nest one if/else inside another if/else. if that helps?

vision creation newgod (c sharp major), Tuesday, 10 January 2012 17:52 (twelve years ago) link

^ that's what i did

Mordy, Tuesday, 10 January 2012 17:52 (twelve years ago) link

Thanks guys. I tried "&" but I don't think any of the lessons had mentioned "&&" before. I was so close!

I think their preferred method was nesting, but the && trick seemed more natural to me?

emil.y, Tuesday, 10 January 2012 17:54 (twelve years ago) link

I'm still stuck on buzz tbh

I keep toying around with } and { everywhere

iatee, Tuesday, 10 January 2012 17:56 (twelve years ago) link

is it supposed to be an if else? two ifs? two fors? couldn't all of those work if I formatted it correctly?

iatee, Tuesday, 10 January 2012 17:59 (twelve years ago) link

"else if" rather than "if else" should do it.

emil.y, Tuesday, 10 January 2012 17:59 (twelve years ago) link

syntactically it's:

if ( )

else if ( )

else if ( )

else ( )

Mordy, Tuesday, 10 January 2012 18:00 (twelve years ago) link

That's the one.

emil.y, Tuesday, 10 January 2012 18:01 (twelve years ago) link

Or, well, that works for FizzBuzz, but if you're still stuck on Buzz you want:

if ()

else if ()

else ()

emil.y, Tuesday, 10 January 2012 18:02 (twelve years ago) link

This is good fun, FizzBuzz was the first one I feel like I've actually solved through thinking rather than just arbitrarily moving { around until it just works (used nested if to fix it)

It hurts my brain a bit that on my screen { and ( are almost indistinguishable, and it took me ages of c+ping before I realised the % is just the percent sign.

useless chamber, Tuesday, 10 January 2012 18:04 (twelve years ago) link

ah got it, it was just one } that was haunting me

iatee, Tuesday, 10 January 2012 18:04 (twelve years ago) link

i hope they keep putting out lessons all year. so far they only have 3 up, and i can't imagine it's a breeze to make a new lesson every week.

Mordy, Tuesday, 10 January 2012 18:07 (twelve years ago) link

from the looks of it it's an actual startup w/ people who work there

iatee, Tuesday, 10 January 2012 18:07 (twelve years ago) link

so I'm guessing they're more concerned about keeping the traffic after week one + making the lessons is the easy part

iatee, Tuesday, 10 January 2012 18:08 (twelve years ago) link

it can be hard to see but if you click next to a { or } it will highlight its mate (and i think highlight red if it doesn't have one).

call all destroyer, Tuesday, 10 January 2012 18:16 (twelve years ago) link

oh that's nifty

iatee, Tuesday, 10 January 2012 18:18 (twelve years ago) link

oh that's nifty

iatee, Tuesday, 10 January 2012 18:18 (twelve years ago) link

really interesting to see that theyre using triple equals so early on.. i code for a living and i'm still not completely clear on the difference between == and === in javascript

pat methamphetamine (diamonddave85), Tuesday, 10 January 2012 18:30 (twelve years ago) link

yah they just said == can occasionally cause problems?

call all destroyer, Tuesday, 10 January 2012 18:35 (twelve years ago) link

I think that's a deliberate policy to get people in the habit of using === unless they're absolutely sure they want ==, which can cause some hard-to-find bugs

a lot of JS tutorials seem to be doing that now (I last used JS in like 2003 but decided to brush up on the basics a bit last year to do some HTML5 Canvas stuff)

quite tempted to try this tonight instead of doing some homework which is due tomorrow

(I also code for a living but my skills are very out of date and I'm stuck in an obscure (not difficult, just not resulting in any transferrable skills) rut at work. I can either be scared of this when in 5 weeks' time there are 250,000 new people who know just as much as I've been getting by on in paid jobs for a decade - and yes, I do think that's possible - or I can at least look at it myself...)

Schleimpilz im Labyrinth (a passing spacecadet), Tuesday, 10 January 2012 18:56 (twelve years ago) link

i hope someone at codecademy is reading the funny stuff that i'm writing when they ask me to write paragraphs and stuff like that. seriously there's been some comedy gold, hope they're checking it out and laughing

Karl Malone, Saturday, 18 January 2014 16:57 (ten years ago) link

youre the one theyve been waiting for

lag∞n, Saturday, 18 January 2014 17:00 (ten years ago) link

I might try doing this again. I petered out fairly quickly last time.

emil.y, Saturday, 18 January 2014 17:15 (ten years ago) link

I know it would be deeply unethical, but it would be neat if they collected all of the things that people chose to wrote and published them as one <ol>list</ol>

btw this week i'll be peppering my posts with beginning html tags, hope everyone is ok with that

Karl Malone, Saturday, 18 January 2014 17:15 (ten years ago) link

I can't find a way to add friends or start a custom ilxor group. boo.

Yeah I haven't done this for a while, been meaning to learn jQuery and also my html/css is super-rusty and I'm meant to do some web stuff for work now so it might be an idea to pick it back up, but I have mile-long list of good intentions of that kind so eh

not a player-hater i just hate a lot (a passing spacecadet), Saturday, 18 January 2014 17:24 (ten years ago) link

yeah, it's kind of weird that they don't let you make a group or add "friends"! some commenters on one of their help page were speculating that codecademy intends to monetize the site by selling it to businesses/organizations, who would then get to take advantage of custom groups/friends/etc.

Karl Malone, Saturday, 18 January 2014 17:28 (ten years ago) link

The problem with not doing it for several months is that they rewrite half the ones you've already done so they're not ticked off any more and my completionist tendencies go nuts

not a player-hater i just hate a lot (a passing spacecadet), Saturday, 18 January 2014 18:44 (ten years ago) link

oh, didn't see this, karl. i did finish all of ruby but now i've done nothing for a few weeks so i forgot it all and too much to do with my actual job :(

sent from my butt (harbl), Sunday, 26 January 2014 02:46 (ten years ago) link

one year passes...

1 Year Passes...

so yeah, i fizzled out as well. iirc, i started to sense that the instruction was really thin in some areas, like i was rushing through all of CSS in like 45 minutes and i needed way more time and repetition. i guess i should have just slowed myself down and assigned myself exercises and tried to experiment a little more.

but i kind of want to try something else out, a little more in-depth. has anyone tried udacity? are there other good alternatives? i'd be willing to pay a little bit for something a little better. a little for a little.

Karl Malone, Saturday, 21 February 2015 17:59 (nine years ago) link

kinda feel like using these interactive tutorials as part of a wider constellation of instructional material is more useful than as a singular walled garden, like google a lot which is what u do when ur building a webiste irl, get a book, and most importantly work on an actual project, which i mean u do make actual websites so youve got that which the best learning environment

lag∞n, Saturday, 21 February 2015 18:04 (nine years ago) link

these learn 2 code exercise sites present such a small fraction of the actual issues u will encounter irl which is part of what makes them useful but also limits their effectiveness as a learning environment

lag∞n, Saturday, 21 February 2015 18:09 (nine years ago) link

yeah plan what you want to finish it and google every little roadblock til you get there imo

also read the documentation I found that stuff a lot more useful than college notes etc at times

local eire man (darraghmac), Saturday, 21 February 2015 18:10 (nine years ago) link

like coding is not actual coding which is why ppl generally call it developing these days

lag∞n, Saturday, 21 February 2015 18:11 (nine years ago) link

i guess what's difficult for me is that i want to get past the basic "beginner's website" that they teach you to build and learn how to manipulate things in experimental ways.

i really like this guy geoffrey lillemon's stuff. he changes his website constantly and the most recent version is really difficult to use and loads slowly, but generally i like how his art is embedded into the website, the way the user interacts with it. there are all these layers of images (i don't know if they're videos or flash or what) and...it's hard to explain.

i just want to know what kinds of code he's using. i'd like to be barely proficient at them so i can have more freedom in making my own stuff without relying so heavily on others.

is it all just JS/CSS/HTML?

Karl Malone, Saturday, 21 February 2015 18:11 (nine years ago) link

i guess the obv answer is that i need to be patient and just learn everything possible about the basic website so that i can deconstruct it? learn to crawl before you can walk/run, etc.

Karl Malone, Saturday, 21 February 2015 18:13 (nine years ago) link

i just wish there was a codecademy module that went through all the things that are NOT recommended. like, autoplaying videos and music, creating strobe light effects that might damage the viewer's eyes and cause them to sue, making lines of text blend to each other and become unreadable. instead everything is like "now we're going to teach you how to make a very professional CV that any senior vice president would love!"

Karl Malone, Saturday, 21 February 2015 18:17 (nine years ago) link

u can see if u inspect hes using some css animations and also loading some js files for... something - u shd email him and ask tho good chance if u show interest in his particular project hed be into talking about it, espcailly if u showed him the cool stuff u made, or he might have it up on github too

lag∞n, Saturday, 21 February 2015 18:18 (nine years ago) link

i'm guessing he'd never respond, heh. he's one of the few people who appear to have taken the net art thing to the next level and probably has loads of money and doesn't talk to strangers

Karl Malone, Saturday, 21 February 2015 18:19 (nine years ago) link

or if hes to busy and bigtime to f w u track down some lesser collaborator, someone will have blogged or want to talk to u or have a github

lag∞n, Saturday, 21 February 2015 18:21 (nine years ago) link

when ppl do clever things they like to talk abt it is the assumption im working under

lag∞n, Saturday, 21 February 2015 18:22 (nine years ago) link

i have a friend who does similar stuff http://www.yellowandorange.com tho i think hes mostly video these days anyway id be happy to introduce u i think he has a show coming up maybe

lag∞n, Saturday, 21 February 2015 18:24 (nine years ago) link

that's really cool! that's exactly what i'm talking about. i'd love to meet him sometime, but i want to get a lot better at it myself first. i'd love to talk to these people when i share the same CS vocabulary, or at least parts of the same vocabulary.

Karl Malone, Saturday, 21 February 2015 18:31 (nine years ago) link

oh but regardless if he has a show coming up let me know, it would be nice to meet you and to see his stuff in person

Karl Malone, Saturday, 21 February 2015 18:32 (nine years ago) link

i cld just introduce u on facebook or w/e, i wldnt worry abt not having the right skills hes super nice and humble and im sure wld be happy to talk shop, tho u wld have to refriend me lmao

lag∞n, Saturday, 21 February 2015 18:33 (nine years ago) link

smdh at myself

Karl Malone, Saturday, 21 February 2015 18:50 (nine years ago) link

ha i do actually remember thinking to myself i have already been obnoxious once toward zach today maybe i shdnt go in a second time but then i did

lag∞n, Saturday, 21 February 2015 18:53 (nine years ago) link

anyway dont worry ilx we r friends again

lag∞n, Saturday, 21 February 2015 18:53 (nine years ago) link

<3

for real let me know if you attend one of his shows anytime soon. i'm reading/watching this and like his stuff a lot so far.

Karl Malone, Saturday, 21 February 2015 18:55 (nine years ago) link

cool will do, tbh i havent seen him in a few years but thats mostly a function of not being in new york and were not like super tight but id be cool to see his show and say hi

lag∞n, Saturday, 21 February 2015 18:57 (nine years ago) link

tho i might be totally imagining that he said he had a show coming up, but maybe we cld visit his studio or something

lag∞n, Saturday, 21 February 2015 18:58 (nine years ago) link

oh no wait here we go https://instagram.com/p/zOGmAbL3CT

lag∞n, Saturday, 21 February 2015 18:59 (nine years ago) link

cool, yeah i'd be up for going to the show for sure

Karl Malone, Saturday, 21 February 2015 19:10 (nine years ago) link

cool man its on

lag∞n, Saturday, 21 February 2015 19:11 (nine years ago) link

four months pass...

i've been doing the web design courses w/ this - they're fun!

Mordy, Wednesday, 15 July 2015 13:42 (eight years ago) link


You must be logged in to post. Please either login here, or if you are not registered, you may register here.