
Here is the comic for the 3rd June. I can see our 1st year programming tutor having a chuckle at this one. Out of pity, if anything. If your not sure you get the joke, then enrol onto a university computing degree and spend 3 years learning the difference. This will turn out to be quite expensive, mind you.
Alternatively, check that internet thing. If you cant be bothered reading up on it, then just laugh really loud to yourself, and for a bonus effect shout "AMERRY-CUNS B DUM!!"
Enjoy.
JB
3 comments:
Hi John,
I liked your latest cartoon, very funny :-), javascript is probably closer to perl than Java?
Just one inaccuracy I probably really shouldnt point out ... but im afraid javascript does have classes. Although you dont have to define a prototype as such, more of a tag it on sort of thing (Very techinical language there :-).
You just create a normal function, that acts as a constructor. Then call it to create an object:
function Car(name, type)
{
this.name = name;
this.type = type;
this.printDetails = printDetails;
}
function printDetails()
{
document.write("Car named: "+this.name+" type"+this.type"
");
}
mycar = new Car("Ford","Escort");
mycar.printDetails();
Maybe find this usefull?
Hope you are enjoying your holidays so far?
James (aka DJ?)
Trust you to pickup on that.
And just to redeem myself, whilst the debate still rages on teh subject of javascripts class/classless status, the constructors which contain the variables e.t.c could as easily be described as containers rather then classes, but in the interest of hilarity this comic references the lack of .class files required for javascript to run, honest :)
Mornin Dj hehe
T/K
...indeed
Post a Comment