3 ms·
Python has the advantage that it is easier to control the level of indentation by breaking things out into functions without compromising the readability of the
by zaphar 6y ago
Python has the advantage that it is easier to control the level of indentation by breaking things out into functions without compromising the readability of the code.
YAML sort of allows you to do the same using anchors but I find it doesn't help readability as much and sometimes hinders it. I think this might be because in yaml you are describing a data structure and it's far easier to understand that data structure if you can see the whole thing at once.
In python you are describing code and for some reason in my head functions as an abstraction in code make it more not less readable.