Programmatic was coined as "according to a programme, but meaning bureaucratic, political,or administrative programme, not "a piece of code".
While discussing software programming, "programmatically" feels wrong, and to me it sounds at least redundant, like on a team of surgeons saying "how to perform a coronary
by-pass medically?" or someone within a group of musicians asking "how to play
Beethoven, musically?"
If we're talking about software we already are speaking about doing
things with programs. One could ask "is there an API to do XYZ?" Or
"how to do xyz from my code?"
I grew up reading USA programming magazines throughout the 1980s and 1990s and I dare anyone find me one occurrence of the word "programmatically" in Byte Magazine, for instance...
It wouldnt surprise me at all if the rise of usage of the word "programmatically" in software matches the years where software development started being outsourced to cheap India or China software factories.
FC
PS:Ironically, nowadays MSFT Technet is full of this word that still rubs me the wrong way when applied to software