Creating an array of strings for configuration or verification purposes can get long and ugly in code. For example:arrayOfStrings = ['one','two','three','four']Often to reduce the characters and improve readability I will use string operations to contruct these from a raw string:arrayOfStrings = 'one two three four'.split(' ')My rationale is that it makes the items easier to read for a person, as they would see the gaps (one two) easier than the string and array delimiters ('one','two').If its known that the strings will not contain spaces, would this go against good programming practise?
String splits to create arrays
array;strings