2 ms·
So your proposed solution is one of the only two hard problems in computer science? That should be a solid clue that you're wrong. "There are only two hard thi
by forrestthewoods 11y ago
So your proposed solution is one of the only two hard problems in computer science? That should be a solid clue that you're wrong.
"There are only two hard things in Computer Science: cache invalidation and naming things."
-- Phil Karlton
- cdelsolar 11y agowow, i never realized cache invalidation was one of the ONLY two hard problems in CS
- gaius 11y agoThe quote is supposed to be, two hard problems: cache invalidation, naming conventions and off-by-one errors.
- kbenson 11y agoBy "a way to force invalidation of that cache" I didn't mean automatic invalidation, I meant a way to flag that you want it to re-download dependencies and store them for later use. I'm not sure where you got the requirement that it needs to automatically determined by a computer from my comment. I was thinking the "cache" could be as simple as the person setting up the build environment downloading the dependencies and configuring the build to use them. That's a local cache, when discussing automatic downloading of dependencies during building. Set up your build environment with whatever manual intervention is required so that it can run without downloading remote resources. Build as needed. There is no reason for, and many reasons against, downloading dependencies during the build process, but that doesn't necessitate duplicating those dependencies within your own source tree. As long as there are directions on how to download a specific, definitive version of the dependency, whether that is automated or not isn't really a big deal if it's done infrequently.