Talk:How to become a MediaWiki hacker

From MediaWiki.org
Jump to navigation Jump to search
Please do not post support questions here.

Instead, use one of these channels:

Further options for contacting appropriate people can be found at Communication.

Other languages: English  • čeština • Deutsch • español • français • 日本語 • 한국어 • Nederlands • polski • português • русский • ไทย • 中文

Archives:

SELinux :([edit]

Just a note that we need to put somewhere more useful sometime: SELinux makes it difficult to install MediaWiki, and so "do you have SELinux installed?" is a useful question to ask if someone's having a very hard time installing MediaWiki. Sumanah 08:03, 20 November 2011 (UTC)

This looks like a topic that should be included in a FAQ section of Manual:Installing MediaWiki or Manual:Errors and Symptoms#Installation Errors. Actually, it's already at Manual:Errors and Symptoms#SELinux. guillom 18:39, 12 January 2012 (UTC)

Hi am dipesh rawal Dipeshrawal4 (talk) 09:18, 19 June 2016 (UTC)

Hey Mnotho Ncama (talk) 18:58, 22 February 2018 (UTC)

Good basic HTML & JavaScript tutorials/resources[edit]

Good examples of code to learn from[edit]

I talked with Aaron Schulz today and he mentioned that he'd prefer new developers only look at good code when seeking examples to admire and copy.

Message.php (well-structured, uses chaining)
FileBackend (less great, but good)

Testing[edit]

We also need more testers/debuggers. There are very few test wikis (basically only translatewiki.net serves as such!) and the beta cluster is unused. See Project:Test reports. Nemo 09:46, 12 July 2012 (UTC)

Thanks will look into them for sure,

Johnsonleecameron (talk) 09:44, 4 July 2016 (UTC)

On learning PHP[edit]

Some recommendations I've heard:

One of the classics is the "Luke and Laura" book http://www.amazon.com/PHP-MySQL-Development-Luke-Welling/dp/0672317842 by Laura Thomson & WMF's Luke Welling. It's huge, pricey, but accessible and thorough. If you are a beginner, try one of the O'Reilly learning books, "Learning PHP" or "Learning PHP & MySQL". There's also zend's dev site, with some good articles: http://devzone.zend.com/

There is also a Head First book (from O'Reilly press) about PHP & MySQL.

Lastly, this includes resources and a free quiz: http://www.w3schools.com/php/default.asp Sharihareswara (WMF) (talk) 13:24, 10 February 2013 (UTC)

Please do not promote W3Schools; they are perhaps the worst place in the world to learn PHP, as they provide tutorials and example code with significant security vulnerabilities, among many other issues. See, e.g., this example. Note that W3Schools is not affiliated with the W3C, it is a Norwegian company dedicated mostly to selling "certificates" of dubious veracity.
The official PHP manual is located here, and the current MySQL APIs are PDO (generally preferred, as it also supports other DBs) and MySQLi. Beware any tutorials or books that still promote the deprecated mysql_ functions; these are very old (PHP 2.0, released around 1998 or so), and don't support modern features like parameterized statements, thus many have the same security flaws as W3Schools.--CoJaBo (talk) 16:17, 26 May 2013 (UTC)

MediaWiki-Vagrant[edit]

Should we just link directly to MediaWiki-Vagrant, rather than the first three at How to become a MediaWiki hacker#Set up your environment? If not that, we may at least want to make a separate Manual:Installing a development environment. A good guide to installing a dev wiki and a good guide to installing a prod wiki would be pretty different. Superm401 - Talk 20:27, 29 October 2013 (UTC)

There are some strange <translate> tags visible.[edit]

I think there are some strange <translate> tags visible which start near the "Documention" sub-section until "Appendix" section. Is it normal ? Manta Ray DeeJay (talk) 21:52, 3 June 2016 (UTC)

@Manta Ray DeeJay: As the page uses {{#lst:Annoying little bugs|bugs}}, I wonder if https://www.mediawiki.org/w/index.php?title=Annoying_little_bugs&type=revision&diff=2145491&oldid=2145419 triggered this? Could you try reverting and check? --AKlapper (WMF) (talk) 10:57, 7 June 2016 (UTC)
@Manta Ray DeeJay: In order to transclude the /en subpage to get rid of these tags, mw:Annoying little bugs needs to be marked for translation first. Are you going to do that? --AKlapper (WMF) (talk) 11:16, 7 June 2016 (UTC)
@AKlapper: I'm not sure all understand what you mean. "Annoying little bugs" is a page that I would like begin to translate. But I don't have admin privileges to do that. Nemo has helped me by leaving some informations on my talk page. But I don't know how to contact a page translation administrator. what is the relationship with "Annoying little bugs" page and the <translate> tags in this page ? Manta Ray DeeJay (talk) 15:41, 13 June 2016 (UTC)
@Manta Ray DeeJay:@AKlapper (WMF): Yes Done by marking Annoying little bugs for translation and adding #ifexist: Special:Diff/2162778 --Shirayuki (talk) 22:49, 13 June 2016 (UTC)
@AKlapper:@Shirayuki: Thanks for your help guys. I think there is a mistake, a translate tag <translate> is below a section instead above (please see ===Pywikibot===). The problem is that there is not only the ===Pywikibot=== which is not translatable but also all the following ===section===) although their associate translate tag is well placed (above). Is it a bug ? Could you correct it ? Manta Ray DeeJay (talk) 21:49, 14 June 2016 (UTC)
Should Pywikibot be translatable? See https://www.mediawiki.org/w/index.php?title=Special:Translations&message=Translations%3AManual%3APywikibot%2FPage_display_title --Shirayuki (talk) 10:41, 14 June 2016 (UTC)

Promoting the Wikimedia Developer Support forum[edit]

I have been following the edit discussion between AKlapper (WMF) and Nemo bis about adding a link to https://discourse-mediawiki.wmflabs.org/

A proposal:

  • If you have general questions which are not tied to the specific task that you want to work on, use generic channels like Wikimedia Developer Support, <tvar|irc>IRC </> or [[<tvar|ml>Special:MyLanguage/Mailing lists</>|mailing lists]] but not the specific task.

If you want to avoid increasing the number of links, what about removing this bullet point that again sends newcomers to a page with plenty of more vague links:

--Qgil-WMF (talk) 17:48, 16 January 2018 (UTC)

Yeah, that sounds like a good idea to me when it comes to not losing new contributors on their way to go through a jungle of pages linking to each other. --AKlapper (WMF) (talk) 18:12, 16 January 2018 (UTC)
I'd more comfortable with it if we disabled password-based authentication first. (That would also disable the sending of invites, but oh well.) Promoting something so prominently and then expecting that everyone notice the warning about not reusing passwords is not reasonable, IMO. --Tgr (talk) 07:02, 21 January 2018 (UTC)
@Tgr: that warning is there because BDavis (WMF) asked for it. I believe it responds to good practices, not to a security flaw in the pilot setup? We have HTTPS in place and local passwords are encrypted. So far the pilot is being useful to the developers asking questions in it, which is the main point this pilot has to prove. Is this warning really a reason not to announce pilot in more places? --Qgil-WMF (talk) 10:58, 22 January 2018 (UTC)

Math[edit]

Why there is the subject that could math Mnotho Ncama (talk) 18:59, 22 February 2018 (UTC)