Do not rely too much on things beyond your control

Source: Internet
Author: User

In the next major version of the game, one of the content is to simplify the operation of a system: operations on several interfaces are integrated into one interface, and the operation steps are simplified. I am responsible for the logical process of the systemCodeWrite. I thought it was just a major change on the UI side, but when I looked back at the old code of the logic module, I found that the UI interaction was over-coupled and the independence was too low. In many places, the UI also changed the logic side. Ui interface integration, which leads to a major logical change.

Therefore, a profound lesson: Do not rely too much on things beyond your control.

For example, if more than two external modules or interfaces are used, compile an interface in your module and call it for your module, in this new interface, external things are called. In this way, no matter how the external things are modified, there is only one place to change the module.

Although it is just a simple truth, in practical application, it is useless to connect basic things for various reasons. Maybe: this is the difference between theory and practice.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.