Good style (Clean Code book) says that the name of the method should describe what this method does. For example, if I have a method that checks the address, stores it in the database, and sends an email if the name should be something like verifyAddressAndStoreToDatabaseAndSendEmail(address);
or
verifyAddress_StoreToDatabase_SendEmail(address);
although I can divide this functionality into 3 methods, I still need a method to call these 3 methods. Therefore, the name of a great method is inevitable.
Having AND named methods certainly describes what this method does, but IMO it is not very readable, since names can be very large. How would you decide?
EDIT: Perhaps I could use a free style to decompose the method name, for example:
verifyAddress(address).storeToDatabase().sendEmail();
but I need a way to ensure the order of the call. Perhaps using a state template, but this leads to code growth.
source share