I have started learning VB.NET lately and have read 1 Step-By-Step beginners book and am now moving onto an Advanced book and both have failed to really explain what the point in modules and classes are.
Are modules and classes simply ways to organize functions and sub-procedures?
E.g. A class named MyMathClass which contains 100 different Math functions would be easier to skim through compared to a file with 100 non-related functions.
Modules are a VB6 left-over. Required for compatibility, there’s little point in using them when you program from scratch. Biggest problem with them is that they pollute the global namespace. That might be nice at first but it scales very poorly. They are however still used to create extension methods, adding those to the global namespace is the intended effect.
Grokking classes requires understanding Object Oriented Programming. That cannot reasonably fit in an SO post, there are many introductory books that help you in the grok.