Coding norms and habits of software developers in the software development process

Source: Internet
Author: User

During the software development process, software developers are bigger picture to write code.

The so-called bigger picture refers to the reusability of the code being written!

Do not name or use some style code in order to accomplish a task or function.

In HTML and CSS, some CSS naming may be used in some HTML, then pay attention to the reusability of code!

Then in which pages may be used, such as registration, login and so on, different users of the landing, see the style may not be the same, but some pages may reach the same style, Div named TR, TD in the use of the class may be used in multiple pages, and the name of the person at a glance to understand, On which pages to use, the role played. Wait a minute!

In Java, using association tables to query or insert data, using associations can easily find the data you want, or implement some functionality, but this can degrade performance and security, define a specification in Serviceapi, or a method that is called in other pages, not only to improve performance and security, It also enables future developers to be able to reuse code more clearly, maintaining the evidence of this development and reducing redundancy.

Understand the role that labels play and the role of naming a Div may play

Like the font in TD all on the right, then use FLAOT can be achieved, but to understand that TD tag definition is a table space, using float how to make the table move it?!! The best is to use Text-align:left,

Use Vertical-align:middle (top, bottom) in table tables, and you can adjust the upper and lower positions to be effective in the table!

Coding norms and habits of software developers in the software development process

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.