A
aaron.kempf
neither is worse than the other?
classes are more verbose, slower performance and no tangible benefit
classes are more verbose, slower performance and no tangible benefit
having a car class and a bicycle class and both of them have a weight
function.. so I've got to reuse some code but I CANT I need to copy
and paste the code in order to make my maintenance job harder.
RIGHT?
Class Car
sub weight
'lookup weight in the database
end sub
End Class
Class Bicycle
sub weight
'lookup weight in the database
end sub
End Class
and don't bitch about how I should inherit both from a common vehicle
class; because uh-- shit's too complex for one way inheritence; sorry.
it just doesn't have any benefit for me; I'd rather have a module with
weight any day of the week.
Exactly that's where classes help you. They code becomes easier to maintain.unnecessary code maintenance is not necessary
and how when I'm trying to explain to a C# friend why I use a module;
he's like 'uh I dont get it'
Zytan said:I've grown tired of monospaced fonts and moved to variable width
fonts, and smaller fonts, and moved all my toolbars out of the way to
essentially show line lengths 3 times or more the length they normally
would show. This helps ease the issue of readability.
Importing everything is a huge no-no.
classes are more verbose, slower performance and no tangible benefit
is not your method more verbose?
I am not writing the code for myself. It needs to be readable and easily
maintainable for other people reading and extending it.
I do not import anything, but I import any namespaces containing types I am
using. So reading the 'Imports' section shows which namespaces are used.
things faster.
tom
well you can either duplicate your code in multiple classes
or make a functions class and instantiate the class before using the
methods within another class right?
either way you got dependencies and no benefit