A weed is a program (or anything else in a system) that does no one any good, but that uses such a small amount of resources that it's often not cost-effective to do anything about it. Eventually, weeds start to accumulate, and it's time to get out the
clippers. Or the
herbicide.
Also see: freeloaders, Flying Dutchmen.