I guess for Military Aircraft it makes sense to build airfoils and designs that are inherently so unstable it needs software to fly (F-117 was the first of the sort, no?).

But for airliners, there should be a law that the aircraft needs to be inherently stable. Fixing a design problem with a sensor and software was just asking for this tragedy.