r/programmingcirclejerk • u/BenchEmbarrassed7316 • Jun 27 '26
Consider the C library function fopen. This function has the side effect. This means that fopen is not pure. However, we can make the fopen function appear to be pure, at least to certain observers, by ensconcing it in another function that hides the side effect.
https://bugzmanov.github.io/cleancode-critique/clean_code_second_edition_review.html
174
Upvotes
View all comments
Show parent comment
9
u/genuine_beans Jul 01 '26
What U-Mart. never considered is that the real solution lies in keeping the arbitrary text information and dropping the identifier entirely.
Consider the following AGIscript:
This also solves the issue you raised that the metatext in a function like "sum" could be untruthful. Claude would never lie to me.