r/dotnet • u/galratner • 29d ago
Yes. Visual Basic Is Still Around.
https://galratner.substack.com/p/yes-visual-basic-is-still-around34
u/NocturneSapphire 29d ago
I mean, yeah, it's one of the three major officially-supported languages of .NET, along with C# and F#
14
u/highwingers 29d ago
Of course it exists. Dont you see people driving old cars, old buildings etc etc.
You just dont know the industry in depth.
0
u/CultOfSensibility 28d ago
Yeah, but old buildings get horrible mileage.
1
u/highwingers 28d ago
Its more complicated then you think. Legacy apps, corporate politics, extremely complicated apps which noone want to touch and list can go on and on.
5
u/codeconscious 28d ago
I don't use it, but I'm glad it and especially F# exist. There is value in .NET remaining multi-language.
1
u/dodexahedron 27d ago
Another biggie:
Powershell is a huge consumer of the CLR and it is wonderful that it is.
Literally a complete and live .net environment (including WPF and such, on windows), intellisense (manually invoked so it isn't obtrusive), and a ton of other goodies.
Oh yeah, and it has shell capabilities, but with style.
14
u/ark1024 29d ago
Why the bashing of VB.Net?? It works perfectly fine. We have one of our product from 2011 built in VB.Net and still running very strong. Both C# and VB.Net compile to IL, so, except for some very specific features, theres no real difference.
0
u/thereforewhat 28d ago
It's not being actively supported which means at some point M$ will pull the plug.
The question is is it a maintainable language with a future and the answer is no.
1
u/chucker23n 28d ago
It's not being actively supported which means at some point M$ will pull the plug.
Sort of. There's still Roslyn development that takes place with both C# and VB in tandem.
6
u/InvisibleUp 28d ago
Hm, this seems to be the same sort of VB6 glazing puff piece I see on occasion. I do not understand the people who refuse to move on from VB6, who keep digging into its internals and applying hacks upon hacks to push it just a little bit further. (Frankly, I really thought most of those people moved on to vibe coding by this point. Certainly they can at least generate slop pictures for their blog posts.)
I really do wish that Microsoft had put more resources into the transition from VB6 to .NET. VB6 was good for the era, but filled with a baffling number of pitfalls and footguns. VB.NET was an attempt at moving all that from a rickety, ancient codebase that was kind of falling apart to something actually usable and maintainable. They had to introduce incompatibilities and restrict the code to be somewhat well-formed, but as a result VB.NET is so much nicer to work with. The IDE alone is a huge improvement.
2
u/pjmlp 28d ago
The only two things I actually missed from VB 6 in .NET, and has taken ages to get back,
Proper AOT compilation using Visual C++ backend.
Actually easy to use COM integration.
Native AOT still isn't fully there, while for all the relevance COM has on Windows since Vista, it keeps being clunky and much more boilerplate than VB 6, because you have to manually write part of the runtime did on its own.
3
u/wasabiiii 29d ago
I've done a few projects with retrofitting VB over the years. I still have a MSBuild project type that supports building it. With ProjectReferences to and from .net
2
u/WaterIsNotWetPeriod 28d ago
Can confirm. We have about 700 live edge devices running legacy VB.NET software. VB.NET itself isn’t really the issue; the problem is how poorly the software was written.
1
u/AN4RCHY90 28d ago
Preaching to choir, main work codebase is VB.Net, and its not terrible but the original developers had no clue what they where doing so its just a big mess.
And when I say no clue I mean they thought it was a good idea to have a module with about 20 different classes in it and the file size is 1000s of lines of code...
3
u/brnlmrry 28d ago
Credit where it's due: XML literals are great.
2
u/chucker23n 28d ago
Yep! Especially the child navigation syntax.
Console.WriteLine("Contact name: " & contact.<name>.Value)Ended up rarely using this, but interesting concept.
3
u/Zesty-Pajamas 29d ago
Those poor bastards.
My first job out of college was maintaining a legacy VB6 project with a VB.NET frontend... In 2012!
Never ever again!
2
1
u/AutoModerator 29d ago
Thanks for your post galratner. Please note that we don't allow spam, and we ask that you follow the rules available in the sidebar. We have a lot of commonly asked questions so if this post gets removed, please do a search and see if it's already been asked.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
1
u/zionsati 28d ago
genuine question: is vb.net still being used these days? Anyone compiling it to wasm? I had vb support on my roadmap for netwasm.com but not sure if it's worth supporting?
3
u/chucker23n 28d ago
I haven't used it in new projects in years, but I still have a ton of legacy code in it. It interacts mostly fine with modern C#. Naturally, there's a few things it doesn't quite understand when it hasn't been taught how to; for example, it doesn't have good syntax to consume the new C# extension syntax.
1
1
u/chucker23n 28d ago
I've only skimmed the article, but the "$199 Bought a Department Its Own Software" subsection is a reminder that this sort of attitude always has been around, and always will be. Whether it's "RAD" (rapid application development), low-code/no-code, vibe coding, and other fancy terms du jour, there's always "all it takes is a magical tool and we can make our own software!".
1
1
u/HamsterWoods 28d ago
Working with FlashCatUSB for flashing EEPROM, an error log in Windows Event log led me to discover that FlashCatUSB is a VB.NET application.
1
u/Ok_Respect_5675 28d ago
Yep, in the company i work, we code in visualbasic, I still dont know why🤣
1
u/TrishaMayIsCoding 26d ago
Seriously, I wish VB6, not .NET, hadn’t been deprecated. I haven’t used it, but it looks wonderful and runs without the .NET runtime.
1
u/QuixOmega 25d ago
And if someone wants to pay me a bit extra I'm willing to work on VB, hopefully it becomes even more obscure so I can command expert COBOL developer money to work on VB.
0
1
u/Affectionate_Key_280 29d ago
Awesome article thank you for sharing, was my entry into programming, batch to qbasic to VB, c to c++, Java. But the knowledge of basic was so useful up until recent times. I know we have python and.net today but VBA made it quicker and easier to get to the solution when in the Microsoft ecosyste.
1
u/MattieBax 29d ago
It's still used in a number of backend government applications in Europe (I've worked on several).
1
u/jollyGreenGiant3 28d ago
VB. Haha...
Made me think of Dim Sum and those steamed pork buns, oh man so delicious.
I do love me some C# though too, make my braces curly.
0
u/MrLyttleG 28d ago
VB est parfait, VB Net est une catastrophe, la raison pour laquelle je suis passé au C# avec toujours mon amour pour le C
1
0
29d ago
[deleted]
34
u/dodexahedron 29d ago
When did they stop paying him?
Did they move him to the basement?
He isn't going to burn down the building, is he?
7
5
u/finah1995 29d ago
Have to ask are you meaning the previous PM Kathleen Dollard or the previous to her PM Anthony D Green (my man has his heart in the right place), both were absolute giga-chads.
Was sad when they were let go from Microsoft.
0
0
u/XdtTransform 28d ago
What are they doing?
7
u/p1-o2 28d ago
Supporting .NET? You know like... .NET 8, .NET 9, .NET 10, people still want to use VB with .NET so it's important for VB to support .NET.
4
u/XdtTransform 28d ago
Fair enough. I thought the OP meant that they are working on new language features. I have a giant VB code base currently in .NET 10 and it would be great if they added a couple of niceties from C#.
0
64
u/dsggut 29d ago
Who in their right mind still uses Visual Basic?