The idea is to run a program with a combination of things (objects). An application is made up of parts, and the image is that the parts interact with each other to move the whole (gears mesh).
Thinking that a part is an "object" and an interaction is a "message" passed between objects, To get the right message to the right object, you need to "know that the sender of the message knows the recipient." And you know the other person, that is, there is a dependency between the two objects. Managing this "dependency" is object-oriented design. In terms of catch ball, adults and children understand each other's position and You know how much force you need to throw to catch the opponent. (image)
The application is subject to change on a case-by-case basis. Changing is a nuisance in the dependency that the sender of the message knows the recipient.
If you have registered for multiple services by carrier email, It can be said that the carrier email address and each service are dependent.
For example, when you change your mobile carrier, it's convenient because you can change the phone number as it is. You won't be able to use carrier email, right? What amendments do you need to make with this change?
→ Log in to all services that use the carrier's email address and change the email address
Just thinking about it makes me chill. And worst of all, two years after I forgot to change my email address on a service, I also forgot my password. If you want to reset your password, you will receive an email for resetting ... Previous email address that cannot be seen ...
What should I have done to prevent such a worst situation? ・ In the first place, I should have used gmail instead of using carrier mail. ・ It would have been better to set an e-mail address for a certain forwarding service (delusion) and have each service acquire an e-mail address from it.
But it is that? The same can be said for both of these That is, I should have set it in consideration of changes </ b>.
In other words, the object-oriented point should be designed with the change in mind, so that the email address of each service account can be changed simply by changing one email address of the forwarding service.
Recommended Posts