capfan has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks,

I'm seeking your wisdom.

I have a script (systray-morbo.pl) that creates a systray icon on Windows.
The systray icon allows you to launch a Morbo web server, which in turn launches a Mojolicious::Lite application.
It also allows to hide and show the Morbo console, restart Morbo and stop the server.

The logic itself is encapsulated in a class. The instance script just sets things up, like which port to use and which Mojolicious web application to run.

I thought it might make sense to publish the systray morbo controller application to CPAN. But I'm not sure about the name.
Currently the package is called "MyProcessControl".
I was thinking maybe App::MorboProcessControl?

Do you have any ideas or suggestions?
Or would you recommend not to publish the module on CPAN?

Thanks for your feedback!
  • Comment on How to name a module providing a systray morbo controller

Replies are listed 'Best First'.
Re: How to name a module providing a systray morbo controller
by hippo (Archbishop) on May 15, 2024 at 22:37 UTC
    I have a script (systray-morbo.pl) that creates a systray icon on Windows.

    Naming things is notoriously hard. However, if it is only designed to run under MS Windows I think it would be appropriate to put that somewhere in the name.

    I see that there is already a Win32::SysTray module - how much does this differ from yours? If it does something similar but for the general case, is there a benefit to having a second module which is more specifically just for Morbo? I don't know as I am not a Windows user. Perhaps your module already uses this other one and builds upon it which might be useful.

    If your code is already accessible somewhere, perhaps a link to it would help others with an interest suggest and appropriate name and course of action. If it's small you could even post it here.


    🦛

      Good questions. Maybe it is a duplicate to Win32::SysTray. Still, I kind of would like to re-use the code in an easier way than copying the script from one webapp to the next one. And even when using Win32::SysTray, I would have this issue.

      The code can be seen here: https://gist.github.com/asb-capfan/a626e48e6e6d11ba0dc1570e53f37769