New revs - Public comments

Norodo

  • Oh you Baidu, so randumb. (60 sites being indexed at once? Jeez)
  • Posts: 469
Re: New revs - Public comments
« Reply #480, on October 23rd, 2012, 11:11 AM »
I wouldn't discount IE7 completely yet if I were to follow my GA stats. The amount of people using IE7 is non neglible, at least 1% right now. Now this might change before Wedge is released completely, but as it is right now IE7 matters.

IE6 sees little use on the pages I oversee, with around 2‰ usage from the last couple of months. Dead at last!

Pandos

  • Living on the edge of Wedge
  • Posts: 635
Re: New revs - Public comments
« Reply #481, on October 23rd, 2012, 11:22 AM »
To get more accurate:


last month 7283 unique visitors with IE7 and 1061 unique with IE6....

# dpkg-reconfigure brain
error: brain is not installed or configured

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: New revs - Public comments
« Reply #482, on October 23rd, 2012, 08:43 PM »
I don't know how you can reach these numbers, perhaps your site is geek-oriented, I don't know...
Market usage numbers for IE6 and IE7:
http://marketshare.hitslink.com/browser-market-share.aspx?qprid=2&qpcustomd=0

2.51% for IE7, and 7.22% for IE6... If you click the browser names, you can see the evolution over the last year. IE7 numbers have been reduced by 50% which is good, but IE6 numbers have actually been stable.

Now, if you take ie6countdown.com into account, they claim similar numbers (6% for IE6, with a stagnation over the last few months), but their per-country data shows that most of that traffic is from IE6. This is apparently mostly due to the fact that the vast majority of China's Windows XP copies are pirated, and thus can't use Windows Update for anything else than 'critical updates'[1], and IE has never been flagged as a critical update -- until recently, and only in a limited number of countries. I suspect China has yet to have it flagged as critical, though...

Anyway, so in conclusion -- Wedge doesn't care much about China, so I'd consider the IE6 share to be about 2.5%, which is enough to justify dropping it (even though it's still higher than the Opera usage share, but I'm okay with preserving support for an excellent browser that barely has any quirks, eh!). IE7, in comparison, is the default browser in Vista only, and its shares probably mostly reflect the pirated Vista copies. Or something, I don't know. Let's say that the entire share (2.51%) is legit, and unlikely to update soon... So, that's still 5% to account for.
Would would be ready to refuse entry to your forum to one person out of twenty...? That's the main question.

I'm sure there are at least 5% of future Wedge users who'll be complaining that we don't support IE... So, I'm not dropping support.

An alternative, though, could be this: I could very well drop support for IE6/7 in the main skins, and create an IE6/7 compatible skin with the very bare minimum, similar to the Wireless skin. The only issue is that I don't see myself creating a 'shitty_browser' entry in the members table (there are currently two different entries for desktop and mobile browsers.) That is, if the user switches from IE6 to Firefox, they won't suddenly find themselves with the 'nicer' skins. Or, I could force the IE skin on IE6/7 users, disregarding their skin choices in other browsers... I don't know.
 1. Unless you're using an Enterprise version of XP, or something called like that.

MultiformeIngegno

  • Posts: 1,337
Re: New revs - Public comments
« Reply #483, on October 23rd, 2012, 09:59 PM »
Isn't Wedge for real men and women? Well, they don't use IE 6/7. :whistle:

Pandos

  • Living on the edge of Wedge
  • Posts: 635
Re: New revs - Public comments
« Reply #484, on October 23rd, 2012, 10:04 PM »
With over half a million unique users this is an very small percentage of user with IE6/7.


Your Idea of creating an extra skin for those users sounds good, but when it comes to layout questions and deploying layouts for all users this would be very complicated. You always have to touch two themes..

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: New revs - Public comments
« Reply #485, on October 23rd, 2012, 10:58 PM »
It wouldn't be a clone of Weaving. It would be a crude version like the smf wireless style. Something that makes it usable but still an incentive to use a real browser...

Norodo

  • Oh you Baidu, so randumb. (60 sites being indexed at once? Jeez)
  • Posts: 469
Re: New revs - Public comments
« Reply #486, on October 24th, 2012, 08:21 AM »
My webpages are somewhat geek-focused. Developers and gamers of nerdy games. Neither site has many users from the third world. My biggest focus in developing has been FF3.6 and IE8. Fortunately FF3.6 is on its last legs now.

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: New revs - Public comments
« Reply #487, on October 24th, 2012, 12:15 PM »
And now we're gonna have fun developing for mobile compatibility as well... Since the rendering engines for Chrome Mobile or Firefox Mobile are probably a bit buggy/different from their desktop counterparts, just like Safari Mobile is... :P

live627

  • Should five per cent appear too small / Be thankful I don't take it all / 'Cause I'm the taxman, yeah I'm the taxman
  • Posts: 1,670
Re: New revs - Public comments
« Reply #488, on November 10th, 2012, 07:04 PM »
Quote
! Fixed line breaks being turned to HTML tags in album descriptions. Well, that was an unexpected bug... And the fix is even less expectable. Please test. (Aeva-Gallery.php)
Hells yeah it's been fixed!! :yahoo:
A confident man keeps quiet.whereas a frightened man keeps talking, hiding his fear.

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: New revs - Public comments
« Reply #489, on November 10th, 2012, 07:06 PM »
It's just something I never got around to fixing before...
Fact is, it's a bit odd that item descriptions don't show this bug, even though they were handled in a similar fashion... :-/

godboko71

  • Fence accomplished!
  • Hello
  • Posts: 361
Thank you,
Boko

Nao

  • Dadman with a boy
  • Posts: 16,082

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: New revs - Public comments
« Reply #492, on January 5th, 2013, 02:32 AM »
Just to summarise where the add plugin is so far, it's able to accept the upload to the system temp folder, validate that it is a zip file, validate that it contains a plugin-info.xml file and validate the basic contents/requirements (PHP, MySQL versions plus required functions), and present a choice to the user in the event that it matches a currently enabled plugin.

There's so much still to do but getting to this point has been enough for me for now.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: New revs - Public comments
« Reply #493, on January 5th, 2013, 03:27 AM »
So, here are my other points... Most of them are not very interesting, but these are things that came to mind while reading the latest commit logs.

- Are you absolutely sure that fclose(fopen()) is better than touch()? Faster? More efficient?

- Since you removed the reserved words feature, well, rewrote it as part of the ban system, are you positive that you removed all occurrences of it that aren't needed in your rewrite? Doing a search on 'reserved' in the project sends me back a lot of results, some of which SEEM like remnants of the previous system to me... Can't say for sure, though.

- Also, is the code block at the beginning of isReservedName() the replacement for the extra code that prevented the use of jokers in a user name? I think it is, just want confirmation.

- Still against renaming .wmenu() to .dome(), right? :^^;: Well, it doesn't cost anything to ask... :whistle:

- I'm afraid I'm the one who tends to add empty newlines at the end of files... Is there something wrong with that? More odd HTML parsing? I tend to forget. One could also say, "just get rid of the closer tag"... No? (It was done that way in Class-FTP.php until you added it back, as far as I can see.)

- In Subs-Members.php, $replaceEntities uses $messages[2]... Couldn't it just use $messages[1], and we skip the surrounding brackets in $entity_name..? There's also a similar function, $fixchar in Dlattach.php, which could need your attention in a similar fashion ;) Oh, and $entity_replace in ManageMaintenance.php. And another $fixchar in Subs-Post.php... And two functions in Subs-PrettyUrls.php (entity_replace and fix_accents).

Makes me think it would be better to use existing functions for that, eh. I think westr has one... If not, we could make one. It would at least be faster than always redefining these with create_function(). Maybe just do a wide search for "& 63", that could be enough.

- We should do, for good, a template-wide replace of $scripturl with <URL>... It's so much cleaner, and it's no slower (probably a bit faster at this point.)

- Suggesting we remove $context['user'] entirely. Can do it if you want. It's about 215 matches, most of which should be done manually.

- If we rename allowedTo() to we::can(), I'd suggest renaming isAllowedTo() to we::enforce(), a name that makes more sense to me...

- Is manage_bans an existing permission, or one you added? I like that...

- From my changelog: "if we regularly update jQuery and jQuery UI, it'd probably be smarter to allow for plugin authors to link to an alias of these libraries, i.e. jquery.js and jquery-ui.js, which would then be redirected to the latest...? Or just rename the files."

- Noticed this in a few places...

+            wesql::query('
+               UPDATE {db_prefix}membergroups
+               SET ' . implode(', ', $clauses) . '
+               WHERE id_group = {int:id_group}',
+               $array);

Aren't we used to putting the final ")" on the next line, at the same level at 'wesql::query'...? I think that's how SMF does it.

- Sometimes, we define very long functions inside a string, and I was wondering if, for readability's sake, it wouldn't be more logical to use the heredoc syntax on these?

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: New revs - Public comments
« Reply #494, on January 5th, 2013, 04:10 AM »
Quote
- Are you absolutely sure that fclose(fopen()) is better than touch()? Faster? More efficient?
It might not be if all I wanted to do were update the timestamp. But touch can't guarantee the file is also empty, and I'd sort of like cache.lock to remain empty.
Quote
- Since you removed the reserved words feature, well, rewrote it as part of the ban system, are you positive that you removed all occurrences of it that aren't needed in your rewrite? Doing a search on 'reserved' in the project sends me back a lot of results, some of which SEEM like remnants of the previous system to me... Can't say for sure, though.
Pretty sure. Not all the function calls need to be removed, e.g. isReservedName() is still in use, and that's cool, I just rewrote what it checked.

The key thing was to nail reserveName, IIRC it was called, which is gone along with reserveWord. I didn't see a need to go back and rename every little function that happens to share a word with the old feature name.
Quote
- Also, is the code block at the beginning of isReservedName() the replacement for the extra code that prevented the use of jokers in a user name? I think it is, just want confirmation.
Yes it is to replace the old code to prevent * in user names.
Quote
- Still against renaming .wmenu() to .dome(), right? :^^;: Well, it doesn't cost anything to ask...
You do what you have to do. As long as it doesn't break anything I'm working on, that's cool.
Quote
- I'm afraid I'm the one who tends to add empty newlines at the end of files... Is there something wrong with that? More odd HTML parsing? I tend to forget. One could also say, "just get rid of the closer tag"... No? (It was done that way in Class-FTP.php until you added it back, as far as I can see.)
Aside from the fact it's bytes that don't need to be there, there are times it will actually damage the content of the file being sent, potentially with attachments and CAPTCHAs and most of the time that one or other of these fail, that's the reason.
Quote
- In Subs-Members.php, $replaceEntities uses $messages[2]... Couldn't it just use $messages[1], and we skip the surrounding brackets in $entity_name..?
That's pretty much taken just from SMF. There was doubtless a reason it was done that way but I was never privy to it. If you're going to change it, be sure that it works exactly as before.
Quote
Makes me think it would be better to use existing functions for that, eh. I think westr has one... If not, we could make one. It would at least be faster than always redefining these with create_function(). Maybe just do a wide search for "& 63", that could be enough.
Again, such refactoring is cool, but only if we're absolutely sure it doesn't break anything. I'm still not entirely happy about the dropping of ENT_QUOTES on subject titles 'because it made it shorter' with the caveat that we have to go and put it back again in some places as opposed to just leaving it alone.
Quote
- If we rename allowedTo() to we::can(), I'd suggest renaming isAllowedTo() to we::enforce(), a name that makes more sense to me...
That's just names. Makes no difference to me what it's called. It's logical, it works.
Quote
- Is manage_bans an existing permission, or one you added? I like that...
It's been there since 1.0.
Quote
- From my changelog: "if we regularly update jQuery and jQuery UI, it'd probably be smarter to allow for plugin authors to link to an alias of these libraries, i.e. jquery.js and jquery-ui.js, which would then be redirected to the latest...? Or just rename the files."
That's primarily your department ;) As long as I can call it, I don't much mind how I can call it as long as if I do call it, it works.
Quote
Aren't we used to putting the final ")" on the next line, at the same level at 'wesql::query'...? I think that's how SMF does it.
When you have a proper nested array there, it looks natural. But when you have an array like that, doing it without looks more natural to me. Whatever works, I guess.
Quote
- Sometimes, we define very long functions inside a string, and I was wondering if, for readability's sake, it wouldn't be more logical to use the heredoc syntax on these?
Firstly, heredocs or nowdocs? heredocs support 5.2+ while nowdocs are 5.3+ only. The key difference is in variable use - heredocs support parsing of variables like double quoted strings do, and just for fun, they're also at least as slow as double quoted strings, if not even slower. And it breaks indentation because the ending of the heredoc must be the first thing on the line, without any exception.

I'm not a huge fan of heredocs, personally and would rather they have never been added to the language. Note that some variables can be declared with heredocs, some cannot (e.g. certain static things) while anything can with a nowdoc.