08-27-2003, 07:18 AM
Quote:yeah, which is no types!
Nathan Wrote:Dots in variable names are bad practice, 'cause in every estructured language the dot is used to express a member of a data structure.
I find dots useful... for end of statements and for creating my own "taxonomy". :rotfl:
Why have data structures when you can express things EXPRESSLY?
To be more tidy.
To keep better track of your variables.
To write less.
To have better file managing.
To share data among modules in an easier manner.
To ease changes in your variable data (encapsulation).
Imagine that you have all your player's values in separate variables. You have to pass values to subroutines, you have to write 20 parameters. If you wanna add a new value you have to change every SUB call and every SUB header. Lack of encapsulation makes every subtle change an oddisey.
You just don't like TYPEs, but don't try to find an excuse 'cause you haven't Avoiding data structures is not good at all. It is just not so bad.
Not using TYPEs is just a matter of taste. But telling a newbie not to use'em is not a good practice (not didactic).
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i