r/visualbasic • u/mohusein • Jun 20 '21
Not sure where to start
Hi everyone, I'm a business owner and I write some codes with VBA for the repetitive tasks and to organise the role of each department. I can do exactly what I need with VBA but I want to go behind the limitation of the office I want something to be fast to learn to re write my codes in this new language Do you recommend VB.net or C#?
2
Jun 20 '21
C# has more development, activity, resources and community. VB.Net sits on top of the same base. They both get translated to IL (intermediate language) and have the same capabilities with some minor differences (Some things are easier in VB or C# and there are flavor differences between the two).
If you are are only doing stuff for yourself and your business? It probably doesn't matter what the job market wants (you'll have more jobs as a C# developer - but that goes into the same activity and community comment above). You'll be able to do the same things in either.
I'd say go for C# because above... but for a personal choice? it probably doesn't matter.
2
u/RJPisscat Jun 21 '21
fast to learn
If you are going to hire people to write for you, go to C# to get the better and more enthusiastic candidates. Someone who prefers VB is fine with C# but someone who prefers C# will insult you to your face and call you stupid, or worse, if you ask them to write in VB.
1
u/revennest Jun 23 '21
VB.net might be quicker for you because you already used to VBA, both syntax very similar but they still difference in how thing done, if you want to use open source code to your code then C# is right answer for you but you need to relearn a lot, you still need to learn how .Net difference in how it do thing then VBA and you need to learn C# syntax.
If you want it all then you should learn VB.net first for familiar with .Net then learn C# syntax later, if you choose to learn only its syntax you could read and write perfectly within a week but if you choose it first, you might be need some months, after learn both you can apply both open source code and translate it to other language vice versa.
1
u/YukonDude64 Jun 30 '21
There might be more of a learning curve by moving to C#, but I don't think it's THAT steep (and honestly, even moving from VBA to VB.net is going to be a significant adjustment--C# isn't going to be a huge jump above that).
The C# community seems to be much stronger, too. That means that you may find it easier to find solutions online and that DEFINITELY makes the transition easier.
6
u/MaxObjFn Jun 20 '21
Vb.net is probably an easier transition if you're only comfortable with VBA. After getting good with VB.net and the difference of a truly object oriented language without all the quirks of VBA, the jump to C# would be easier. Your job prospects are much better with C# tho so just depends on your priorities.