Code review Note 1

Source: Internet
Author: User
A Java Web project CodeReview results
  1. Too much coding and transcoding code
    String uid = new string (request. getparameter ("T1"). getbytes ("ISO8859-1"), "GBK ");
  2. Use "ABC". equalsignorecase (s), do not use S. Equals ("ABC ")
  3. Do not provide useless Constructors
  4. Do not provide main (). Use JUnit
  5. Does the file name contain spaces? Case Insensitive
  6. Too many redundant code:
    Report/template1.jsp why does the Code for uploading files appear?
    What is the useless button operation code in sqlview/JS/sqlview. js?
  7. Use action whenever possible to encapsulate large Java code segments;
  8. Javascript is too messy! There is a West Block in the east part of the page;
  9. How can I use Js for permission determination?

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.