Code written by Japanese programmers?

Source: Internet
Author: User

A few days ago, I saw a post on csdn titled code written by Japanese programmers and Chinese programmers for the same function.ProgramWritten by MembersCodeHow clear and clear is the poor code written by Chinese programmers.

The code written by "Japanese programmer" is as follows:
Dim griditemindex as integer 'comment
Dim currentpageindex as integer 'comment
Dim pagesize as integer 'comment

Griditemindex = E. Item. itemindex
Currentpageindex = meisaiichiran. currentpageindex
Pagesize = meisaiichiran. pagesize

Dim updatedatarowindex as integer 'comment
Updatedatarowindex = (currentpageindex * pagesize) + griditemindex
DT. Rows (updatedatarowindex). Item (T. bindfldname) = txt

The code written by Chinese programmers is as follows:
DT. Rows (. currentpageindex *. pagesize + E. Item. itemindex). Item (T. bindfldname) = txt

Next, let me express my point of view: first, let alone the authenticity of the post content. I think the code written by the "Chinese programmer" Below is much clearer and clearer than the code written by the "Japanese programmer" above, the code of the above "Japanese programmer" can be used as a negative textbook in "refactoring.

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.