Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
I would define a hook as: A piece of code which changes the response to a certain event, without changing the original code that caused the event How is that different than "code injection", if a...
#4: Post edited
- I would define a hook as:
- > A piece of code which changes the response to a certain event, without changing the original code that caused the event
- How is that different than "code injection", if at all?
<small>AFAIK, both terms are quite common in SD.</small>
- I would define a hook as:
- > A piece of code which changes the response to a certain event, without changing the original code that caused the event
- How is that different than "code injection", if at all?
- <small>AFAIK, both terms are quite common in software development.</small>
#3: Post edited
- I would define a hook as:
> A piece of code which changes the response to a certain event, without changing the original code that caused the event; the original code can be a method ("function").- How is that different than "code injection", if at all?
- <small>AFAIK, both terms are quite common in SD.</small>
- I would define a hook as:
- > A piece of code which changes the response to a certain event, without changing the original code that caused the event
- How is that different than "code injection", if at all?
- <small>AFAIK, both terms are quite common in SD.</small>
#2: Post edited
- I would define a hook as:
A piece of code which changes the response to a certain event, without changing the original code that caused the event; the original code can be a method ("function").- How is that different than "code injection", if at all?
- <small>AFAIK, both terms are quite common in SD.</small>
- I would define a hook as:
- > A piece of code which changes the response to a certain event, without changing the original code that caused the event; the original code can be a method ("function").
- How is that different than "code injection", if at all?
- <small>AFAIK, both terms are quite common in SD.</small>
#1: Initial revision
What is the difference between a hook and a code injection?
I would define a hook as: A piece of code which changes the response to a certain event, without changing the original code that caused the event; the original code can be a method ("function"). How is that different than "code injection", if at all? <small>AFAIK, both terms are quite common in SD.</small>