What is it about javascript?

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

Moderator: Turky

Re: What is it about javascript?

Postby Kerafym on Sun Feb 05, 2012 1:51 pm

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
Kerafym
jkb's bro & svail's fiend
 
Posts: 1223
Joined: Fri Jun 26, 2009 5:07 pm
Local time: Thu Aug 13, 2020 2:26 am
Karma: -1

Re: What is it about javascript?

Postby Laser on Sun Feb 05, 2012 6:21 pm

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
Laser
Kopite
 
Topic author
Posts: 2326
Joined: Sat Jun 13, 2009 4:15 am
Highscores: 1
Local time: Thu Aug 13, 2020 7:26 am
Karma: -9

Re: What is it about javascript?

Postby Max Rambone on Mon Feb 06, 2012 1:55 pm

Just keep at it and it will eventually just click.

That's been my experience anyway.

~archi
Eventus stultorum magister.
User avatar
Max Rambone
Ramboner
 
Posts: 2661
Joined: Thu Jun 11, 2009 5:55 am
Local time: Thu Aug 13, 2020 12:26 am
Karma: 16

Re: What is it about javascript?

Postby Kerafym on Mon Feb 06, 2012 3:53 pm

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.
User avatar
Kerafym
jkb's bro & svail's fiend
 
Posts: 1223
Joined: Fri Jun 26, 2009 5:07 pm
Local time: Thu Aug 13, 2020 2:26 am
Karma: -1

Re: What is it about javascript?

Postby Maximus on Mon Feb 06, 2012 8:58 pm

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
Maximus
 
Posts: 199
Joined: Sun Mar 14, 2010 2:57 pm
Location: FL, USA
Local time: Thu Aug 13, 2020 2:26 am
Karma: 0

Re: What is it about javascript?

Postby GUARD!AN on Thu Feb 09, 2012 2:57 am

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.
User avatar
GUARD!AN
Soup Eater
 
Posts: 3019
Joined: Mon May 25, 2009 3:41 pm
Location: San Francisco, CA
Highscores: 4
Local time: Wed Aug 12, 2020 11:26 pm
Karma: -147

Re: What is it about javascript?

Postby zeun4749 on Tue Feb 21, 2012 12:45 am

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.
zeun4749
 
Posts: 1
Joined: Fri Feb 17, 2012 11:52 am
Local time: Thu Aug 13, 2020 1:26 am
Karma: 0

Re: What is it about javascript?

Postby GUARD!AN on Sat Feb 25, 2012 5:45 am

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.
User avatar
GUARD!AN
Soup Eater
 
Posts: 3019
Joined: Mon May 25, 2009 3:41 pm
Location: San Francisco, CA
Highscores: 4
Local time: Wed Aug 12, 2020 11:26 pm
Karma: -147

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron