Wedge

Public area => Features => The Pub => Features: Forward thinking => Topic started by: Nao on May 6th, 2011, 05:09 PM

Title: Removing deprecated code
Post by: Nao on May 6th, 2011, 05:09 PM
Feature: Removing deprecated code
Developer: Arantor & Nao
Target: admins, modders, themers
Status: 99% (believed to be complete, but it's a never-ending feature implementation because of its very nature.)
Comment:

We believe that software should live in the present, not in the past. Libraries that were deprecated years ago should not be supported anymore, because they mean overhead, bloat, and usually prevent developers from using new features, for fear of breaking something on older platforms. Because some people are too afraid of "fixing what isn't broken", they're still using PHP 4.x and MySQL 4.0 these days.
They shouldn't be afraid.
So we removed support for PHP < 5.1.2, MySQL < 4.1.2, and are requiring support for the GD2 graphics library (which shouldn't be a problem in 99% of the cases.)
Dozens of other minor libraries, functions and programming methods that didn't belong in this age were also deprecated, such as support for the Wap, Wap2 and iMode wireless modes, the boardmod installation system for add-ons, or older SMF1 compatibility code.
Title: Re: Removing deprecated code
Post by: Nao on June 10th, 2011, 06:24 PM
Update: we're considering dropping support for PHP < 5.3, instead of 5.1.2.

The reasons behind it:
- 5.3 is already 2 years old (will be in two weeks). We can no longer consider it 'young'. It has received several incremental updates, and should be perfectly stable now.
- 5.2 and 5.3 add some features that, although not vital, are nice enough that we sometimes used them without realizing we couldn't. Then we had to write our code differently, etc... It's not cool.
- It's best to keep up with the current version, if only because it allows us to test for compatibility. Sometimes new PHP versions break compatibility, so we need to install these versions... Might as well ask everyone to use the same branch as we do.
- And finally, really -- here's the thing we'll always say to people who complain about version numbers in Wedge.

If you're really serious about outdated software, use SMF 2.0!

Your host should have PHP 5.3 installed. If it doesn't, maybe it's a cheap, bad host, and maybe they're not up to date on most of their software -- as a result, it may create other issues in Wedge that wouldn't trigger otherwise.

Guys & gals, we'd be interested in knowing what PHP (and MySQL) version you're running your main SMF install on! This information should be in your admin homepage.
Title: Re: Removing deprecated code
Post by: TE on June 10th, 2011, 06:39 PM
the php version on oldest linux (debian etch) is 5.2.0-8  :huh:
Title: Re: Removing deprecated code
Post by: billy2 on June 10th, 2011, 07:10 PM
PHP version   5.2.17
MySQL version   5.1.56
 :sob:
Host moving me to 5.3 server sometime
:)
Title: Re: Removing deprecated code
Post by: spoogs on June 10th, 2011, 07:11 PM
PHP version   5.2.14
MySQL version   5.0.92-community
Title: Re: Removing deprecated code
Post by: Dismal Shadow on June 10th, 2011, 07:24 PM
PHP version   5.2.9
MySQL version   5.0.91-community
 :sob:
Title: Re: Removing deprecated code
Post by: Dr. Deejay on June 10th, 2011, 07:26 PM
PHP version   5.3.5
MySQL version   5.5.8 :P
Title: Re: Removing deprecated code
Post by: Alanthar on June 10th, 2011, 07:38 PM
PHP 5.3.2
MSQL 5.1.41
Title: Re: Removing deprecated code
Post by: b4pjoe on June 10th, 2011, 07:54 PM
PHP Version: 5.2.17
MySQL: 5.1.52
Title: Re: Removing deprecated code
Post by: MultiformeIngegno on June 10th, 2011, 07:57 PM
PHP version: 5.3.6 (AlwaysData)
Title: Re: Removing deprecated code
Post by: Arantor on June 10th, 2011, 07:58 PM
I have no idea what my VPS has but my local has PHP 5.2.quiteold...
Title: Re: Removing deprecated code
Post by: Nao on June 10th, 2011, 08:10 PM
Thank you guys...
I can assume that everyone's at least at 5.2, that's the good news.
The bad news being that over half of you are at 5.2, so maybe 5.3 is a tad too demanding as the minimum version.
5.2 would still be good. It has JSON and ZIP by default, as well as file upload progress. But 5.3 would be great. Namespaces, lambda functions for me (I learned to love them in JS), MySQLi for Pete... Sweet.
Pete, locally you could use WampServer. It's working great for me, and the lowest default version of PHP on it is 5.3.0.

Etch was the Debian I'd installed on my server last time I had one -- a couple of years ago. I would assume if I'd kept it, I'd have updated the main packages, but apparently PHP 5.3 is only available either through recompiling, or through non-official package servers like php53.dotdeb.org... Hmm. That'd mean I'd be locked out of my own forum system, eh. Or that I'd get a good reason to try and upgrade it, obviously.

Need more configuration samples. Keep 'em coming! :)
Title: Re: Removing deprecated code
Post by: dazed on June 10th, 2011, 08:10 PM
PHP v. 5.29
Title: Re: Removing deprecated code
Post by: b4pjoe on June 10th, 2011, 08:15 PM
I just found on my cheap shared hosting (Hostgator) that 5.2 is the default but 5.3 is available so I changed it and it is now at 5.3.6.
Title: Re: Removing deprecated code
Post by: Arantor on June 10th, 2011, 08:19 PM
WampServer... no thanks, I've been building configurations manually for years, I'd hate to stop now ;) I may have to bump Apache too but since I checked and find myself on Apache 2.0 and PHP 5.2.6 it's probably time to update localhost anyway.

Btw, Ubuntu 10.04 LTS (Lucid Lynx) has 5.3.2 so if Ubuntu does it on an LTS release, it might not be so hard to convince others to do so...
Title: Re: Removing deprecated code
Post by: TE on June 10th, 2011, 08:24 PM
Quote from Nao/Gilles on June 10th, 2011, 08:10 PM
5.2 would still be good. It has JSON and ZIP by default, as well as file upload progress. But 5.3 would be great.
yep, and simplexml which is required by the new import engine :whistle:
Title: Re: Removing deprecated code
Post by: live627 on June 10th, 2011, 09:05 PM
MySQL version: 5.0.91-log
PHP: 5.2.17

1&1 :(
Title: Re: Removing deprecated code
Post by: borg1985 on June 10th, 2011, 09:19 PM
MySQL 5.1.52
PHP 5.2.17 (Can easily change to 5.3 though.)
Title: Re: Removing deprecated code
Post by: Pete on June 10th, 2011, 09:54 PM
PHP version - 5.3.4
MySQL version - 5.0.92-community-log
Title: Re: Removing deprecated code
Post by: Rustybarnacle on June 10th, 2011, 10:28 PM
PHP   5.2.17
MySQL 5.1.56-community-log

and

PHP  5.2.13
MySQL 5.0.92-community
Title: Re: Removing deprecated code
Post by: ethankcvds on June 10th, 2011, 11:33 PM
PHP 5.3.6 on my production server and MYSQL version 5.1.?. My test server has PHP 5.2.17 and MYSQL 5.1.57.

Code: [Select]
// IE 4 is rather annoying, this wouldn't be necessary...
    echo '
            var fSetupCredits = function ()
            {
                smfSetLatestSupport();
                smfCurrentVersion()
            }
            addLoadEvent(fSetupCredits);
        // ]]></script>';
Title: Re: Removing deprecated code
Post by: snoopy-virtual on June 10th, 2011, 11:53 PM
In my main production servers:

PHP 5.2.17
MySql 5.0.67

But I have the choice to use other versions in subfolders if needed (included PHP 5.3)
Title: Re: Removing deprecated code
Post by: Arantor on June 11th, 2011, 12:18 AM
TE, you made the jump to SimpleXML? I was carefully going to reuse Subs-Package.php to interpret XML in the package manager overhaul but if SXML is already used in one area, hell, let's reuse it properly! (And, incidentially, I had to bone up on it for my Zend exam that was supposed to be next week but won't be due to an administrative fuck up caused by my not having a passport.)
Title: Re: Removing deprecated code
Post by: godboko71 on June 11th, 2011, 02:53 AM
PHP is 5.3.6 & MySQL MySQL version 5.1.49  on main VPS and  PHP 5.2.something old & MySQL 5.Idon't know on the other.
Title: Re: Removing deprecated code
Post by: Arantor on June 11th, 2011, 02:55 AM
Judging by the comments here, 5.2 is easily a safe bet, but that 5.3 isn't unrealistic... :) (Crap, I might actually have to update my local machine in that case)
Title: Re: Removing deprecated code
Post by: DoctorMalboro on June 11th, 2011, 03:45 AM
I think I have 5.3 and well, that's it...
Title: Re: Removing deprecated code
Post by: Vekseid on June 11th, 2011, 07:58 AM
PHP 5.3.3
MySQL 5.1.49

Dropping PHP 5.2 might be okay for a future release, marking code as 'we'd like to replace this with' or 'would like to use'...
Title: Re: Removing deprecated code
Post by: TE on June 11th, 2011, 09:02 AM
Quote from Arantor on June 11th, 2011, 12:18 AM
TE, you made the jump to SimpleXML? I was carefully going to reuse Subs-Package.php to interpret XML in the package manager overhaul but if SXML is already used in one area, hell, let's reuse it properly!
I had the use of Subs-Package.php in mind but skipped it at the end, simply because it doesn't match with my ideas reading the XML-structure, thus I had two options: rewrite it entirely to fit my own needs or use SimpleXML instead. Using SimpleXML  is damn simple  :)

The one thing I still miss in SimpleXML is proper error handling (broken XML files, e.g. unclosed tags etc) but that's already solved within the new importer engine (the one in the team board is totally outdated, I'll upload the new one tomorrow).
Title: Re: Removing deprecated code
Post by: MultiformeIngegno on June 11th, 2011, 11:36 AM
Quote from Arantor on June 11th, 2011, 12:18 AM
TE, you made the jump to SimpleXML? I was carefully going to reuse Subs-Package.php to interpret XML in the package manager overhaul but if SXML is already used in one area, hell, let's reuse it properly! (And, incidentially, I had to bone up on it for my Zend exam that was supposed to be next week but won't be due to an administrative fuck up caused by my not having a passport.)
I'd go for 5.3... we're not looking for the largest audience (as SMF does)! As already said, 5.2 is TWO YEARS OLD!
Let's PUSH the innovation! :D
Title: Re: Removing deprecated code
Post by: Nao on June 11th, 2011, 12:02 PM
Sure, we're not looking for a large audience, but... What about the existing Wedge enthusiasts who are on PHP 5.2? I don't know if I can 'force' them to switch to 5.3 just because I want to be able to use lambda functions...
Title: Re: Removing deprecated code
Post by: MultiformeIngegno on June 11th, 2011, 12:05 PM
Uhm.. let's ask them if they're willing to ask their hosting to update their PHP install or change hosting (hosting with an outdated PHP environment IMHO aren't worth to be used)!

Ok, I'm sure I've made a lot of errors in this phrase.. but it's complex!! :P
Title: Re: Removing deprecated code
Post by: Nao on June 11th, 2011, 12:46 PM
I'm not sure PHP 5.2 is 'that' outdated, really... It's certainly not flavor-of-the-day, but it's still very much usable.
Using PHP 4 definitely is outdated, though. By 10 years :P
Title: Re: Removing deprecated code
Post by: MultiformeIngegno on June 11th, 2011, 01:17 PM
Well, in this era, a host that doesn't update its "major product" (PHP environment) in 2 years, IHMO is a bad host...
Title: Re: Removing deprecated code
Post by: baggeroli on June 11th, 2011, 04:11 PM
PHP version: 5.2.17
MySQL version: 5.0.92
Title: Re: Removing deprecated code
Post by: Rustybarnacle on June 11th, 2011, 07:49 PM
Is there a reason they might not have updated?  Is 5.3 a major memory upgrade as well or some other reason to give it a pass like most of us did on Vista?
Title: Re: Removing deprecated code
Post by: Arantor on June 11th, 2011, 07:50 PM
There are some backwards incompatible changes in 5.3 versus earlier, but nothing that affects properly written code and for the benefits (and performance enhancements) it's worth making the move.
Title: Re: Removing deprecated code
Post by: pgordemer on June 11th, 2011, 09:02 PM
Many personal VPS and hosts use Centos 5.x which uses the PHP 5.2.17. One of the big holdups to php 5.3 has been there isn't a pear package that runs with 5.3, so a lot of programs that need it like APC cache, etc don't work without doing custom compiles. Many hosts also provide mail interfaces (squirel mail, roundcode, etc) which all fail with 5.3

Once Centos 6 makes the air, then php 5.3 will have good support.
Title: Re: Removing deprecated code
Post by: Rustybarnacle on June 11th, 2011, 09:30 PM
Ahhh, yes, my host has the Squirrel and a couple other mail interfaces.
Title: Re: Removing deprecated code
Post by: ethankcvds on June 11th, 2011, 09:53 PM
Quote from pgordemer on June 11th, 2011, 09:02 PM
Many personal VPS and hosts use Centos 5.x which uses the PHP 5.2.17. One of the big holdups to php 5.3 has been there isn't a pear package that runs with 5.3, so a lot of programs that need it like APC cache, etc don't work without doing custom compiles. Many hosts also provide mail interfaces (squirel mail, roundcode, etc) which all fail with 5.3

Once Centos 6 makes the air, then php 5.3 will have good support.
Um you do know if your running Centos 5.6 you can use php 5.3 without having to use an external repo so you really don't have to wait for Centos 6.0.
Title: Re: Removing deprecated code
Post by: Dragooon on June 11th, 2011, 10:17 PM
Or you can just compile, which is quite easy.
Title: Re: Removing deprecated code
Post by: pgordemer on June 12th, 2011, 05:25 AM
Quote from Mr. Huckabunghaga on June 11th, 2011, 10:17 PM
Or you can just compile, which is quite easy.
I do know that, but using APC cache on the system running a ton of sites with heavy PHP is something I can not afford to loose at the moment.

In either case I was making a generic statement about many hosts out there using Centos and premade packages as part of CPanel, HCMS, Virtualmin, etc....

Title: Re: Removing deprecated code
Post by: Dragooon on June 12th, 2011, 10:28 AM
AFAIK cPanel, Directadmin etc install PHP/MySQL etc on their own and don't rely on system packages, and they are generally updated within a week of release.
Title: Re: Removing deprecated code
Post by: Nao on June 15th, 2011, 12:07 PM
Okay, so now that we've established everyone here is running at least 5.2.x, we can safely require 5.2. It's better than nothing!

As to the minimum minor version... What should it be? XenForo is 5.2.4. I considered it bold last year, but six months later I just see it as normal ;) I don't have the time to go through the PHP 5.2.x changelog and see whether some interesting bug fixes were applied later in the process.
Title: Re: Removing deprecated code
Post by: Arantor on June 15th, 2011, 12:53 PM
The main reason XF is 5.2.4 is because of its dependencies with respect to Zend Framework components. (Please, dear god, never let us go down that road. That road is the path to madness, from experience.)

Anyone using 5.2.x should be using 5.2.17 on a production environment unless they know for certain they're using a 64 bit build of PHP, otherwise they are at trivial risk of DDoS from floating point mishandling.
Title: Re: Removing deprecated code
Post by: Ferrika on June 17th, 2011, 05:03 PM
PHP 5.2.6
MySQL 5.0.51a
Title: Re: Removing deprecated code
Post by: Eros on June 17th, 2011, 05:32 PM
My most outdated VPS is:
php 5.2.6-1 on Lenny
mysql 5.0.51a on Lenny

My most recent VPS is:
php 5.3.3-7 on Squeeze
mysql 5.1.49 on Squeeze

And, in all honesty, nothing I own ever falls a major version behind Debian's current stable distribution for more than 6-9 months. So 5.3/5 sounds good to me. I've only got one Lenny VPS and it is going to get nuked in ~3 months when I move the site in my sig.
Title: Re: Removing deprecated code
Post by: chilly on June 17th, 2011, 05:55 PM
MySQL version: 5.0.51a-24+lenny5
PHP: 5.2.14-0.dotdeb.0

MySQL version: 5.1.49-3
PHP: 5.3.3-7+squeeze1
Title: Re: Removing deprecated code
Post by: and on June 17th, 2011, 08:10 PM
Версия Apache   2.2.17
Версия PHP   5.2.15
Версия MySQL   5.0.90-community-log
Title: Re: Removing deprecated code
Post by: Norodo on June 17th, 2011, 10:39 PM
My VPS runs:

lighttpd/1.4.28
PHP/5.3.3-7
MySQL/5.1.49

No problems here then.
Title: Re: Removing deprecated code
Post by: groundup on June 21st, 2011, 04:28 AM
Need a like button.
Title: Re: Removing deprecated code
Post by: Dismal Shadow on June 21st, 2011, 05:13 AM
Quote from groundup on June 21st, 2011, 04:28 AM
Need a like button.
For?
Title: Re: Removing deprecated code
Post by: Arantor on June 21st, 2011, 09:35 AM
For liking the fact that we're pushing more recent versions.
Title: Re: Removing deprecated code
Post by: Nao on June 21st, 2011, 11:59 PM
So... Minimum version? 5.2 or 5.3? We're still unsure about this one...
Title: Re: Removing deprecated code
Post by: Norodo on June 22nd, 2011, 12:11 AM
Quote from Nao/Gilles on June 21st, 2011, 11:59 PM
So... Minimum version? 5.2 or 5.3? We're still unsure about this one...
I say whichever makes your life easier and coding better. Then again I'm only one person. The feeling I got from this project is that you choose what to support based on how much you like it. And I think that's a good thing, because you seem to have a good gut feeling.

5.3 is the standard choice for php5 in Debian stable, and Debian is fairly slow on releases.

So for me anyway, 5.3 seems like the better option, if it gives you a further array of tools to create a better forum :)

EDIT: Checked with Nearlyfreespeech (my favourite web hosting company) and at least they support 5.3. What can I say? Maybe people ought to update their programs. ;)
Title: Re: Removing deprecated code
Post by: groundup on June 22nd, 2011, 12:56 AM
Go with 5.3. Be bold and innovative with it. Besides,  what's your release plan like? 6 months to a final release? In 6 months, where do you think 5.3 adoption will be at?
Title: Re: Removing deprecated code
Post by: borg1985 on June 22nd, 2011, 01:55 AM
Quote from Nao/Gilles on June 21st, 2011, 11:59 PM
So... Minimum version? 5.2 or 5.3? We're still unsure about this one...
Go with 5.3.  As groundup said be innovative. :)
Title: Re: Removing deprecated code
Post by: Eros on June 22nd, 2011, 04:17 AM
5.3 ftw.
Title: Re: Removing deprecated code
Post by: Nao on June 22nd, 2011, 09:34 AM
Even though half our potential users are currently on 5.2 then? :^^;:
Title: Re: Removing deprecated code
Post by: Eros on June 22nd, 2011, 09:55 AM
Its up to you :P

Just I know the only 5.2 VPS I have left will be gone by the time Wedge would be worth installing on that site. ;)
Title: Re: Removing deprecated code
Post by: Dragooon on June 22nd, 2011, 09:59 AM
How many of you can get your host to upgrade to PHP 5.3? Any decent host should be co-operative enough to upgrade to the current stable version of PHP.
Title: Re: Removing deprecated code
Post by: Nao on June 22nd, 2011, 10:54 AM
I've internally changed the minimum version to 5.2. Not much to change, actually... Our current code doesn't 'really' require 5.2+, it just could make use of that knowledge later on.
Title: Re: Removing deprecated code
Post by: snoopy-virtual on June 22nd, 2011, 12:49 PM
I would also say 5.3 if Wedge was only for us, but as Nao says we need to think on the potential users.

After all, I only see here geeks answering.  :eheh:

I will never accept working with a hosting company if they don't provide the more up-to-date software, but I am not sure if noobs (more than 90% of the people) even know how to do that or if they have ever thought about it for a minute.
Title: Re: Removing deprecated code
Post by: Dragooon on June 22nd, 2011, 12:51 PM
Quote from Nao/Gilles on June 22nd, 2011, 10:54 AM
I've internally changed the minimum version to 5.2. Not much to change, actually... Our current code doesn't 'really' require 5.2+, it just could make use of that knowledge later on.
WePortal will be dissapointed.
Title: Re: Removing deprecated code
Post by: snoopy-virtual on June 22nd, 2011, 01:24 PM
If there are important features that require 5.3 that's different.

If that's the case I will go then for 5.3 and keep those important features. Noobs will need to adapt (and/or we will need to be patient with them and teach them).
Title: Re: Removing deprecated code
Post by: Arantor on June 22nd, 2011, 01:36 PM
There's nothing that we expressly need 5.3 for in Wedge right now, but that's not to say we have to leave it that way. There's plenty of time to change yet :)
Title: Re: Removing deprecated code
Post by: Norodo on June 22nd, 2011, 03:37 PM
Quote from snoopy-virtual on June 22nd, 2011, 12:49 PM
Snip
One question may be, is Wedge really trying to appeal to "noobs"?
Title: Re: Removing deprecated code
Post by: Dragooon on June 22nd, 2011, 03:38 PM
Quote from Norodo on June 22nd, 2011, 03:37 PM
One question may be, is Wedge really trying to appeal to "noobs"?
For all I know Nao will surely scare them away.
Title: Re: Removing deprecated code
Post by: Nao on June 22nd, 2011, 03:42 PM
If the noob is a pretty girl, definitely yes. :eheh:

Otherwise, well... We've all been noobs at one point. But they're not our target audience, yeah. They're the audience we're going to redirect to SMF anytime we can.
Title: Re: Removing deprecated code
Post by: Arantor on June 22nd, 2011, 03:43 PM
Quote
...is Wedge really trying to appeal to "noobs"?
No, but it's inevitable that noobs will use it anyway. Hell, before I got actively involved with SMF, I used to provide support for Sphinx, which is a search daemon. Clue's in the title; it's a daemon, which means it's running on shell, as a system service, and you will likely need to compile it yourself.

Yet, I heard people talking about running it on shared hosts and so on. Regularly.

If it turns out well, the name gets about, people will want to use it, noob or not.

The thing is, by making things more logical and run more smoothly, the odds are fairly in favour that it will be more noob friendly than SMF by accident anyway, even though we're not encouraging its use by such.
Title: Re: Removing deprecated code
Post by: Norodo on June 22nd, 2011, 03:50 PM
Quote from Arantor on June 22nd, 2011, 03:43 PM
The thing is, by making things more logical and run more smoothly, the odds are fairly in favour that it will be more noob friendly than SMF by accident anyway, even though we're not encouraging its use by such.
One thing I think SMF is losing out on is its layout/UI for people actually browsing the site. How you edit your settings, make things appear/dissapear... It's just not self-explanatory enough. These people will be scrubs, and that is not going to change. SMF is "complicated" for all the wrong reasons. I do hope this is changed in Wedge, for sure.

But on the SysOP side I think it's better to not appeal to less skilled people, as they are very likely to "cost" more in support than they'll be able to "feed back". Then again, I'm not a good samaritan.
Title: Re: Removing deprecated code
Post by: Arantor on June 22nd, 2011, 03:56 PM
I'm not sure I know exactly what you mean about 'making things appear/disappear'. But I certainly won't disagree that the admin panel is a clusterfuck of stuff that doesn't really make sense. 1.1 was better, 2.0 took everything in 1.1 and added more "stuff" to it and it's confused a lot of people, particularly the way permissions were done.

That said, you can't, realistically, have configuration options for every little thing: the admin panel already exceeds 100 1st and 2nd level menu items (which means you're basically talking ~90 pages of stuff, all told - first level items just display the first of an item's second level items)

There is a certain degree of value in 'less is more', in fact. Or at least, the perception of less stuff even if there's actually more stuff available to you.
Title: Re: Removing deprecated code
Post by: Norodo on June 22nd, 2011, 04:02 PM
Quote from Arantor on June 22nd, 2011, 03:56 PM
I'm not sure I know exactly what you mean
One of my biggest disadvantages, I'm so unclear when I write.
Quote
about 'making things appear/disappear'.
Eh mostly I was talking about the "look and layout" tab. Many people have trouble even finding that in the default themes... But the other settings too are just "not easy to find" for new people.
Quote
But I certainly won't disagree that the admin panel is a clusterfuck of stuff that doesn't really make sense.
Too true. The admin panel is a clusterfuck but at least to me that doesn't matter as much as how the users perceive the site. It would be nice with a better ACP for sure though.
Quote
There is a certain degree of value in 'less is more', in fact. Or at least, the perception of less stuff even if there's actually more stuff available to you.
Oh definitely. There was a TED talk about this someplace. I'll see if I can find it...

Here: Barry Schwartz: The paradox of choice(http://www.youtube.com/watch?v=VO6XEQIsCoM#)
Title: Re: Removing deprecated code
Post by: snoopy-virtual on June 22nd, 2011, 04:13 PM
Quote from snoopy-virtual on June 22nd, 2011, 01:24 PM
If there are important features that require 5.3 that's different.

If that's the case I will go then for 5.3 and keep those important features.
Quote from Arantor on June 22nd, 2011, 01:36 PM
There's nothing that we expressly need 5.3 for in Wedge right now, but that's not to say we have to leave it that way. There's plenty of time to change yet :)
I was answering to this post by Dragoooon:
Quote from Dragooon on June 22nd, 2011, 12:51 PM
WePortal will be dissapointed.
It looks to me as it implies WePortal has some features that need 5.3 to work properly.
Title: Re: Removing deprecated code
Post by: Arantor on June 22nd, 2011, 04:21 PM
Oh, that's a good lecture.
Quote
as how the users perceive the site
So, what is it you're asking for?
Title: Re: Removing deprecated code
Post by: Norodo on June 22nd, 2011, 05:39 PM
Quote from Arantor on June 22nd, 2011, 04:21 PM
Oh, that's a good lecture.

So, what is it you're asking for?
I'm not really asking for anything. I'm waiting with hope for Wedge, to see how it looks, before I even say one thing about it. Let me just say that your notion of "less is more" resonates well with my ideals as well. :)
Title: Re: Removing deprecated code
Post by: Arantor on June 22nd, 2011, 05:48 PM
That's the thing: the admin panel is still very much in flux. There will be a LOT more in it than there is in SMF's, simply because we've added more to it than we have taken out.

Right now it is basically just SMF's admin panel with half a dozen things gone and plenty more added. So, thus, my question stands: you've said that you see a problem with the look and layout options. What problem do you see? How would you resolve it?

I have my own ideas, some of which are fairly controversial on the subject of pruning the admin panel, so let's start on a smaller area...
Title: Re: Removing deprecated code
Post by: Norodo on June 22nd, 2011, 06:43 PM
Quote from Arantor on June 22nd, 2011, 05:48 PM
That's the thing: the admin panel is still very much in flux.
That I'm perfectly fine with! The admin panel is for a few eyes only. What I care more about is how the average user experiences the site. With that said, I agree that there's room for improvements on both sides of that bar.
Quote
There will be a LOT more in it than there is in SMF's, simply because we've added more to it than we have taken out.
:yahoo:
Quote
You've said that you see a problem with the look and layout options. What problem do you see? How would you resolve it?
Now I've personally used SMF so much that I'm probably a bit biased. I'll check with what my forumgoers say and try to forward what they've had the most problems with. Some of these things are probably just things I have opinions on, but I'll try to ground them in reason. Some are small problems some are big.

Let's start from the top:

1. Drop down menus. The problem is not so much that there are drop down menus, it's more that thee content in them can be ambiguous. For example, the first time you register, and you want to change your theme, where do you go? In the beginning you'll probably be looking for something called "settings" or "control panel", maybe you'll scroll down to the bottom of the page to check if there's a dropdown menu for it, as it is on many boards. When you don't find it there you'll look further. Could your settings be under "Profile", maybe? Yes. Yes they could. So you click account settings and what do you see?

(click to show/hide)
Just an example.
(http://i.imgur.com/06ObR.png)

You're getting confused. Where can I change my theme? If you are an inquiring mind you might just hover over modify profile long enough to find look and layout.

Thank God. You're there. The same problem develops if you want to change the default setting of " Return to topics after posting by default." or "Messages to display per page:"

This problem is to a big extent fixed when you use the "sidebar menus" instead of dropdown menus whenever possible, but there might be better solutions...

I'll be back with more about this later. Right now: Dinner time. ;)
Quote
I have my own ideas, some of which are fairly controversial on the subject of pruning the admin panel, so let's start on a smaller area...
I'd love to hear more. Ideas can be fascinating, even though I personally am a firm believer of good execution > good ideas. :)
Title: Re: Removing deprecated code
Post by: Stef on June 22nd, 2011, 07:43 PM
I am on normally hosting in the Netherlands.

PHP: 5.2.17   
MySQL: 5.0.91-community-log
Title: Re: Removing deprecated code
Post by: Nao on June 22nd, 2011, 07:56 PM
Quote from Norodo on June 22nd, 2011, 06:43 PM
For example, the first time you register, and you want to change your theme, where do you go?
You know, I always have trouble finding the theme switcher, even though I'm not exactly a noob :P
I even have one entry in my to-do list -- that basically says, "build a styling switcher somewhere on every page". Before I do this, I'll have to cache styling entries because right now it scans folder to find them (which allows me to manipulate stylings easily and without fear of any caching problems.)

But as you see... It's something we're aware of.
Quote
Thank God. You're there. The same problem develops if you want to change the default setting of " Return to topics after posting by default." or "Messages to display per page:"
"Return to topics", that's a big one... I've always been annoyed by this. When you write a post, you want to make sure it's live, and it looks like what you want.
I probably mentioned it in the feature list somewhere, but Wedge checks this setting by default. :)
Quote
This problem is to a big extent fixed when you use the "sidebar menus" instead of dropdown menus whenever possible, but there might be better solutions...
Sidebar menus have UI issues just the same. I'm the one who pushed for a sidebar, but I'm not in a hurry to use it everywhere. For instance, Noisen and Wedge.org use a fully developed menu in the profile sidebar. Heck, I always get lost in it, and wish for the dropdown menu to come back...
Title: Re: Removing deprecated code
Post by: Norodo on June 22nd, 2011, 08:15 PM
Quote from Nao/Gilles on June 22nd, 2011, 07:56 PM
But as you see... It's something we're aware of.
I'm glad you are. I'm not trying to "force" my vision on you, simply trying to answer Aranators post.
(click to show/hide)
Quote from Arantor on June 22nd, 2011, 05:48 PM
What problem do you see? How would you resolve it?

So please don't take this the wrong way. I'm just laying out what I think is done badly today. If you want me to stop yapping that is fine too. :)
Quote from Nao/Gilles on June 22nd, 2011, 07:56 PM
Sidebar menus have UI issues just the same.
Yeah I was hinting to this when I said:
(click to show/hide)
Quote
This problem is to a big extent fixed when you use the "sidebar menus" instead of dropdown menus whenever possible, but there might be better solutions...

Maybe there's a better place here to post my musings? Hmm.
Title: Re: Removing deprecated code
Post by: Hey Arnold! on January 31st, 2012, 05:18 PM
Very very soon stable release PHP 5.4(http://www.php.net/) :yahoo:
Title: Re: Removing deprecated code
Post by: Nao on January 31st, 2012, 05:21 PM
Well, it won't be available on a large scale for a few years, so it won't change anything to our requirements... Right now, it's 5.2.3.
Title: Re: Removing deprecated code
Post by: Hey Arnold! on March 1st, 2012, 10:26 PM
PHP 5.4.0(http://www.php.net/) is available :yahoo:

Many hosting will be upgraded to PHP 5.4 this year?
Title: Re: Removing deprecated code
Post by: Arantor on March 1st, 2012, 10:32 PM
No, they won't upgrade yet. There are still hosts running 5.2 which is a few years old as it is.
Title: Re: Removing deprecated code
Post by: Nao on March 1st, 2012, 10:58 PM
So, they're adding mixins (like WeCSS but for objects :P), and JavaScript-style short arrays? That's not a lot, but it's stuff that I can see people using. Too bad I can use $arr = [0,1] right now in PHP 5.2 :P
Title: Re: Removing deprecated code
Post by: Arantor on March 1st, 2012, 11:02 PM
Decent mixin support is more than long overdue in PHP (though depending on what you're doing it can be very fragile and break in unexpected ways), though it has of course been possible to implement in various interesting ways.

Short arrays? *shrug* I have to say I'm just not that 'gimme RIGHT NOW' about 5.4, whereas 5.3 brought stuff that was immediately useful.
Title: Re: Removing deprecated code
Post by: Nao on March 1st, 2012, 11:12 PM
Like what? Apart from namespaces, can't think of anything...
Title: Re: Removing deprecated code
Post by: Arantor on March 1st, 2012, 11:21 PM
Not that we use them much, but late static binding's quite a draw, better support for closures too, and the garbage collector's smarter when it comes to cyclic references (which helps deal with memory leaks)

On a smaller note, 5.3 also brought mysqlnd as a replacement under the hood for the old libmysqlclient connector, which aside from solving a messy licensing issue is actually faster and cleaner.