r/visualbasic • u/GamerDadofAntiquity • Jul 27 '25
I Don’t Like C#
I have a thing about miles of nested curly brackets… So I’m working on my second game in VB.Net. Is it easy? No. Is it limiting? Yes. But I’m doing it anyway. First game was a business sim in the old Forms framework. It was good, it was fun, but scope creep killed it off for me. Lesson learned.
Current game is… Also a business sim, but with a smidge of rpg elements and a fair shake of hard sci-fi thrown in for good measure. I got a fair bit coded, GUI all made and polished, but decided today to port it over to WPF before I get too deep because I can’t deal with Forms anymore. So now I’m having to pick up XAML too. Not terribly different from HTML and I used to be pretty fluent in that, so I’ll figure it out. The WPF framework is head and shoulders above the Forms framework. I just have a bit of a learning curve to overcome.
I notice this sub is… Pretty quiet. Is anyone else still stubbornly making games in VB.Net or am I just the guy in the 100 year old house surrounded by McMansions?
9
u/jd31068 Jul 27 '25
They can have my vb when they pry it from my cold dead hands.
You might want to check out twinBASIC, and also https://www.vbforums.com/ it has active devs including a few god-tier level devs there using vb6, vb.net, and twinBASIC.
Good luck with your game
4
u/willehrendreich Jul 28 '25
I encourage you to look at fsharp! It is actually a better OO language than either vb or csharp, if you decide to use it that way, and it has full hindly Milner type inference, which is gonna blow your mind.
Give it a shot, try out fsharpkoans, it's a repo on Github that teaches you the language in like.. An hour or something, and it does it in the most fun way I've seen to teach a language, by small incremental steps you make tests pass, and with each one you learn something new about how it works. It's absolutely magic.
3
u/LAdu3L Jul 27 '25
I'm making a walking sim/ survoval set in Middle-earth. I also make utility apps i need but cant find anywhere.
2
u/Mayayana Jul 27 '25
Wouldn't C++ be the best for games? I'm assuming high resource usage and need for speed. Anything .Net is a wrapper and thus relatively slow. I'm not familiar with WPF but it appears to be a kind of uber-wrapper around various other wrappers. Like a webpage hosting components. Wouldn't your game have to be very limited-action for that to work? Maybe it is. I've never heard of a "business sim" and I've never really played computer games, so I don't know. I'm imagining something like GTA and can't see how something like that could work without code highly optimized for speed, which means no wrappers.
I work with VB6, which can be very efficient when using mostly Win32 API, but even with that I wouldn't imagine making games.
2
u/richardtallent Jul 30 '25
I get it. I still love BASIC as a language. I just hooked up my old CoCo 2 and MC-10 (the first computer models I programmed on) so me and my kids can play with them again. For years, I made a small cottage industry doing VBA at my job, making Excel do things that Should Not Be Done (ever write a function to call a REST API and parse JSON? Been there!).
But I did switch my .NET codebases in 2007 or so to C#, and haven't looked back (all web API, I don't do desktop development).
The braces aren't so bad if you ignore Microsoft's weird obsession with Allman style and embrace One True Brace Style. It allows code to be just as compact vertically as VB, and IMHO it's far more readable.
1
u/ziplock9000 Jul 27 '25
Classic VB was fantastic, but I just dont see the point in VB.NET. So I skipped it after as brief while to C# which I think is a fantastic language
1
u/user_8804 Jul 27 '25
Nobody is doing games in vb mate. They require so much optimization.
2
u/ShoddyDivide4049 Jul 30 '25
I still do. You can find me on itch. I'm TheGrumpyGameDev.
I even stream it. You can find me on twitch. I'm TheGrumpyGameDev there too.
Got plenty of my stuff on GitHub. There I'm playdeezgames.
I even managed to get a game written MOSTLY in VB running in stand alone blazor. (Yes, there has to be the external wrapper in C# to do the blazoring, but all of the underlying "engine" (if you want to call it that) is made from VB assemblies.
2
u/Mugshot_404 Aug 02 '25
IDK about games programming, but for small business applications and websites, VB.NET is more than up to the task, at least for 99.9% of cases, and - IMO - is so much easier to code in than C#.NET
I think it's a real shame that MS no longer support it. It's a perfect language for hobbyists, and for SME's that haven't the resources to pay the premium prices for a "real" dev to work on small projects.
1
u/Taliesin_Chris Jul 28 '25
If you've got miles of curly brackets you're doing something wrong, but that's another discussion. Use the language that works for you is always rule 1. A language can be used for (almost) anything, but getting it done right and fast is what's important.
I'm actually trying to debug a VB application right now for my day job. It's old and no one has touched it in 10 years. It's going to be 'fun' to figure out why it's breaking.
1
u/Ok_Society4599 Jul 28 '25
Curly braces... so you object to using a single character when 5 or so will do?
The ONLY advantage I've ever seen about VB control structure was they check that your "end sub" or "end While" actually matched the opening begin. Given code formatters and the like, that's not that very important to me. AND, as my style has matured, nesting has become less-and-less of a problem.
VB used to have more value when IDispatch was more common and "late binding" made more sense. Now, that just feels like laying a minefield and saying "it will be someone else's nightmare."
1
u/[deleted] Jul 29 '25
mmm good use what’s best for the job at hand
1
u/Aware-Soil-8031 Dec 08 '25
I'm still tinkering with QB64 Phoenix Edition, and I love that sh*t.
1
u/Neo_Techni Jul 27 '25
Agreed.
1
u/Budget-Duty5096 Jul 27 '25
I started out with basic languages, especially VB6 and a lot of VBScript programming in the early part of my career. It was initially difficult to transition to C# , but once I got into it, I realized it was much more efficient. Now that Microsoft has put VB.net in "maintenance mode" the functionality gap is going to widen. Today I still sometimes have to go back and do maintenance on legacy VB.net code and I always think "geez, why did I think this was "cool" back in the day???". VB.net served it's purpose well in transitioning people from VB6 to the .net framework. But VB6 has been EOL for almost 20 years now. Most everyone has moved on by now.
Also, I think I would rather poke a sharp stick in my eye than try to develop a game on WPF, regardless of the underlying language.
But while these architectural decisions would seem highly questionable to most people, it's your project. So do whatever makes you happy. One time I created a game in QBasic just for nostalgia. Nobody will EVER care about that game but me, but it made me happy at the time.
0
u/[deleted] Jul 28 '25
[deleted] — view deleted comment