How to break through projects without comments

Source: Internet
Author: User
I learned how to break through a project without comments for three days. I took a project and got familiar with it for half a day. This is a process-oriented write with no comments in the code. The directory structure is messy. Put everything together. The page is also messy. Incompatible. The database design is also unreasonable. Four user tables with different fields. My boss asked me how many functional bugs I had solved every day, but I haven't even read the code. how can I solve them? How to break through projects without comments
Three days later, I took over a project and got familiar with it for half a day. This is a process-oriented write with no comments in the code. The directory structure is messy. Put everything together. The page is also messy. Incompatible. The database design is also unreasonable. Four user tables with different fields. My boss asked me how many functional bugs I had solved every day, but I haven't even read the code. how can I solve them? I really don't want to do it anymore. I 've been sleeping at for a few days. the code is messy and I have no comments. why? Share:
------ Solution --------------------
As long as it seems that the basic framework and running principle are good, you don't have to read it all. the boss wants you to solve any bugs. you just need to look for the page with bugs from there.
------ Solution --------------------
Delete-> rewrite
------ Solution --------------------
Instead of solving all the problems on a secondary level, you must solve them easily and easily.
Obviously, this project is a hodgedge (pieced together with ready-made code)

1. find the sub-function entry based on the interface and entry file
2. after executing the sub-function code, use get_included_files to obtain the files involved in this function.
3. this layer of analysis sub-function

The code for reading the function implementation should be placed at the end. if it is determined that it is not his reason, you can ignore it.
Exercise caution when modifying code for common files
------ Solution --------------------
Instead of getting anxious, you should take the time to analyze and familiarize yourself with the code. if you try your best and still cannot do it, tell your boss that it will take time, otherwise, you have no way, and it is impossible to make it difficult.

First, familiarize yourself with the code and functions as the moderator said. The problem is that someone else will help you solve it.
------ Solution --------------------
I am very happy to see such a hard-pressed person, because the world is as hard-pressed as me.
------ Solution --------------------
Do not try to clear all the code first. First, see a Bug to solve a Bug.
------ Solution --------------------
Oh. Come to learn
------ Solution --------------------
Process-oriented code should be well rounded up. without code reuse, changes will not affect other problems. you can directly ask the boss what bugs are there, one by one, do not try to read the code again. you just need to fix the BUG and make the system more and more difficult to read. congratulations to the next person who takes over.
------ Solution --------------------
I am also reading the code of my previous project. Nima is a mess and all sorts of things are messy.
------ Solution --------------------
What else do you want? Just open the boss if you don't want.
------ Solution --------------------
Haha, lz is in a small company. The reality is that we have multiple roles in order to train people. we are young and I am afraid of anything.

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.