+ 1

I wonder.... the indentation in Ruby is optional for clearer code.. or mandatory like in Phython...

22nd Oct 2016, 10:59 PM
Nelson Urbina
Nelson Urbina - avatar
4 Respostas
+ 6
It's optional. Or rather it's a stylistic choice. Ruby only looks for the line breaks. But, I think, it's very important for the readability of the code!
23rd Oct 2016, 3:57 PM
Elias Papachristos
Elias Papachristos - avatar
+ 2
I think its optional,but i would recommend clear code anyway
22nd Oct 2016, 11:18 PM
Аца Србија
Аца Србија - avatar
+ 1
Agreed completely.. it makes the code clearer to read...
22nd Oct 2016, 11:30 PM
Nelson Urbina
Nelson Urbina - avatar
+ 1
By indenting you make your code Readable thus easy to understand and debug,just in case an error occurs.
24th Nov 2016, 7:27 AM
Duncan N.
Duncan N. - avatar