4 ms·
"The programmer should always have complete control", if the API is broke, the programmer has lost control. From a security and usability perspective, the prog
by headShrinker 14y ago
"The programmer should always have complete control", if the API is broke, the programmer has lost control.
From a security and usability perspective, the programmer must always be in ultimate control of what code is being executed. If it's "parameters", an API should be explicitly requesting any or all parameters, and completely ignoring unknowns. If the API is scanning for unknown parameters or even worse scanning for parameters to invoke variable named function calls (it happens a lot), at best; your API is wide open for attack. (This was a major attack vector in some Wordpress APIs in the recent past.) In the meantime, the unknown parameter just causes the program to break, and why would any programmer allow that if it's so easily preventable.