Plato may have originally said, "Necessity is the mother of invention." and that may be most common form but some modern writers have used "desperation" instead of "necessity". I prefer the original. Another quote I like is, "If necessity is the mother of invention then desperation is the father."