module or shared method?

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
well it depends on what the use is and whether it'll be reused in other projects
 

scisoft

New member
Joined
Jun 16, 2004
Messages
2
Programming Experience
10+
Modules (class modules) are fairly more effective from design and reusability point. Shared method may peform slightly faster, but in most cases, you will not be able to measure the diffrence. If speed is what you really need, create the time critical subrutines in the unmanaged C code.
___________________
VB /webdesign/Php/C++/SEO

programming and design
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
i prefer modules myself, it's easier to keep track of code and it's easily reusable
 

ayan

Member
Joined
Jun 9, 2004
Messages
18
Programming Experience
Beginner
for methods, i'd use shared as though writeline [ shared methods ] as a member of console class. but in enums and structs, it's better be modules. though i don't know much about this. lol
 
Top Bottom