Kingius:
Quote: " Assembly is only good for one thing. Speed. Its a pain to develop anything in it because it takes so long to and is difficult to debug. Thats why compilers (and high level languages) were developed, so that we didnt waste weeks banging our heads against walls with low level bugs and could actually get on with making the program actually do something, which was the point in the first place."
Personally, one of the biggest myths perpetuated about assembly, is that it's difficult to debug. It's presented far too often as either a reason not use it, or that it's somehow inferior form of programming. This opinion seems to be created from a gross miss understand of the tools available, or the impression that coders write code in a 'line by line' fashion. They don't.
Quote: "You would also end up with a program that is much harder to follow the more you want to do with those three example devices. Imagine if every device had 20 functions."
Well that's semantics really. In both cases you end up with the example of 20 commands / functions.
i.e
PrintToScreen, PrintToDDS, and PrintToPrinter
Print.Screen, Print.DDS, Print.Printer
Both convey to the programmer their object/action. What can not be overstated though is the place of modern IDE's level of integration with a high level oo based languages.
Now, Imagine writing VB code with a text editor.
Quote: " I wonder if you see how it makes sense for those to belong to the objects and not the main program? What if some of those functions are called from other functions, and you do not want them to be executable from the main program? In OOP, you make them private to do this. Private functions and variables do not exist outside of the object itself and cannot be accessed outside of this scope. Free code security!"
Well true, protection is a nice benefit in the modularity of code/data. Although it really doesn't take a lot of effort to write equally modular code in procedural basic. It's just missing some creature comforts.
Kevin Picone
Play Basic - Visible Worlds - Kyruss II
[url]www.underwaredesign.com[/url]