The Dark Side of C++ - Attorney Client Pattern

preview_player
Показать описание
This video shows the attorney client pattern. It is used to abstract the implementation details of a class when it is necessary to expose a certain privat implementation detail.

Tools that I use:

In code:
Рекомендации по теме
Комментарии
Автор

Hey man, listening to this video on a good speaker system is a little distracting because the thumping on the table and other things(microphonics?) translate to some pretty loud bass. I'd suggest just cutting out everything under 120-200hz if you're not planning on changing your mic setup.

Still watched though, good content

lupsik
Автор

Have anybody even used this pattern in real world samples? I mean, it all seems meaningless to me. It seems more like overengineered code which is even harder to
You need to provide all these hidden hooks, client should know about them and about this proxy class Attorney. Why anyone is even making function as "private" if he want to share this function as API call? why not using public?

cheerwizard
visit shbcf.ru