Talk:Dependency injection/Archives/2017/November
This is an archive of past discussions about Dependency injection. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Possible mistaken use of "low level code"
The text in question is this:
Rather than low level code calling up to high level code, high level code can receive lower level code that it can call down to.
This is my first time asking about a wiki page. I've been programming raw machine code up to modern languages for decades, and it isn't clear what is meant by lower level code calling up to high level code. My long understanding of the poorly (formally) defined terms "low level code" and "high level code", would be, as an example, OS APIs as a lower level than application code. So, perhaps in a callback type situation, more modernly, or other type of code hooking), lower level code calls up as implied here. "Calling down to" lower level code would be pretty normal, but "receiving" that code (in the form of an object or reference) is what seems to make this "injection". Or possibly that is just more inversion of control, and not at all DI.
Perhaps rewording to make it clearer what is meant by these levels of code, would help. — Preceding unsigned comment added by TheRedScimitar (talk • contribs) 02:33, 21 November 2017 (UTC)