What is it about javascript?

Get help for problems you may have with technology, math, or women.

Moderator: Turky

Kerafym
jkb's bro & svail's fiend
Posts: 1224
Joined: Fri Jun 26, 2009 5:07 pm
Reputation: -1

Re: What is it about javascript?

Post by Kerafym »

Are you having trouble with the object orientation in general?

I raged when I read the word "instantiation" in my CPP book. The FUCK does that even mean?
Hi. I'm angry on the internet.

User avatar
Laser
Kopite
Posts: 2326
Joined: Sat Jun 13, 2009 4:15 am
Reputation: -9

Re: What is it about javascript?

Post by Laser »

object orientation seems to be my downfall!

oh and its java and javascript, plus AS3
Less QQ more Pew Pew
Image
Image
Image
Image
Image

User avatar
Max Rambone
Ramboner
Posts: 2662
Joined: Thu Jun 11, 2009 5:55 am
Reputation: 16

Re: What is it about javascript?

Post by Max Rambone »

Just keep at it and it will eventually just click.

That's been my experience anyway.

~archi
Eventus stultorum magister.

Kerafym
jkb's bro & svail's fiend
Posts: 1224
Joined: Fri Jun 26, 2009 5:07 pm
Reputation: -1

Re: What is it about javascript?

Post by Kerafym »

Have you tried talking to your instructor personally about this? Maybe outline some stuff in particular you're struggling on and they can help you out more.
Hi. I'm angry on the internet.

Maximus
Posts: 199
Joined: Sun Mar 14, 2010 2:57 pm
Reputation: 0
Location: FL, USA

Re: What is it about javascript?

Post by Maximus »

Object oriented design is actually really logical and nice to yews once you understand it.

A "class" is a concept, a general class; like Car-ness. The class "Car" will list the possible attributes of Cars; what a Car can have. A Car can have a number of doors (int num_doors), a gas tank size (float gas_capacity), or audio systems (boolean has_satellite_radio). The class Car will also list the functions that apply to a Car; things a Car can do, or things that can be done to a Car. A Car can be started (void start()), have its AC turned on (void enable_aircon(boolean enable)), or report to user the current speed (int get_speed()).
An "object" is an instantiation of a class; a particular Car. My Nissan Rogue is a particular car. This car can be instantiated by using the constructor method and the "new" keyword; Car myCar = new Car(). It has a number of doors (num_doors = 4), a gas tank size (gas capacity = 15.0), and an audio system (has_satellite_radio = false). My Car can be started (myCar.start()), have its AC turned on (myCar.enable_aircon(true)), or report to me its current speed (mySpeed = myCar.get_speed()).

As an aside, this conforms pretty directly to the Greek philosophers' (Aristotle et al) view of understanding the world as abstract and universal Forms (classes), and specific and concrete Matter (objects). Matter/objects are particular things that exist, and Forms are the ideas that our intelligence abstracts from them. I hold the Form of my car in my mind; I do not hold the Matter of my car in my mind.
Image

User avatar
GUARD!AN
Soup Eater
Posts: 3019
Joined: Mon May 25, 2009 3:41 pm
Reputation: -147
Location: San Francisco, CA

Re: What is it about javascript?

Post by GUARD!AN »

No offense bob, I think you just made it even more confusing for him...

What I usually tell noobs is:

A class is the recipe you have for a cake. The final cake you have when you are done is the object.

The final cake (AKA object) has everything the recipe told you the cake needed to have in it (the ingredients AKA the data) and the instructions for making the cake (the methods).

It is somewhat alarming that you don't seem to realize that actionscript IS javascript (it's a superset), and the original post seemed to imply that being bilingual would mean you are more likely to be good at computer languages...

The problem is clearly that you don't understand the concepts. I think you are spending too much time focusing on the syntax and code, and not on the concepts of computer science (look up encapsulation, inheritance, polymorphism, etc)
GUARD!AN

–noun
1. guarding; protecting: a guardian deity.
2. a violent, tropical, cyclonic storm of the western North Atlantic, having wind
speeds of or in excess of 72 mph (32 m/sec).
3. (in Gnosticism) one of a class of powers or beings conceived as emanating
from the Supreme Being and performing various functions in the operations of
the universe.
4. a terrifying dream in which the dreamer experiences feelings of helplessness,
extreme anxiety, sorrow, etc.
5. The sensation and muscular spasm caused by an electric current passing
through the body or a body part.

zeun4749
Posts: 1
Joined: Fri Feb 17, 2012 11:52 am
Reputation: 0

Re: What is it about javascript?

Post by zeun4749 »

really want to pin it down to something, so my question is this: what is it about javascript that is stopping
Many people say Thai boxers in boxing, คาสิโนออนไลน์ are better than it is to fight in professional boxing. คาสิโนออนไลน์ better.

User avatar
GUARD!AN
Soup Eater
Posts: 3019
Joined: Mon May 25, 2009 3:41 pm
Reputation: -147
Location: San Francisco, CA

Re: What is it about javascript?

Post by GUARD!AN »

zeun4749 wrote:really want to pin it down to something, so my question is this: what is it about javascript that is stopping


Well you specifically should just quit if that's your attempt at coding a bot.
GUARD!AN

–noun
1. guarding; protecting: a guardian deity.
2. a violent, tropical, cyclonic storm of the western North Atlantic, having wind
speeds of or in excess of 72 mph (32 m/sec).
3. (in Gnosticism) one of a class of powers or beings conceived as emanating
from the Supreme Being and performing various functions in the operations of
the universe.
4. a terrifying dream in which the dreamer experiences feelings of helplessness,
extreme anxiety, sorrow, etc.
5. The sensation and muscular spasm caused by an electric current passing
through the body or a body part.

Post Reply