roboticslab-uc3m / questions-and-answers

A place for general debate and question&answer
https://robots.uc3m.es/developer-manual/appendix/repository-index.html
2 stars 0 forks source link

Embrace hooks #81

Closed PeterBowman closed 5 years ago

PeterBowman commented 5 years ago

According to Wikipedia, "hooking" is referred to as follows:

In computer programming, the term hooking covers a range of techniques used to alter or augment the behaviour of an operating system, of applications, or of other software components by intercepting function calls or messages or events passed between software components. Code that handles such intercepted function calls, events or messages is called a hook.

Check also StackOverflow:

Essentially it's a place in code that allows you to tap in to a module to either provide different behavior or to react when something happens.

In that vein, I deem it's time to adopt "hooks" in our codebase. We can arrange a proper place for developers to hook up and share their ideas. Whenever troubles arise, experienced programmers will easily get off the hook, whereas newcomers are prompted to hook into this matter as soon as possible. By hook or by crook, it's so easy to get hooked on!

55314622-d3e86480-546a-11e9-9956-b3c8d6d02703

cc @roboticslab-uc3m

PeterBowman commented 5 years ago

Recent studies show that Brainfuck has proven to provide a seamless way to implement hooks, see https://github.com/robotology/yarp/pull/1988.

jgvictores commented 5 years ago

Gettin' the (...) of it at https://github.com/roboticslab-uc3m/questions-and-answers/blob/cd6dd748f2262f1e1d2c9cb0b90bad3488782264/hook.stl

PeterBowman commented 5 years ago

Closing until we get a proper Parrot to complement this new pirate theme for TEO.