I'm looking through some old code and realize there are a ton of "helper" methods in this class as well as a ton of fields that are set via dependency injection and configuration. All of these things are essentially used by one very important method in the class. Is there a proper term for this in software development? Can I refer to it as something like a cornerstone method or pivotal method ? Thanks in advance!
I haven't come across an "official" term for this kind of method in software. I think cornerstone method is a good suggestion. Another one is orchestrating method - since it is the method which orchestrates some functionality using several other smaller methods.
Note that if this were about an object which hides several helper utilities or libraries behind it, I would say it sounds like the Facade Pattern
Initialize
?
Perhaps what might be found in a class's Initialize
method might otherwise be in the constructor, except in this case like you have said, where the constructor is overloaded and there are many entry points. I'd assume that to tie these multiple points of entry together you would at some point pass the control over to the Initialize
method.
Refer to it as whatever you like. There is no widely-used term for this, as far as I'm aware. :)
Since in parliament we have many ministers who do a ton of helper stuff but their actions are co-ordinated by the Prime Minister, I suggest PrimeMethod(...) :-)
To me, it sounds like that method contains the business logic for the class. The rest (initialization methods, utils, etc) is just plumbing or implementation details.