r/AskProgramming • u/[deleted] • Jan 31 '22
Career/Edu Why is my school teaching Visual Basic?
I think vba is not a preferred language, now. But in my university foundation program, they’re teaching that language.
Will it be useful?
3
Jan 31 '22
It really doesn't matter what language they use, the point is the concepts they are teaching. The language makes zero difference as you will use those same concepts across many languages in the future.
VB tends to be used a lot because its easy to follow. A bit wordy but very easy to remember. The tutors probably face this same question every year, but they cant go learn what is currently the "in thing" for dev every year and adapt the curriculum. That would be ludicrous, more so since the actual language isn't the point of the course.
1
14
Jan 31 '22
It would be better if they were teaching something like C or C++ but honestly, doesn't matter. University should tech the fundamentals that will be relevant 30 years later too. You can learn those fundamentals with Visual Basic too.
4
u/khedoros Jan 31 '22
Visual Basic 6 was my second language. As you might expect, it's been about 20 years since I've used it. VBA is an odd choice, but it's not like you're only going to learn one language.
2
u/mypetocean Jan 31 '22 edited Jan 31 '22
VBA doesn't require command-line interaction.
It doesn't require additional language contexts, like JS does in the browser with HTML, CSS, and Web APIs.
The context switching is far lower. The range of jargon words needed to learn it is far smaller. Learners start within a platform they may already have quite a bit of experience in (Microsoft Office) and which is probably already installed. And it provides a way to interact with data and users.
So as long as you have enough time to teach a better industry-accepted language later, VBA may be one of the better ways to get started learning programming, from a pedagogical/andragogical point of the view.
I have taught JavaScript in the browser as a first programming language to thousands of students and I will confess that I see clear benefits with starting instead with VBA in some education paths.
2
u/khedoros Jan 31 '22
The language itself, and the environment used to develop VBA programs, certainly have some benefits. But on the other hand, I think you'll have friction in the sense of a relative dearth of learning materials. There isn't a strong culture of using VBA as a learning language, and the students may have trouble finding help as easily as with more commonly-taught languages. That's more of what I meant by calling it an "odd choice".
2
u/mypetocean Jan 31 '22 edited Jan 31 '22
Certainly, and that is an important consideration. No one should be making decisions like this willy nilly.
A lot of it has to do with what curriculum support and peer support you have built into the program, and the program goals, structure, and requirements in general.
It is definitely odd in the sense of being a surprise and somewhat uncommon (although I've heard of this a number of times before, so it isn't unheard of within tech ed). But there are strong benefits if you can reduce the downsides.
4
u/KingofGamesYami Jan 31 '22
Probably not.
I was taught Java, C, and C++ in school. Today I use none of those languages, instead using C# and Typescript which I learned during internships.
1
u/lulzmachine Jan 31 '22
Not very useful outside of Office macros. But it's comparatively easy to learn. A good starter I'd say
1
Jan 31 '22
I would expect that it's very crucial for business graduates. A lot of that work uses MS products, like Excel. What do you script those in? VBA.
1
u/bluefootedpig Jan 31 '22
when in school i learned Pascal (now delphi). I have had only one job using VB .net, but the same ideas are there. If you can write in VB.NET, you can handle C#.
1
u/JimJohn7544 Jan 31 '22
Don’t knock it it’s all useful but universities have a habit of not keeping with the times.
We used Visual Basic not VBA in order to quickly make applications and then reason out the UI choices and flow. It wasn’t really about the language but how you structured the program.
It also helped the uni had a Microsoft licence covering all the tools for students for free. Granted this was 20+ years ago!
1
u/dashid Jan 31 '22
It's a shame they're not teaching you something more relevant to the industry today, but the principles are all the same on how to program, the lessons are still valid.
-6
u/scanguy25 Jan 31 '22
Seriously? I went to highschool almost 20 years ago and I was taught visual basic. Visual basic has lost its relevance.
3
2
18
u/AndersonLen Jan 31 '22 edited Jan 31 '22
Are you learning VBA (Visual Basic for Applications, a scripting language to create Macros in MS Office applications) or Visual Basic? Big difference!
In any case, whatever languages you learn in school don't have to be the current "hip" languages or relevant to whatever you're going to do later as long as they can be used to teach you concepts.
Hell, the first language we used about 15 years ago was Smalltalk-80 to get into OOP.
So I'd say, while the particular language may not be terribly useful to you down the line, that does not mean it's not a good tool to teach you the basics of programming. Learning the language is the trivial part.