[17:18:14] RoanKattouw_away: you around? [17:36:04] Leaving in 5 mins [17:36:14] Were you asking for the JSON thing or something else? [17:37:31] TrevorParscal: I didn't do anything about implementing those wireframed designs just yet because it seems like they're far from final [17:37:53] yeah - no worries [17:37:57] I was just poking [17:38:03] wha'ts your availability today? [17:38:29] Afternoon only [17:38:40] I gotta run in a few minutes, I'll be back after lunch [17:39:55] *RoanKattouw_away runs [20:41:14] RoanKattouw: how's it going? [20:47:40] Hey man [20:47:53] Little tired, intense badminton practice :) good otherwise [21:05:37] TrevorParscal: I see you've been active today :) [21:06:24] yes [21:16:34] damn PHP and it's broken static member inheritance model! [21:18:41] *TrevorParscal needs late static binding [21:23:04] Aaron committed something using LSB today [21:23:11] LSB? [21:23:12] oh [21:23:16] yeah? [21:23:17] I kindly pointed out that that ain't gonna fly [21:23:19] and it broke [21:23:20] :) [21:23:27] we need PHP 5.3 already [21:23:33] Well not really, but he mentioned LSB in the commit summary, which alarmed me [21:24:03] was he doing an LSB hack? [21:24:07] there are some strange work-arounds [21:26:32] No [21:26:53] He was making it so that Article::newFromId() instantiates a subclass of Article where approriate [21:27:05] Using new static( $title); instead of new Article( $title ); [21:31:39] interesting [21:57:50] RoanKattouw: ok, the unified loaders are done at this point [21:58:00] Yeah I saw the commits [21:58:07] I haven't even started reviewing them yet [21:58:52] So I want to delete the old stuff at some point [21:59:00] especially to prevent people form working on the old versions [21:59:13] cause now there's 2 incompatible copies of most things [21:59:57] Hm [22:00:12] I haven't looked at the code yet, but that makes sense [22:00:14] CollapsibleTabs, EditToolbar, EditWarning, NavigableTOC, SideBySidePreview and SimpleSearch can all get removed [22:00:22] Provided everything's been ported and verified working [22:00:39] I didn't want to jump the gun on that, but I've ported everything now, and tested things as working [22:01:03] but yeah, I would like you to svn up, and test for youself as well [22:01:29] Tonight I'm just gonna review it, not run it [22:01:42] require_once( "$IP/extensions/UsabilityInitiative/WikiEditor/WikiEditor.php" ); [22:01:42] require_once( "$IP/extensions/UsabilityInitiative/Vector/Vector.php" ); [22:01:46] Oh and take a shower first, it should be available now [22:01:49] that's the only thing needed to get it running [22:05:38] OK I'm gonna go now, I'll be back in like 30 mins to review those changes [22:06:38] sent email about moves [22:43:08] http://www.josefrichter.com/helvetimail/ [22:43:26] http://www.josefrichter.com/helvetwitter/ [22:43:42] http://www.iamadtaylor.com/helvetical/ [22:50:04] :) [22:50:09] you reviewing now? [22:50:36] Not yet [22:50:43] I'm updating some special pages on frwikisource first [22:50:49] right on [22:50:55] Rob's too busy so I'm doing a few site requests on the side here and there :P [22:51:03] i'm anxious to get rid of the old stuff :) [22:51:10] heh [22:51:15] we do have it in a branch... [22:51:18] That too [22:51:32] And if it breaks, we can just revert the rev that removes them [22:51:52] Go ahead and kill them, I'll revive them if I think it's necessary [22:51:56] k [22:53:34] done [22:57:28] About your e-mail: SVN won't let you make changes to ghost folders [22:57:48] i sent that before the deletion [22:57:51] It'll tell you that "Commit failed: EditToolbar is out of date", after which you have to svn up [22:57:52] Ah [22:59:31] TrevorParscal: Do you know about the existence of "svn copy" and how it preserves history? [23:00:10] hmmm [23:00:15] yeah, I should have used that [23:00:16] :( [23:00:48] It's not too late; you don't seem to have changed anything in EW, SS and CollTabs at least [23:00:57] yeah [23:01:11] well, I did make some changes actually [23:01:15] message names and stuff [23:01:22] Hm [23:01:39] But in http://www.mediawiki.org/wiki/Special:Code/MediaWiki/58571 you just copied stuff? [23:01:48] If you'd used svn copy, the diff would tell me that [23:01:52] :) [23:02:22] + // These are probably only for testing purposes? [23:02:23] + 'wgNavigableTOCCollapseEnable' => $wgNavigableTOCCollapseEnable, [23:02:25] + 'wgNavigableTOCResizable' => $wgNavigableTOCResizable [23:02:38] No, they're actually being used to decide to run or not run certain blocks of code [23:03:40] + $enable['global'] || ( [23:03:42] + $enable['user'] [23:03:44] + && isset( self::$modules[$module]['preferences']['enable'] ) [23:03:45] + && $wgUser->getOption( self::$modules[$module]['preferences']['enable']['key'] ) [23:04:17] When breaking conditionals, please but && and || at the end of the first line instead of at the beginning of the second; the latter makes for less confusing reading IMO, and I think the MW coding style guide may even mention this [23:04:19] *RoanKattouw looks it up [23:04:32] no worries [23:04:40] funny - i usually do as you are saying [23:04:47] not sure why I did otherwise [23:04:55] I was blazing through the code pretty fast [23:06:31] You know I've never used it but it's supposed to be pretty awesome: http://svn.wikimedia.org/svnroot/mediawiki/trunk/tools/code-utils/stylize.php [23:06:47] A command line script that stylizes your PHP files for you [23:06:51] Sadly there's no JS equivalent [23:08:08] + $modulePreferences .= "'" . Xml::escapeJsString( $key ) . "':'" . Xml::escapeJsString( $key ) . "'"; [23:08:22] Use FormatJson::something() ? Or did you already change that? [23:11:32] TrevorParscal: You know, I think I could diff all these files against their 'old' versions, then use svn copy and patch to "fix" the history [23:12:28] dude [23:12:40] if you can do that, you will be the ninja of ninjas [23:13:06] I've had worse struggles with SVN [23:13:14] the kind of guy that people remember long after they've left and say "man, what just h [23:13:17] Well maybe I haven't, but what the heck [23:13:19] happend" [23:13:24] ha ha [23:13:37] RoanKattouw cleans up after TrevorParscal [23:14:00] And after Yaron too, these days :) [23:14:21] - 'wgNavigableTOCCollapseEnable' => $wgNavigableTOCCollapseEnable, [23:14:22] - 'wgNavigableTOCResizable' => $wgNavigableTOCResizable [23:14:24] + 'wgNavigableTOCCollapseEnable', [23:14:26] + 'wgNavigableTOCResizable' [23:14:29] I hope that's a multifunctional format? [23:14:43] multifunctional? [23:14:45] Like 'wgFooBar' works, but 'blah' => $wgFooBar ? 'foo' : 'bar' does too? [23:15:14] well, it's a static definition [23:15:32] Oh [23:15:43] I'm open to suggestions on all this stuff [23:15:49] + global $$variable; [23:15:52] + $variables[$variable] = $$variable; [23:15:54] Holy crap, that works? :P [23:16:10] I knew $$variable worked, but I didn't know you could global that too [23:16:23] I mean, in nearly all ways this is nice and clean, but there are some sitations where I'm supporting the old way of doing things just to avoid making even wider spread code changes [23:16:28] ha ha [23:16:29] yeah [23:16:29] I would've probably just used $GLOBALS[$variable], but let's keep this, it's a piece of art :) [23:16:33] crazy huh [23:16:43] ew - globals array :) [23:17:44] + $wgOut->addScript( [23:17:45] Xml::tags( [23:17:47] 'script', [23:17:49] array( 'type' => $wgJsMimeType ), [23:17:50] - '$.wikiEditor.config = {' . implode( ',', $preferencesList ) . '};' [23:17:52] + 'var wgWikiEditorPreferences = ' . FormatJson::encode( $preferences, true ) . ';' [23:17:53] ) [23:18:15] Use UsabilityInitiative::addVariables() for that? In turn, that uses the makeGlobalVariablesJS hook (or whatever it's called), which provides a somewhat cleaner interface for this [23:18:25] And groups all the var declarations in one