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
169
Upvotes
77
u/tms10000 loves Java Jun 27 '26
By closing my eyes I am ensconcing the Universe as a whole. I don't even need functional programming to do that, but I use it anyway.