default plugin  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

default plugin  Topic is solved

Postby perry » Tue Mar 26, 2019 2:00 pm

Hi,

I wanted to ask for this for a long time.
Can you please include "Imports System" when you create a new plugin?
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15

Re: default plugin

Postby Mike.Sheen » Tue Mar 26, 2019 2:52 pm

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
Attachments
Plugin Imports System.xml
(31.78 KiB) Downloaded 80 times
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: default plugin

Postby perry » Fri Mar 29, 2019 10:15 am

thanks for the plugin

having to type {} increases dev by 8.231%, it is a thing :)
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15

Re: default plugin

Postby Mike.Sheen » Sun Mar 31, 2019 1:34 pm

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...
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: default plugin

Postby pricerc » Mon Apr 01, 2019 10:47 am

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.
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 504
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 20

Re: default plugin

Postby Scott.Pearce » Mon Apr 01, 2019 10:49 am

c'mon. join us.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: default plugin

Postby Mike.Sheen » Mon Apr 01, 2019 10:49 am

Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: default plugin

Postby pricerc » Mon Apr 01, 2019 10:52 am

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.
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 504
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 20

Re: default plugin

Postby Scott.Pearce » Mon Apr 01, 2019 10:53 am

haha
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: default plugin

Postby pricerc » Mon Apr 01, 2019 10:55 am

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.
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 504
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 20

Next

Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 1 guest