It’s both

I stumbled to a YouTube video bashing those “quote unquote Clean Code” people for creating badly time performing (fast) code. While he was going through Clean Code principles, he showed, one by one, how not using them produced more performant code.

Every thing he did to make code more time performant – I agree, he is right.

Otherwise, he either is deeply ignorant or was deliberately trolling in a very nasty way. That is why I will not share the link to the video. He had even disabled commenting on the video – a sign he is not after genuine discussion on the topic.

Of course there are conflicting requirements in software development. To satisfy some (many) of those requirements, principles of Clean Code are very useful.

For some other requirements, not using Clean Code principles in some areas of the code is a good thing, to achieve those requirements. Like time performance.

Many times you have to compromise and then pay the price for that compromise. This should be obvious also to the people who made that video.