3 ms·
"callable via text"? What does that even mean? The command line is an API, isn't it? If people don't manage to pass an ampersand to another program via the comm
by zAy0LfpBZLC8mAC 10y ago
"callable via text"? What does that even mean? The command line is an API, isn't it? If people don't manage to pass an ampersand to another program via the command line, that's really no different than people failing to pass an ampersand as a URI parameter to an HTTP resource: Failure to encode properly. There is absolutely nothing that prevents you from passing an ampersand (or any other characters) to a program via its command line.
- flukus 10y ago> "callable via text"? What does that even mean? It means you have to execute commands through a shell. A real API would be something you could include in your program, execute a method against and get a list of objects back. Instead all these basic command are replicated in every framework. As far as encoding properly, you're preaching to the choir, but out in the real world there is still injection attacks everywhere.
- zAy0LfpBZLC8mAC 10y ago> It means you have to execute commands through a shell. Except you don't. There is no need to involve a shell. > A real API would be something you could include in your program, execute a method against and get a list of objects back. So, Web APIs are not APIs? Also, you can execute methods against command line programs, method names usually start with a dash.