Date: Wed, 1 Mar 2023 20:18:15 +0800
I agree.
Also, clean code is never about performance, but about maintainability.
And the benchmarking is biased. The functions are so simple that the
overhead is far more obvious than the real world.
This said, I would say I am never a fan of virtual interface, especially
when there is only one real implementation.
On Wed, 1 Mar 2023 at 16:39, JC van Winkel via SG20 <sg20_at_[hidden]>
wrote:
> Hi,
>
> I came across this article
> <https://www.computerenhance.com/p/clean-code-horrible-performance>
> (summary of a video <https://www.youtube.com/watch?v=tD5NrevFtbU>) that
> says that we are teaching people the wrong things.
>
> My feeling is that the presenter is cherry picking the worst possible
> examples and values micro-optimizations over maintainability and I wonder
> how often the presenter has worked on really large code bases...
>
> JC
> --
> SG20 mailing list
> SG20_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/sg20
>
Also, clean code is never about performance, but about maintainability.
And the benchmarking is biased. The functions are so simple that the
overhead is far more obvious than the real world.
This said, I would say I am never a fan of virtual interface, especially
when there is only one real implementation.
On Wed, 1 Mar 2023 at 16:39, JC van Winkel via SG20 <sg20_at_[hidden]>
wrote:
> Hi,
>
> I came across this article
> <https://www.computerenhance.com/p/clean-code-horrible-performance>
> (summary of a video <https://www.youtube.com/watch?v=tD5NrevFtbU>) that
> says that we are teaching people the wrong things.
>
> My feeling is that the presenter is cherry picking the worst possible
> examples and values micro-optimizations over maintainability and I wonder
> how often the presenter has worked on really large code bases...
>
> JC
> --
> SG20 mailing list
> SG20_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/sg20
>
-- Yongwei Wu URL: http://wyw.dcweb.cn/
Received on 2023-03-01 12:18:28