Last night to work overtime, write a traverse folder, the head short-circuited, wrote N long, and then scattered a point

Source: Internet
Author: User
Last night to work overtime, write a traverse folder, the head short-circuited, wrote N long, and then scattered a point
Last night the project needed to write a recursive traversal of the folder, along with a combination of other functions.

May be the other combination too many, disorderly, usually very simple can write things, the brain short-circuiting, is dead and alive also can't write out.

I do not know if the man has this experience, very simple, usually a minute can be written out of the east, but when needed, one or two hours written out there are very big bugs and so on.


Alas, do you have any way to cope with the sudden death of your head??

It's really upsetting.

By the way, a minute.


------Solution--------------------
Hard, the best way is to rest
------Solution--------------------
Last night Overtime, write a traversal of the folder, the head Short Circuit, I wrote it. N Long, just a minute.


Look at a few colored words.
The human brain is not a computer, hehe.
------Solution--------------------
This is normal!
Sleep, play games, watch the game .... Just fine.

But you're not very good at using the tools you already have.

For example, this "recursive Traversal folder" function is a basic tool function, you just give him the function of invoking the callback function is OK.
------Solution--------------------
Less work overtime, high efficiency during the day
------Solution--------------------
Clear your head and continue! ~
------Solution--------------------
Rest and Rest ' ~ #2楼精辟 '
------Solution--------------------
I added 6 days and 6 nights in a row. Sleep only 4, 5 hours a day.
The main focus is on the night.

Do not know whether people have this feeling, is the day of thinking there is no clear night?
I am, sometimes in the daytime feel that the faint, sometimes short-circuit, the night's thinking is clear, as if the reverse.
------Solution--------------------
Citation:
I added 6 days and 6 nights in front of me. Sleep only 4, 5 hours a day.
The main focus is on the night.

Do not know whether people have this feeling, is the day of thinking there is no clear night?
I am, sometimes in the daytime feel that the faint, sometimes short-circuit, the night's thinking is clear, as if the reverse.

Maybe it's a quiet reason!
------Solution--------------------
Citation:
I added 6 days and 6 nights in front of me. Sleep only 4, 5 hours a day.
The main focus is on the night.

Do not know whether people have this feeling, is the day of thinking there is no clear night?
I am, sometimes in the daytime feel that the faint, sometimes short-circuit, the night's thinking is clear, as if the reverse.

That's because you messed up the clock, and I've always had a clear mind during the day.

------Solution--------------------
Not to confuse the biological clock, I do other things, there is no such feeling, day and night have spirit.
That's the only way to do a computer. Feel like a little more quiet at night, easy to meditate.
Maybe it's been doing this for too long, and there's no progress.
------Solution--------------------
Basically is 2 point sleep 8-30 get up ...
Too early to sleep ...

Messing with the biological clock ah ...
------Solution--------------------
is, the more urgent, the more want to do it, the end may backfire, landlord should first rest, perhaps inspiration came, I often this way, do always trouble, then do not do, go out, and then came up with a solution ~ ~
------Solution--------------------
Have a cup of coffee, nothing to pat next to the cactus, what problems have come out ~
------Solution--------------------
Well, feel bad, just take a break.
Hard to carry, the efficiency will be very low!
------Solution--------------------
I was just writing this.

Now the program is running in the loop ...

The key is to first abstract, functional division Clearly, find bugs easier, or mixed together really deadly.
------Solution--------------------
This is the basic function, to remove the fatigue of the dollar, the LZ may not normally pay attention to sorting code. With the collation of the code, directly dragged over the call.


------Solution--------------------
Oh, PHP has a corresponding directory traversal function to help you solve the problem, php some things, generally do not write their own, unless it is a special application,
------Solution--------------------
References:
references:
I added 6 days and 6 nights in a row. Sleep only 4, 5 hours a day.
The main focus is on the night.

Do not know whether people have this feeling, is the day of thinking there is no clear night?
I am, sometimes in the daytime feel that the faint, sometimes short-circuit, the night's thinking is clear, as if the reverse.

That's because you messed up the clock, and I've always had a clear mind during the day.

Some people are like this, before I read the same, the daytime of the faint, night reading is very energetic, especially at midnight, so LZ this is also a normal now like it, also may be because the habit of night too much input, do not have the daytime spirit, the night is more quiet easy to concentrate spirit!
  • 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.