No offense but the newer format method looks like garbage to me haha...
As far as readability goes... I don't like this (although I can see that it's powerful for formatting/aligning):
Also I think that the older technique is very similar in many languages... definitely C and Go (both of which I use occasionally). Is there any real difference as far as performance goes? Or is just being used because it's easier to format? I think using % with column numbers is extremely easy to read, easy to use/format, and very similar across languages. Just my opinion though.
Also I think that if I showed two mildly complex print statements (one using the old style and one using the new style) to my PM on Monday (a non-programmer).... I'm pretty sure he's going to understand the old style based solely on intuition and third grade problem solving skills
As far as readability goes... I don't like this (although I can see that it's powerful for formatting/aligning):
'some data: {2} {1} {0}'.format(1.4, 5, 'stringer')I kinda like this one though:
site = '{w3}{0}{tld}' >>> site.format('metulburr',w3='www.',tld='.com') 'www.metulburr.com'
Also I think that the older technique is very similar in many languages... definitely C and Go (both of which I use occasionally). Is there any real difference as far as performance goes? Or is just being used because it's easier to format? I think using % with column numbers is extremely easy to read, easy to use/format, and very similar across languages. Just my opinion though.
Also I think that if I showed two mildly complex print statements (one using the old style and one using the new style) to my PM on Monday (a non-programmer).... I'm pretty sure he's going to understand the old style based solely on intuition and third grade problem solving skills