Manual talk:Coding conventions/Ruby

Latest comment: 10 years ago by ZFilipin (WMF) in topic Class Length

Spacing > Indentation

edit

Does it make sense to enforce two spaces? If ruby code is the minority of the code in an extension (like it is for the most extensions where the only ruby code are selenium tests) and if we want to make it easy for the developers to write ruby, would it make sense to allow tabs, if that is the repository default? --ZFilipin (WMF) (talk) 16:02, 13 November 2014 (UTC)Reply

Stop the spread of tabs! Seriously though copying the style in the code around what you are editing isn't super hard. NEverett (WMF) (talk) 00:43, 1 November 2014 (UTC)Reply

Class Length

edit

Should we ignore Class Length, or should we enforce smaller classes? For example, if MainPage is 100 lines, should we split it into MainPageHeader, MainPageFooter...? --ZFilipin (WMF) (talk) 16:02, 13 November 2014 (UTC)Reply

Return to "Coding conventions/Ruby" page.