55 Replies - 20696 Views - Last Post: 06 January 2013 - 11:11 PM
#1
Is learning VB6 now a complete waste of time?
Posted 07 November 2012 - 09:02 PM

POPULAR
A couple of things that occur to me personally are the ease of creating and using COM objects, and the ease of creating wrappers for the Win32 API. Would anyone else care to share a point of view?
Replies To: Is learning VB6 now a complete waste of time?
#2
Re: Is learning VB6 now a complete waste of time?
Posted 07 November 2012 - 09:13 PM
I mean if you know vb6 that's great, but if you are just getting into programming I am not sure what learning vb6 uniquely offers for "today's computing" that .NET doesn't co-opt.
#3
Re: Is learning VB6 now a complete waste of time?
Posted 07 November 2012 - 09:31 PM
PInvoke Example
If you're using VS2010 or later there is http://www.red-gate....pment/pinvoke/.
But I think the trend is more toward abstracting the OS away, so it can be used across platforms. Portable Libraries
Windows Runtime is essentially an updated COM
vb6 is supported in Windows8 (sadly)
Microsoft should make a stand and say they killing vb6 support in the next OS release.
This post has been edited by AdamSpeight2008: 07 November 2012 - 09:37 PM
#4
Re: Is learning VB6 now a complete waste of time?
Posted 07 November 2012 - 09:34 PM
This post has been edited by BobRodes: 07 November 2012 - 09:40 PM
#5
Re: Is learning VB6 now a complete waste of time?
Posted 07 November 2012 - 10:04 PM
This post has been edited by AdamSpeight2008: 07 November 2012 - 10:04 PM
#6
Re: Is learning VB6 now a complete waste of time?
Posted 08 November 2012 - 07:16 AM
Learning it now would be useful if you want a job doing that: maintaining or porting legacy systems. I would think people would learn it out of necessity when they're tasked with that, not seek it out. If you want to make new applications professionally, VB6 is unlikely to be something that gives your resume a boost, considering just how far out of date it actually is.
Quote
I wouldn't know about COM, but I do know that P/Invoke is just the bee's knees for Win32 interop. It's pretty simple for VB.NET/C# to wrap Win32, so that's not really an advantage for classic VB.
#7
Re: Is learning VB6 now a complete waste of time?
Posted 08 November 2012 - 09:08 AM
#8
Re: Is learning VB6 now a complete waste of time?
Posted 08 November 2012 - 09:24 AM
The key here is to use VB6 as a base for learning the fundamentals. First lesson is know how to turn on Option Explicit!
#9
Re: Is learning VB6 now a complete waste of time?
Posted 08 November 2012 - 09:54 AM
Quote
They can do all that in VB.NET too; with the added benefit of being able to transition directly into inheritance later without having to learn a whole new language. Also, how is events a less advanced concept than inheritance?
If you want an easy-syntax language to teach newbies with, go with Python. Or VB.NET, which takes what was good from VB6 and rolls in the entire .NET Framework to boot.
Quote
I disagree vehemently, because you can use other languages that are just as easy to learn fundamentals, but will also be modern, in-support, and in mainstream use, so when you're done with the initial learning and ready to start doing, you don't have to switch languages.
#10
Re: Is learning VB6 now a complete waste of time?
Posted 08 November 2012 - 10:48 AM
This post has been edited by AdamSpeight2008: 08 November 2012 - 11:08 AM
#11
Re: Is learning VB6 now a complete waste of time?
Posted 08 November 2012 - 05:58 PM
#12
Re: Is learning VB6 now a complete waste of time?
Posted 09 November 2012 - 03:01 AM
As stated, there will always be work around VB6, but I just think it's a little foolhardy to train to go into that area as a newbie.
#13
Re: Is learning VB6 now a complete waste of time?
Posted 09 November 2012 - 06:55 AM
I've been programming in VB.Net since 2007 and find it much easier to code in. Partially due to Visual Studio and partially due to DOTNET and the rich set of controls available.
I still have a few programs in VB6 but I have rewritten most of them in DOTNET. I believe there is room to learn VB6 primarily as a gateway for converting them to either VB.Net or C#.
Our company doesn't have to resources to convert all of the applications developed in VB6 to DOTNET and even if we did our user community couldn't support UAT. So any new developer we hire should have some background in VB6.
I wish it didn't have to be that way.
#14
Re: Is learning VB6 now a complete waste of time?
Posted 09 November 2012 - 07:21 AM
A great combination with Visual Basic 6 is PowerBasic. PowerBasic provides the power of C, but with a Basic syntax. VB 6'ers can use it to create high speed DLL's.
There is a big difference between VB 5/6 and VB.NET. They are like night and day. While VB 6 is somewhat object based, it is also more procedural in nature (which I think is a good thing). In the dot.net languages everything appears to be an object which IMO adds complexity and overhead. There are some who believe a more procedural approach to software development produces faster software with significantly less overhead than a pure OOP oriented approach. VB 6 is a nice middle ground approach which is somewhat OOP like (forms and controls are objects) but also very procedural (especially if you avoiding writing classes). I can appreciate this myself because for the last 10 years I have not been using a Microsoft programming language. After recently downloading and playing with Visual Studio I find it overly complex and bloated. Visual Studio takes up a good 2 gigs of hard drive space, while I use a system which only takes up about 20 meg total.
While I understand the mindset of staying with the latest technologies, there is something to be said for a more low level, simpler approach. For example I work purely with the WIN32 API's. While I don't currently use Visual Basic (had versions 1.0,2.0 and 5.0 Pro), I do know it can easily be extended using direct API calls. Thats where you push it to its limit. The WIN32's while considered legacy today are actually very powerful and you can write apps which will run on Windows 95 to Windows 8 (yes. Windows 8 ,x86 version, fully supports the WIN32's). The WIN32's also even allow you to build dynamic software which can dynamically load API's depending upon which OS it is run on (use LoadLibrary to load a DLL and then poll the DLL to see if the API's exist and if so call the API's via pointers, which is easy to do using PowerBasic).
One advantage of programming languages (like original VB or Powerbasic) is that one can write apps which are relatively small in size, which is great when you have limited drive space (ie. on tablets or for flash drives). There is also something to be said about writing apps which don't need to deal with any registered system objects (ie. VB without any OCX's) so you can just copy and run. To be able to just copy some files to a folder and run has advantages.
#15
Re: Is learning VB6 now a complete waste of time?
Posted 09 November 2012 - 07:27 AM
By the by, there are universities that do teach COBOL and other older languages. In my other existence as a professor I teach COBOL and Visual Basic (along with C++, C#, Java, etc).
|
|

New Topic/Question
Reply



MultiQuote









|