Jump to content

Talk:Dependency injection/Archives/2017/November

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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 (talkcontribs) 02:33, 21 November 2017 (UTC)