Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Callbacks: Difference between revisions

From MoodleDocs
(Initiate discussion on better name)
 
m (Simplify)
Line 1: Line 1:
Calling these callbacks officially is confusing for any new developer coming into moodle. A callback is a function reference passed as a parameter in a function call for the called function to call. Or from wikipedia "a callback is any executable code that is passed as an argument to other code, which is expected to call back (execute) the argument at a given time." This is not what these are. Sure, we can make the argument that these are "moodle" callbacks. But these really are just API methods. As an open source project we have responsibility to the correct terms to refer to parts of our infrastructure to lower the barrier for entry and understanding of our code. --[[User:John Okely|John Okely]] ([[User talk:John Okely|talk]]) 09:00, 22 May 2017 (AWST)
Calling these callbacks officially is confusing for any new developer coming into moodle. A callback is a function reference passed as a parameter in a function call. Or from wikipedia "a callback is any executable code that is passed as an argument to other code, which is expected to call back (execute) the argument at a given time." This is not what these are. Sure, we can make the argument that these are "moodle" callbacks. But these really are just API methods. As an open source project we have responsibility to the correct terms to refer to parts of our infrastructure to lower the barrier for entry and understanding of our code. --[[User:John Okely|John Okely]] ([[User talk:John Okely|talk]]) 09:00, 22 May 2017 (AWST)

Revision as of 01:03, 22 May 2017

Calling these callbacks officially is confusing for any new developer coming into moodle. A callback is a function reference passed as a parameter in a function call. Or from wikipedia "a callback is any executable code that is passed as an argument to other code, which is expected to call back (execute) the argument at a given time." This is not what these are. Sure, we can make the argument that these are "moodle" callbacks. But these really are just API methods. As an open source project we have responsibility to the correct terms to refer to parts of our infrastructure to lower the barrier for entry and understanding of our code. --John Okely (talk) 09:00, 22 May 2017 (AWST)