r/visualbasic • u/Sufficient-Pea-9716 • Sep 23 '24
Most used version of .Net Framework
Hi, I have a question for all the vb.net devs, which version(s) of .net do you typically or most frequently target for your apps and why? Personally I'm typically using .Net 4.0 for most projects. I've been noticing that the more recent versions just give some syntactic sugar. I don't see anything noteworthy beyond that.
3
Upvotes
View all comments
Show parent comment
1
u/Ok_Society4599 Sep 26 '24
Um, yes, that was the "intent." Microsoft has a lot of smart devs that never imagined how badly VB6 would stray from good programming style, let alone best practices. I'm sure they never thought 75% of method invocation could be pushed through the iDispatch invocation code.
I'm currently fixing a system that abuses Object frequently. Almost all of the VB code I've ever been asked to work on does. So, I don't know where you're finding your "average programmer" but it's nowhere near my sample :-) and many of these projects were dropped by their developers - another code smell for unsustainable code.
In my VB code, I like to avoid Object whenever possible. It just makes life so much saner ;-). And no, I rarely do any office scripting or macros outside of some light Excel. Straight up VB6 projects.