Howto alias a function like we did in Ruby? (monkey patching)

Higher level languages like Java usually do it for default (no parameters) parent constructors, but that's about it. Since you don't always want to call the super method, or want it at different places, deal with its return value, etc...it's usually better to call it explicitly.
Are you referring to MV codebase, or javascript?

In ruby we had to call super explicitly if we wanted to invoke the superclass' method.

I don't know of any language that automatically calls parent method.
peoples scripts they submit to the community. I have seen a few that dont alias methods and thus over ride core MV stuff, makes me shake my head at them.
peoples scripts they submit to the community. I have seen a few that dont alias methods and thus over ride core MV stuff, makes me shake my head at them.
Sometimes that's intended, though.
Some plugins just aren't compatible with the basic functions, like battle systems. You'll need to place them at the top of your plugin list.
the official term is called "hooking".

Sometimes that's intended, though.
exactly. like if you want to change how the windows look, you have to replace the function. otherwise, you're painting your stuff on top of the original.

of course for best practice, you should call the original function if you're merely adding to it rather than totally replacing its functionality.
Sometimes that's intended, though.
Um no. I can see if you are adding windows to the battle system like yanfly, but these people don't even add any way of hooking in. They trample all over the core code base wrecking compatibility ... 

Some plugins just aren't compatible with the basic functions, like battle systems. You'll need to place them at the top of your plugin list.
People need to then give proper DOCUMENTED api hook calls that we can hook into, to either make our scripts compatible to extend there functionality. A good example of this is yanfly aftermath.
People need to then give proper DOCUMENTED api hook calls that we can hook into, to either make our scripts compatible to extend there functionality. A good example of this is yanfly aftermath.
Can you show which part of yanfly's script does that? I'm not sure what you mean.
Um no. I can see if you are adding windows to the battle system like yanfly, but these people don't even add any way of hooking in. They trample all over the core code base wrecking compatibility ...
It's not hard to have situations where you need to override the core code. A lot of default methods performs actions that are not easy or practical to reverse. If you do not want those actions performed, you override it.

For one quick example, the default UpdateTurnEnd of the BattleManager calls for BattlerManager.StartInput(). If I do don't want input to happen at the UpdateTurnEnd, I can't call that (unless I also change a lot of other stuff that will cause more compatibility problems than anything else in the first place).

I believe part of the power of the system we have in RPG Maker is exactly the fact that we are free to override stuff that we want to completely change or remove - sometimes the whole point of a plugin is exactly to change something from the base scripts, not to add anything.

And if a user utilizes two plugins that both deeply change the same aspect of the game, it really shouldn't be a surprise that they might not be compatible. Because even if the code itself somehow stays technically fully compatible, chances are high that the systems wouldn't work together well if they weren't planned for that.

Original thread: https://forums.rpgmakerweb.com/threads/howto-alias-a-function-like-we-did-in-ruby-monkey-patching.48496/