Page MenuHomePhabricator

Include coding conventions on MediaWiki.org for Swift, C, C#, and Java
Open, LowPublicFeature

Description

The Wikipedia iOS App uses Swift, Objective C and C# quite a bit in the source code:

Here's the result for Wikipedia Android app:

And results from Wikimedia Commons Android app:


There should be some new official coding convention for these languages sorted out and written on MediaWiki.org. This would help in some ways:

  • If Wikimedia decides to start branching out and write more apps, there's something to refer back to
  • Also helps outside contributors learn how to write quality code so they can help out if they want to, and also gives a reference for current contributors
  • Helps volunteers create their own unofficial MediaWiki apps

I'm currently not aware of any code conventions for these if they exist, but if they do please link in the comments so we can consider porting it over to MediaWiki.org :-)