xiphias: (Default)
[personal profile] xiphias
I don't program. I haven't programmed since college; I'm not a coder. But someone, probably Lis, pointed me to codeacademy.com which is doing Code Year. They send you an exercise a week, and you do it, and it teaches you to code.

So far, we haven't hit anything I don't remember from sophomore year of high school. I'm having to knock off a little bit of rust, but it's all easy stuff.

The thing is . . . CodeYear is teaching JavaScript. And I'm already, after only five weeks, starting to develop an allergy to JavaScript.

High school computer science class was taught in Pascal, which, whatever its failings as a language to actually WORK in, is an excellent pedagogical language. Then I taught myself C, by going through the classic K&R. I never got the hang of Lisp/Scheme, but did manage to claw my way to a vague comprehension of C++.

The thing about JavaScript is that it just feels sloppy. I like declaring variable types before using them. It makes me think things through before starting.

Anyway, so far, Code Year hasn't thrown anything at me that I didn't do in high school. But we'll see what comes down the pike.

Edited to Add:

I just posted a question to the Codecademy team:

You can create an object property just by using it? Isn't that just BEGGING for trouble?



If we use the "var foo = new Object()" construction, and then fill in the properties using "foo.property1 = VALUE" and so forth, aren't we just asking for trouble, when we later on try to reassign foo.property1, but accidentally assign the value to foo.Property1? And then we later try to access foo.property1, but we don't know that we've accidentally got both a property1 and a Property1 in there. . .

Is that actually what would happen?


So, I'll ask it here, too.

Am I understanding that right? If so, how do people deal with that?

Edited to Add: As per the request in the comments, I just changed "Code Academy" to "Codecademy", since they're actually different organizations. Sorry about that, and thanks for the correction!
This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

November 2018

S M T W T F S
     123
45678910
11121314151617
18192021222324
252627282930 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags