Search found 32 matches

by fordpinto
Thu Mar 05, 2020 5:09 pm
Forum: Help Forum
Topic: Package and module interdependence best practices
Replies: 24
Views: 4424

Re: Package and module interdependence best practices

Well, this feels interesting. For me, having a single copy of shared code is sort of part of basic coding hygiene, a never questioned paradigm. So, I feel like as if someone said to me - "no we do not have functions, but you can easily cut and paste your code if you need to repeat it. You can h...
by fordpinto
Thu Mar 05, 2020 5:30 am
Forum: Help Forum
Topic: Package and module interdependence best practices
Replies: 24
Views: 4424

Re: Package and module interdependence best practices

Yes, I think I saw the search path modification workaround someplace (I am thinking Vyzor). I guess I am thinking it through like this. Let's say I want to use EMCO module in my package. Like you said, I can install it anywhere I want and modify package.path in my package, and that will work. Somebo...
by fordpinto
Thu Mar 05, 2020 12:58 am
Forum: Help Forum
Topic: Package and module interdependence best practices
Replies: 24
Views: 4424

Re: Package and module interdependence best practices

@demonnic Yes, something like what you are describing but perhaps not as ambitious. My initial feeling is that the global repository is typically built upon the concept of a shared codebase within the same computer. For example, if my Ubuntu software updates bash shell or the web browser, it will no...
by fordpinto
Wed Mar 04, 2020 9:02 pm
Forum: Help Forum
Topic: Package and module interdependence best practices
Replies: 24
Views: 4424

Re: Package and module interdependence best practices

Thanks @Vadi. This package is sort of a depressing inspiration (inspiration is the sense that it demonstrates how much is possible, depressing because I do not think I will ever be able to put together that many lines of coherent Lua code). I am not sure it cuts to the core of my question, and that'...
by fordpinto
Wed Mar 04, 2020 1:50 am
Forum: Help Forum
Topic: Package and module interdependence best practices
Replies: 24
Views: 4424

Package and module interdependence best practices

Need some guidance (an example?) of how to handle package/module interdependence. I think typical best practice for Lua alone is to use require(), something along the lines of local lib = require("libfilename") assert(lib) I suppose this also works in Mudlet for code components packaged as...
by fordpinto
Mon Mar 02, 2020 7:25 pm
Forum: Help Forum
Topic: Module save (sync vs non-sync)
Replies: 7
Views: 1810

Re: Module save (sync vs non-sync)

@Caled: Thank you for confirming this behavior. Yes, I have submitted this issue to github. After all, undocumented feature is just another name for a bug :) I am pretty sure people unwittingly losing their work is not the intended behavior, so I am guessing it will eventually get addressed. Can be ...
by fordpinto
Sun Feb 23, 2020 7:45 am
Forum: Help Forum
Topic: Module save (sync vs non-sync)
Replies: 7
Views: 1810

Re: Module save (sync vs non-sync)

That's the way I understood the meaning of the option too. However, it's behaving in a "no-save" way I described, at least for me.
by fordpinto
Sun Feb 23, 2020 3:56 am
Forum: Help Forum
Topic: Module save (sync vs non-sync)
Replies: 7
Views: 1810

Re: Module save (sync vs non-sync)

I did look in the moduleBackups folder, no copies of the module I was working on were saved there. It looks like the code I added was just discarded. I have tested it a few times, and removing the "Sync" flag results in the changes made to the script being silently discarded, no backups ma...
by fordpinto
Sat Feb 22, 2020 8:20 pm
Forum: Help Forum
Topic: Module save (sync vs non-sync)
Replies: 7
Views: 1810

Module save (sync vs non-sync)

My work on a module wasn't saved by the built-in script editor (I did do "Save Profile"). The best I can tell this is due to the "Sync" option not being set. I did replicate this by setting and un-setting the "Sync" option. Edits of a non-Synced module aren't saved anyw...
by fordpinto
Thu Sep 26, 2019 6:21 pm
Forum: General Forum
Topic: A few small issues
Replies: 4
Views: 4153

Re: A few small issues

Makes perfect sense, thank you!

Edit: Removed Geyser possible issue description. If I can verify it, will post on Geyser subforum.