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.
2161
The Pub / Re: Getting ready for an alpha release: WeCSS/Wess improvements
« on December 23rd, 2012, 12:01 AM »
I'm not trying to dictate how code goes, as such, just that I like code cleanliness, and to me code that clearly indicates its scope is more clean than relying on PHP's rather idiosyncratic approach. There's an excellent article about how messed up PHP is in that respect, so anything we can do to make it make sense is better.
* Arantor is also aware that he has had more alcohol than he expected today and is definitely feeling it.
2162
Features / Re: Something really strange just occurred to me
« on December 22nd, 2012, 11:54 PM »
It's a long way down my to-do list >_<
Finishing this damnable ban system is higher up.
Finishing this damnable ban system is higher up.
2163
Off-topic / Re: LG Nexus 4
« on December 22nd, 2012, 11:54 PM »
I'm not disagreeing that Apple haven't innovated the last few iterations ;)
2164
The Pub / Re: Getting ready for an alpha release: WeCSS/Wess improvements
« on December 22nd, 2012, 11:49 PM »
Because I haven't gone through those the way I did with this one. Partly because I always use WeCSS was always subject to massive changes, and I figured I'd only worry about keeping the code actually consistent with itself once major and rapid code iteration was done. And the fact that I don't think I've ever made a single change to WeCSS at any time...
I'm not a fan of agreeing to disagree either, though I'm less a fan of inconsistent code.
I'm not a fan of agreeing to disagree either, though I'm less a fan of inconsistent code.
2165
Features / Re: Something really strange just occurred to me
« on December 22nd, 2012, 11:47 PM »
For what purpose, though? What would you do with this extra group?
Group 0 MUST by definition exist anyway. I'm just trying to avoid creating an extra group that would do exactly the same thing that you're proposing, only without making an extra group to do it.
Consider what you've just said now imagine that it happens to be number 0 instead of number 9 or 10. You still have to do all the same checking you would before.
Group 0 MUST by definition exist anyway. I'm just trying to avoid creating an extra group that would do exactly the same thing that you're proposing, only without making an extra group to do it.
Consider what you've just said now imagine that it happens to be number 0 instead of number 9 or 10. You still have to do all the same checking you would before.
2166
Off-topic / Re: LG Nexus 4
« on December 22nd, 2012, 11:45 PM »
Well, what prompted it for me was a concert I went to over the summer; taking my decent Canon camera was out of the question, but had I had a camera phone, I would have taken pictures.
2167
The Pub / Re: Getting ready for an alpha release: WeCSS/Wess improvements
« on December 22nd, 2012, 11:44 PM »
This is the thing... it's solely the way it is because of older scripts. There's been an argument ever since PHP 5 introduced it that it should have made scoping mandatory, and in fact prior to PHP 5.1, it would have actually tripped a E_STRICT warning.
I get the whole size thing, but quite honestly, there are other things that are as important as keeping it minimalistic, like keeping it readable. Besides, I still want to make phpDocumentor documentation and it will not like the lack of explicit scoping directives.
I get the whole size thing, but quite honestly, there are other things that are as important as keeping it minimalistic, like keeping it readable. Besides, I still want to make phpDocumentor documentation and it will not like the lack of explicit scoping directives.
2168
Features / Re: Badges and the displaying thereof
« on December 22nd, 2012, 11:41 PM »
Yup. It's a mod, user interfaces by definition are less important, and really that's not the worst user interface I've ever seen.
I'm still not sure what our UI for this should look like.
I'm still not sure what our UI for this should look like.
2169
Features / Re: Something really strange just occurred to me
« on December 22nd, 2012, 11:40 PM »
Better question is *why*.
As the DB structure stands, we *have* to provide a group for users to go to. Group 0 absolutely has to exist in some fashion. All I'm essentially doing is converting from being a phantom group into being a real group, albeit one that you couldn't remove.
As the DB structure stands, we *have* to provide a group for users to go to. Group 0 absolutely has to exist in some fashion. All I'm essentially doing is converting from being a phantom group into being a real group, albeit one that you couldn't remove.
2170
Off-topic / Re: LG Nexus 4
« on December 22nd, 2012, 11:37 PM »The PureView, isn't that what Pete has as well..?
I don't see the point, is it only for the camera?
Yes, it was primarily for the 41 megapixel sensor in the camera. Symbian's design does also predicate well designed, efficient code, and the single core processor enforces that.
I realise that you don't have everything, but figure out what's most important to you, and go with that. For me, beyond the ability to talk, I only wanted the camera. The maps are *great* (better than Google or Apple) but that's a nice bonus rather than a core feature.
2171
Features / Re: Badges and the displaying thereof
« on December 22nd, 2012, 11:34 PM »
What you do with S&B is have a single textbox in the admin panel where you indicate what badges to be displayed. E.g. if a user is in groups 1, 4, 10 and 20 (4 being the post count group), you could indicate 1,10,20,4 in the admin panel to display those groups if users are in them.
2172
The Pub / Re: Getting ready for an alpha release: WeCSS/Wess improvements
« on December 22nd, 2012, 11:33 PM »Does that mean you want me to specify 'public' on all my functions in wetem and wess..?
That would easily add a hundred bytes to the source code size. Per file.
That's the same here. For convenience, you don't have to specify a certain keyword.
When you have a class, it is simply good practice to put that stuff in, even if it is how PHP will 'interpret' it. Partly because PHP might randomly decide to make protected the default in the future, partly because other people reading the code will understand later (be that us or someone else)
2173
Features / Re: Badges and the displaying thereof
« on December 22nd, 2012, 11:23 PM »
The big difference is that in S&B you just say what badges to display out of all of them and you set the exact display order.
2174
Off-topic / Re: LG Nexus 4
« on December 22nd, 2012, 11:21 PM »
Don't look at me, I bought a Nokia PureView 808 (you know, the one that runs Symbian)... aside from the fact that the browser is only modestly good, the battery life has been great and the camera is fantastic.
Go with what feels right to you and what has the features you need.
Go with what feels right to you and what has the features you need.
2175
The Pub / Re: Getting ready for an alpha release: WeCSS/Wess improvements
« on December 22nd, 2012, 10:59 PM »
If you don't declare the scope, they're automatically public anyway. I just made it explicit rather than implicit. I'm not sure PHP does parse it faster - it's actually historical hangover from PHP 4 when OO didn't have scoping. Aside from that, it's simply good practice.
As far as $options = & we::$opt or whatever, that's fine, but the goal should be eventually to remove it. Global variables are not actually that clever.
As far as $options = & we::$opt or whatever, that's fine, but the goal should be eventually to remove it. Global variables are not actually that clever.