top | item 36467206

(no title)

bartq | 2 years ago

I disagree it's responsibility of the tool. Program should just reach out for files and some higher order or meta runner should trace what the process does. One of the commenters mentioned `strace`, this is the correct approach, but should be done in well engineered way.

Other way is to run program in symbomlic interpreter and trace what it wants to read in any of the branches.

discuss

order

hermannj314|2 years ago

This seems to be an interesting approach.

Why do you suggest this path over documentating the behavior explicitly?

What makes one approach better the other? Is it faster to run a trace? Should a developer trace their own code and auto-generate documentation post-build?

ufo|2 years ago

Might work for config files but would it work for environment variables?

bartq|2 years ago

It would for env vars as well, why not? Just trace program trying to reach out for some var X from env.