How does the team code code be standardized without too much restriction?

Source: Internet
Author: User
Title, code format specifications can use existing generic specifications, such as the PSR recommended format, or can be checked with related tools. What I want to ask here is the logic of the code, naming and other tools that cannot be checked. Many times it is a subjective preference. Of course, the premise is that functions are implemented normally.

Reply content:

Title, code format specifications can use existing generic specifications, such as the PSR recommended format, or can be checked with related tools. What I want to ask here is the logic of the code, naming and other tools that cannot be checked. Many times it is a subjective preference. Of course, the premise is that functions are implemented normally.

Implement code review system, for each function branch merger, must through the team within the level of at least one person or many people audit, and thoroughly implemented

@ The point of view I think is very inappropriate, internal implementation is entirely personal responsibility of the behavior is not reliable, the company will always have personnel flow or back to add the situation of the newcomers, if the laissez-faire eventually become difficult to maintain a big pit

In the case of multi-person development, the basic is that everyone is responsible for a module or a few modules (the withdrawal is each class or each code file is managed by a single person), so to unify is the external interface of these modules (that is, the method name called each other), This, of course, is what you can think of when designing a module.
Inside the module, it is up to the person to be responsible, and the inner function How to write, depends on his preferences. Do not emphasize the unified style too much internally, after all, it is difficult to unify, and will consume a lot of time.

  • Related Article

    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.