Page 1 of 2

default plugin  Topic is solved

PostPosted: Tue Mar 26, 2019 2:00 pm
by perry
Hi,

I wanted to ask for this for a long time.
Can you please include "Imports System" when you create a new plugin?

Re: default plugin

PostPosted: Tue Mar 26, 2019 2:52 pm
by Mike.Sheen
Added as improvement DEV-7359.

In the meantime, here's a C# plugin which adds the "Imports System" line of code to new VB.Net plugins for you. C# because irony.

Mike

Re: default plugin

PostPosted: Fri Mar 29, 2019 10:15 am
by perry
thanks for the plugin

having to type {} increases dev by 8.231%, it is a thing :)

Re: default plugin

PostPosted: Sun Mar 31, 2019 1:34 pm
by Mike.Sheen
perry wrote:thanks for the plugin

having to type {} increases dev by 8.231%, it is a thing :)


Having to type "Then" and "End If" as well as "Next", "And" or "AndAlso" - just to get started - more than offsets that.

Come to the light side... free yourself from the burden of VB.Net and join us...

Re: default plugin

PostPosted: Mon Apr 01, 2019 10:47 am
by pricerc
Mike.Sheen wrote:
perry wrote:thanks for the plugin

having to type {} increases dev by 8.231%, it is a thing :)


Having to type "Then" and "End If" as well as "Next", "And" or "AndAlso" - just to get started - more than offsets that.

Come to the light side... free yourself from the burden of VB.Net and join us...


Who types "Then", "End If" and "Next" ? Visual Studio does that for me.

"And" and "AndAlso" are just VB's version of "&" and "&&"; I don't know why they get bad rap (although some folk don't understand the subtle but important difference, or that C#'s equivalents are not *exactly* the same - e.g. you can "Dim e = 3 AndAlso 5" but you can't "var e = 3 && 5").

I use both C# and VB, but I prefer VB in plugins because I sometimes need to explain things to non-programmers, and it's easier for them to read VB than to read C#.

BTW, I'd strongly recommend

https://github.com/dotnet/csharplang/
and
https://github.com/dotnet/vblang

to anyone interested in the ongoing development of each language.

Re: default plugin

PostPosted: Mon Apr 01, 2019 10:49 am
by Scott.Pearce
c'mon. join us.

Re: default plugin

PostPosted: Mon Apr 01, 2019 10:49 am
by Mike.Sheen

Re: default plugin

PostPosted: Mon Apr 01, 2019 10:52 am
by pricerc
Mike.Sheen wrote:Meh - it's a moot point now, anyway with the recent changes.


Probably the best one I read all day; thanks for that.

Our local media were way off the ball today.

Re: default plugin

PostPosted: Mon Apr 01, 2019 10:53 am
by Scott.Pearce
haha

Re: default plugin

PostPosted: Mon Apr 01, 2019 10:55 am
by pricerc
Scott.Pearce wrote:c'mon. join us.


Have you ever tried to talk a non-programmer through changing a piece of code over the phone?

I have. Much easier with VB, because they can read the words.

Outside of plugins, I'm probably about 50/50 C#/VB, but then I'm also doing mostly maintenance at the moment, and I don't go changing languages on old code.