Friday, December 21, 2007
What is wrong with adobe, are they trying to ruin a very good product? Today I downloaded a pdf-fiel and guess what, I didn't seem to have any pdf-reader on my laptop. Not so strange Since I just reinstalled it. So I let windows Cp do it's work and search for a program online thinking it would find acrobat reader but no it found nothing that could open a pdf file. And that was the first strange thing. So I looked for it via google and found the dutch downloadpage.
I use Firefox but I didn't really read the fineprint or not so fineprint. So it instaled a plugin really fast after asking if it could but what choice do I have, nothing bad happend it happens to be a pretty good downloadmanager. So then it starts downloading and installing. Nothing bad but still, why are people thinking that they can any people by instaling more things then I need or want.
And then the good part. Right after instalation it tells me I need to update, for Gods sake, I just installed a brand new version. Please Adobe be good and clean up your act, remember less is more.


12/21/2007 8:18 PM Romance Standard Time  #    Disclaimer  |  Comments [0]  |  Trackback

My explanation


Well there seems to be some confusing opinions on the net over what OOP seems to be. I've been reading up on the concepts of OOP after a little discussion with our teacher yesterday where he did most of the talking.

He followed the APIE principal

  • A = Abstraction
  • P = Polymorphism
  • I = Inheritance
  • E = Encapsulation

1. Abstraction


Not many sites talk about this concept as part of OOP but apparantly this means that abstract real world things to your code, for example Car, Vehicule, Sportscar, ... become objects. So you try to mimic Real world objects into an OO model.


2. Polymorphism


According to the teacher (who I hope will read this and orrect me), polymorphism is the fact that a certain object can be different at designtime then at runtime.

For example: A car is a vehicle and a sporstcar is a car. A vehicle has a max-speed of 80 and a car a max-speed of a 100 and sportscar a max-speed of 120. They all share the same method getspeed. At designtime you do this.

More or less pseudocode.

Vehicle vehicle = new Vehicle();
print vehicle.getspeed(); // This will give you 80

Vehicule vehicle = new Car();
print vehicle.getspeed(); // This will give you 100

Vehicle vehicle = new SportsCar();
print vehicle.getspeed(); // This will give you 120

So the vehicle is always of type Vehicule but depending on the implementation it will return a different speed.

3. Inheritance


A. The subclass inherits the methods of its superclass.
B. The subclass can add methods other then the once of the superclass.
C. The subclass can implement a method of the superclass differently via overriding.

4. Encapsulation


The hiding of your private attributes via public getters and setters.


Other explanations


I can live with the above, but I also like the opinion of others and they seem to differ somewhat.

This site seems to be in agreement somewhat.


This site seems to have a different concept of polymorphism.

According to them polymorphism is nothing more then overloading and overriding

This professor of an Austin, TE college seems to forget about abstraction.
Here he talks about Encapsulation.
Here about Polymorphism.
Here about Inheritance.

And this one tries to be too simple. Starting here.

So if anyone can come up with a better site please do.



12/21/2007 10:31 AM Romance Standard Time  #    Disclaimer  |  Comments [0]  |  Trackback
 Tuesday, October 09, 2007
Just so I don't forget this is the syntax.
Imports Lan = Langauge

Where Language is the namespace and Lan is the alias.

And not the other way round which I apparently find more logical.

Especially usefull if you got a namespace and a variable that share the same name (which shouldn't happen ;-)).


10/9/2007 1:49 PM Romance Daylight Time  #    Disclaimer  |  Comments [0]  |  Trackback
So someone tell me why you get to this blog by searching viagra? I never used the word :-).



10/9/2007 11:25 AM Romance Daylight Time  #    Disclaimer  |  Comments [0]  |  Trackback
Allthough I don't get them very often Nullref exceptions do happen and guess what they even happen with VS




This ussually means I have to restart VS ;-).
10/9/2007 11:21 AM Romance Daylight Time  #    Disclaimer  |  Comments [0]  |  Trackback