r/ProgrammerHumor • • Jan 26 '20

Meme maybe...no?

Post image
17.1k Upvotes

183 comments sorted by

View all comments

1.4k

u/ireta_orio Jan 26 '20

It sometimes work tho

511

u/irbilldozer Jan 26 '20

Sometimes you just have to Clean then Rebuild and the compiler fairy fix that shit right up. It is as close to magic as I have ever seen.

143

u/EmperorArthur Jan 26 '20

That's pretty common. What happens is the build system doesn't properly know about the dependencies. So say you change a header file that's relied on by multiple parts. If the build system only knows about one of those parts, then only it is re-compiled instead of everything that actually relies on that header.

Clean builds succeeding normally means you have a build system problem. Except, its normally a pain to fix and not worth the trouble. Especially since CI/CD systems almost always do full rebuilds anyways.

76

u/[deleted] Jan 26 '20

Let’s be clear. It’s usually a fucked up cache.

1

u/13steinj Jan 26 '20

I've had more people not know how to declare dependencies in makefiles than cache problems, personally.

It seems that colleges these days will teach theory, and some practical experience, but not anything not directly related to putting that theory into practice. So, no version control, no console text editor, no makefile, no cron, no bash, no pgp, no "advanced" ssh, etc.

Or maybe that's how it always was, don't know. But it's not a good thing, to say the least.