Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Arantor
6196
Off-topic / Re: Post count fever
« on September 30th, 2011, 04:48 PM »
I don't know, are you? :P Certainly that's a project for a rainy day if that's something you want to pursue...
6197
Off-topic / Re: Post count fever
« on September 30th, 2011, 04:36 PM »
It's the change logs that do it, I'm sure...
6198
Off-topic / Re: Post count fever
« on September 30th, 2011, 03:47 PM »
OK, I'm curious. I know that post count is one thing, but what happens if you factor in total length of posts in to the equation?
6199
Plugins / Re: Add-on Manager: Mechanics
« on September 30th, 2011, 03:46 PM »
No worries - with the mad late-summer heat here it's entirely possible I'd got confused. You know what they say about mad dogs and Englishmen and the mid-day sun, right? We've just had mid-day sun run on for much later in the day at the moment :(
6200
Plugins / Re: Plugin development
« on September 30th, 2011, 03:29 PM »
I guess there is a part of me trying to pre-empt discussions, debates and crap that will inevitably come along... but yeah, I'm happy with the route I was likely to take anyway, and have already set up my repo for my plugins (since there's no need to have a repo per plugin unless it's a huge plugin like WD)
6201
Plugins / Re: Add-on Manager: Mechanics
« on September 30th, 2011, 03:27 PM »
Uh, yeah... you wouldn't store that stuff in the UI anywhere, it's purely in the XML for a given plugin, and avoids having to include a file just to have a function with one line in it.
6202
Plugins / Re: Add-on Manager: Mechanics
« on September 30th, 2011, 03:22 PM »
Quote from Nao on September 30th, 2011, 03:19 PM
A template block? You mean using the ui to store non-ui data? I'm sure we could think of something more elegant..?
Hmm? I is confused.
6203
Plugins / Re: Add-on Manager: Mechanics
« on September 30th, 2011, 03:10 PM »
I just realised a weakness in the system that hasn't been accounted for: new actions.

Right now in order to add new actions, a file still has to be loaded (or already have been loaded) to extend the action array. Now, properly complex action juggling is going to have to remain in the hook behaviour (like what WD does, until I add more hooks :D) but for simple hook behaviour there's no need for having to load a file.

What I'm thinking is that there would be an <actions> block:

Code: [Select]
<actions>
   <action action="myaction" function="myfunction" file="$plugindir/MyFile.php" />
</actions>

On a technical level, I'd push that into the per-plugin cache in $modSettings['plugin_' . *] as a new key, and pop it off the stack during the load phase.[1]

It's less of an issue for menu changes because menu changes all require more than a single line of code to define, so loading a file for those isn't the hassle it is for actions.[2]
 1. Yes, even before starting to post, I'd already assessed all the technical implications :P This is more of a pre-flight warning as to what I'm going to implement...
 2. Your choices are to have a tiny file just for the action change plus the action itself as a separate file, minimising parsing but has the file overhead, or to have a single file that contains the action's code as well but then you have to load a larger file every single page load, unnecessarily in most cases.
6204
Plugins / Re: Plugin development
« on September 30th, 2011, 02:27 PM »
That's where I was going; no-one's forcing or even asking me to do any different ;) I was just curious whether there was any benefit to anyone by me doing that sort of thing.
6205
Plugins / Re: Add-on Manager: Mechanics
« on September 30th, 2011, 01:52 PM »
:)

Same here, I now have a very large list of plugins I want to write, and over the next few days I'll probably bash a few of them out because the only way I can prove the system works, and spot any holes in it, is to actually thoroughly use it.

I do already foresee one problem: folks who have masses of things installed - it's going to make a very long page, so I might have to do something about that, but that's the sort of thing only experience can teach, as theory only goes so far.

I have to admit, I have browsed through the list of mods for SMF lately, to see the different sorts of things people have done, which has given me a variety of ideas, and already highlighted a couple of weaknesses that can readily be addressed and a couple of things that do need refinement in the system (not specifically plugin related)

I'm going to find it interesting going back over my old mods though, to see how cleanly they can be rewritten ;)
6206
Plugins / Re: Plugin development
« on September 30th, 2011, 01:42 PM »
On my RepositoryHosting account, I have a choice of SVN, Git or Mercurial so it's not like I can't experiment, but I'm more looking at whether it's worth making things open, especially as I heard that Niko made his wiki, arcade and PT available on Github.

But yeah, I'm still feeling in agreement with live about keeping closed dev :/ I tend to prefer issuing milestone builds, or at least having interim build periods - when working on SD, I found that having daily and twice-daily builds worked quite well for me in terms of setting goals, but that having the sense that anyone could watch over my shoulder and then give me changes doesn't sit right with me; working with someone up front as a co-developer is one thing, having any old person coming along and trying to proactively submit changes at me is another, and the latter is something I don't think I'm ready for...
6207
Plugins / Plugin development
« on September 30th, 2011, 10:54 AM »
Well, I've been toying around with a list of plugins I want to write, stuff that I don't want in the core but stuff I want to have available.

The question for me is how I manage development; using version control is a given, and I'm used to working with SVN. But I'm wondering if I should maybe try using Github, though I'm not really enthusiastic about opening the source to people until I'm happy to release it and traditionally I've not been happy about people breaking the things I've written (as used to happen), and I'm also feeling a bit burned after mods of mine got tweaked and republished without my permission.

So, what I guess I'm saying is that I'm leaning towards SVN and closed development still, but if anyone has any strong reason to convince me, please speak up!
6208
Plugins / [Naming poll] Re: Packages
« on September 30th, 2011, 10:47 AM »
Heh, well as it happened I went to bed uncharacteristically early last night (11pm as opposed to my usual 2am)
6209
Features / Re: These two bytes may not matter to you...
« on September 30th, 2011, 10:46 AM »
- Yeah, I've seen enough copied code in my time.

- The only reason a host would disable glob is out of some misguided notion of security, and frankly, if they're doing that, best to move hosts to someone competent.

- Good. Every little thing that isn't needed, should go.

- Sounds like the right decisions have been made. Unfortunately I don't have the luxury of just ripping code out with phpseclib, but I can certainly trim the comments. I did also have to attend to a PHP 5.3.3 backwards-incompatible change while I was at it.[1]

- Hmm, that's interesting! And yeah, that doesn't surprise me, actually, though a goodly number of them are derived from the DB.
 1. phpseclib is 4.x compatible which means although it's in classes, it uses the class name as constructor. As of 5.3.3, those are not going to be called. I just renamed the constructor functions to __construct instead.
6210
Plugins / [Naming poll] Re: Packages
« on September 29th, 2011, 11:02 PM »
Go to bed,
Go to bed,
Go to bed, devel'per Nao... *insert music*