It depends on the technology
And often people use the wrong word invent/discover, especially in the media. So not bonus points for your comeback
There is some gray area, for example is Quantum Mechanics or Mathematics invented or discovered?
But fortunately in the case of programming languages, they are always invented and not discovered. Well if you discover one, someone before hand had to make it first. Case closed. 8-)