gianthare: (Default)
gianthare ([personal profile] gianthare) wrote2002-09-25 02:34 pm

Я всё понял! (продолжение)

Отрывки из интервью с Александром Степановым:
  • "In 1976, still back in the USSR, I got a very serious case of food poisoning from eating raw fish. While in the hospital, in the state of delirium, I suddenly realized that the ability to add numbers in parallel depends on the fact that addition is associative. (So, putting it simply, STL is the result of a bacterial infection.) "
  • "Yes. STL is not object oriented. I think that object orientedness is almost as much of a hoax as Artificial Intelligence. I have yet to see an interesting piece of code that comes from these OO people."
  • "For example, I spent years trying to find some use for inheritance and virtuals, before I understood why that mechanism was fundamentally flawed and should not be used. "
  • "I do have a lot of gray hair as a result of trying to compile STL. The unfortunate reality is that a lot of code in the present implementation of STL is suboptimal because of the compiler limitations and bugs of the compilers I had to use when I was developing STL."

А, ну теперь и я всё понял !

[identity profile] catpad.livejournal.com 2002-09-25 05:00 am (UTC)(link)
Он просто сумасшедший.
Это всё объясняет.

[identity profile] ex-ilyavinar899.livejournal.com 2002-09-25 05:56 am (UTC)(link)
У меня на бывшей работе это интервью вызвало дикие споры.

На самом деле, есть приложения, для которых естественна объектно-ориентированность, а есть приложения, для которых естественна алгоритмо-ориентированность. Язык должен позволять и то, и то.

[identity profile] cmm.livejournal.com 2002-10-07 03:31 pm (UTC)(link)
я где-то вычитал примерно такую дихотомию:

. если в приложении сложная структура/иерархия данных, но немудрящая логика (типа как в типичной "бизнесс-аппликации") -- то оно обычно хорошо подходит для ОО моделирования, а значит и реализации.

. если алгоритмы нетривиальны в сравнении со структурой/иерархией данных -- то злоупотребление ОО приведёт к этакому модерновому спагетти, для которого не нужно goto.