I like to use constant literals in tests instead of constants itself.
When we’re looking at code — we can see how it works, we can see that data comes inside, how is it being processed and how returned.
But often nobody can say why someone wrote this code.
Currently I’m working on library which is going to read, modify and write IPTC tags for images.
It means I’m working with file-system and image functions integrated in the language. They work with real FS objects…