SUPPLY SIDE: "send him to study [x], it as at least twenty to one if he ever makes such proficiency as will enable him to live by the business." He is making is quite clear that the supply of qualified [x] is low (and giving a reason as to why it is low, but as Adam Smith himself would surely admit, the laws of supply and demand do not [directly] care about the 'why').
DEMAND SIDE: There is no explicit mention of the demand for these services, but as educated readers, we are able to deduce that during the time of Adam Smith, the demand for certain [x] heavily outweighed the supply.
*[x] blocked out because its specific value is not germane to the underlying logic of the argument.
You cannot turn this quote into a formula, because it's a description of how wages ought to be, and the reasons therefore. And it is completely irrelevant to discussion, as I'm sure if Smith were alive today, he would count the art of programming among the liberal professions. There is more to making a useful application than to be able to think mechanically. Because programmers create and shoemakers copy.
Of course, today you could point to a plethora of professions for which a long and expensive education is required, but for which compensation lags, often painfully. Though in some cases job security may be higher.
Education in the ingenious arts, and in the liberal professions, is still more tedious and expensive. The pecuniary recompence, therefore, of painters and sculptors, of lawyers and physicians, ought to be much more liberal; and it is so accordingly.... We trust our health to the physician, our fortune, and sometimes our life and reputation, to the lawyer and attorney.... Fifthly, the wages of labour in different employments vary according to the probability or improbability of success in them. The probability that any particular person shall ever be qualified for the employments to which he is educated, is very different in different occupations. In the greatest part of mechanic trades success is almost certain; but very uncertain in the liberal professions. Put your son apprentice to a shoemaker, there is little doubt of his learning to make a pair of shoes; but send him to study the law, it as at least twenty to one if he ever makes such proficiency as will enable him to live by the business.
http://www.gutenberg.org/files/3300/3300-h/3300-h.htm#link2H...