In [3]: %timeit '%s - %s' % ('str1', 'str2')
10000000 loops, best of 3: 21.5 ns per loop
In [4]: %timeit '{} - {}'.format('str1', 'str2')
1000000 loops, best of 3: 380 ns per loop
In [6]: s1= ''' is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.'''
In [7]: s2 = '''It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).'''
In [8]: %timeit '{} - {}'.format(s1, s2)
1000000 loops, best of 3: 929 ns per loop
In [9]: %timeit '%s - %s' % (s1, s2)
1000000 loops, best of 3: 675 ns per loop
Дарья Субботина:
Если ты просто пишешь софт ради самого написания, то можно писать как угодно
Если тебе нужен опыт написания софта за деньги, то тебе не нужно писать код - тебе нужно реализовать хотелки заказчика. А заказчик не думает моделями, вью, авторизациями, он знает юзер стори https://en.wikipedia.org/wiki/User_story , а ты хочешь чтобытвой софт можно было просто переделывать и не париться, что твои изменения в одном месте сломают что-то в другом