Unless you are an expert programmer you should not be touching the original code.
I could have been bitten for saying something like that.
😛
And that's a good advice indeed. To be honest with you all, pretty much nobody should be touching the original code directly unless that person is extremely skilled and knows how to endure the pain that might caused him or her later on.
alias is some sort of reserved term while alias_method is an actual Module method available everywhere by default. (The comma found between the method names gives it away.) Its parameters can be method_names or :symbols but as I told
@Roninator2 once, the preferred option is providing it with :symbols because internally it will always look for a method's :symbol. It's just how it works and no complain or discussion will ever change that fact. It should be treated as a classical rule of thumb. It's important to accept certain things as language features you have to deal with properly.
Veteran scripters can replace whole existing methods, but this usually happens in battle systems where there's a "real need" to break the system on purpose. Even so, you can find dozens of aliased methods inside their codes. For a menu scene that wouldn't make any sense. You would have to ask yourself if there's an actual reason why the new code can't call the old one and why you should repeat pretty much all of the original code in the new one plus all the required changes. So aliasing methods is a great tool to rely upon there.
EDIT
Inheritance matters as well. You
can alias methods belonging to the superclass even if they cannot be found in the child class.
Ruby:
class ChildClass < SuperClass
end
Thus, alias
lets you alter both the child class
or its parent class, mainly depending on which one truly needs the aliasing. In this case Scene_Title's parent class is Scene_Base, but we aliased it in the child class Scene_Title.
Nonetheless, aliasing a parent class method when we already know that super method already exists and does the job without the issues alias experiences after a F12 reset, makes it totally illogical from a practical gamer's or developer's viewpoint.
In Javascript I've noticed how either default plugins and custom ones include functions inside functions, but that's happening there because class hierarchy doesn't really exist as it does here in Ruby and RGSS. All functions (their equivalent of methods in Ruby) are first class citizens with "all rights" and access to anything declared in the same general or functional scope. Ruby NEVER tries to emulate that. C and C++ don't either. JS targets browsers while Ruby, C and C++ target stand alone applications. Their logic changes depending on such different realities and environments.