I worked overtime last night. I wrote a folder traversal, and my head was short-circuited. I wrote it for a long time, and then split it.

Source: Internet
Author: User
I worked overtime last night. I wrote a folder traversal, and my head was short-circuited. I wrote N for a long time. I split it into the project I needed last night and wrote a recursive folder traversal, other functions are combined. It may be that there are too many other combinations, which are messy. at ordinary times, it is very easy to write things, and the head is short-circuited. I don't know if my buddy has such an experience. it's easy to write something that can be written every minute, but when necessary, one or two of them worked overtime last night, wrote a folder traversal, and their heads were short-circuited, write N for a long time and separate points
Last night, the project needed to write a recursive traversal folder, and a combination of other functions.

It may be that there are too many other combinations, which are messy. at ordinary times, it is very easy to write things, and the head is short-circuited.

I don't know if my buddy has such an experience. it's easy to write things that can be written every minute, but when it takes a minute or two, there are huge bugs.


Alas, do you have any way to deal with sudden head deaths ??

Really worried.

By the way, separate points.
------ Solution --------------------
The best way is to rest.
------ Solution --------------------
I worked overtime last night. I wrote a folder traversal, and my head was short-circuited. I wrote it for a long time, and then split it.


Let's look at several colored words.
The human brain is not a computer.
------ Solution --------------------
This is normal!
Sleep, play games, watch games .... Okay.

However, it is not easy for you to make good use of existing tool functions.

For example, this "recursive traversal folder" function is a basic tool function. you only need to attach it to call the callback function.
------ Solution --------------------
Less overtime, high efficiency during the day
------ Solution --------------------
Clear your mind and continue !~
------ Solution --------------------
Resting and resting '~ #2 floor incisive'
------ Solution --------------------
I added 6 consecutive days and 6 nights. Sleep for 4 to 5 hours every day.
Focus on the evening.

I don't know if you have such a feeling that the daytime thinking is not clear at night?
I mean, during the day, I sometimes feel dizzy, sometimes short-circuited, and the thinking at night is clear, as if I had reversed.
------ Solution --------------------
Reference:
I added 6 consecutive days and 6 nights. Sleep for 4 to 5 hours every day.
Focus on the evening.

I don't know if you have such a feeling that the daytime thinking is not clear at night?
I mean, during the day, I sometimes feel dizzy, sometimes short-circuited, and the thinking at night is clear, as if I had reversed.

Maybe it's a quiet reason!
------ Solution --------------------
Reference:
I added 6 consecutive days and 6 nights. Sleep for 4 to 5 hours every day.
Focus on the evening.

I don't know if you have such a feeling that the daytime thinking is not clear at night?
I mean, during the day, I sometimes feel dizzy, sometimes short-circuited, and the thinking at night is clear, as if I had reversed.

That's because you messed up the biological clock. I have always been clear-thinking during the day.

------ Solution --------------------
It's not about messing up the biological clock. I don't feel this way when I do other things. I have a spirit during the day and night.
This is only true for computers. It seems that the evening is quieter and easier to meditate.
This may have been done for too long and there was no progress.
------ Solution --------------------
Basically, I got up 8-30 at 2 o'clock...
It's too early to sleep...

Got rid of the biological clock...
------ Solution --------------------
That is, the more urgent it is, the more I want to do it. In the end, it may be counterproductive. the landlord should take a rest first, maybe the inspiration will come. I often do this, and I will always go wrong when doing it, and then I will not do it later, I went out for a walk, and then I came up with a solution ~~
------ Solution --------------------
Have a cup of coffee and pat the cactus next to it. I have come up with any questions ~
------ Solution --------------------
Well, if you don't feel good, just take a break.
Hard work, very low efficiency!
------ Solution --------------------
I am writing this. I just finished writing it.

Now the program is running and traversing...

The key is to abstract it first. the functions are clearly defined and it is easier to find bugs. Otherwise, it would be terrible to mix them together.
------ Solution --------------------
This is a basic function. in addition to fatigue, it indicates that lz may not focus on organizing code at ordinary times. If you have compiled the code, drag it and call it.


------ Solution --------------------
Haha, PHP already has a corresponding Directory Traversal function to help you solve the problem. something in PHP is generally not written by yourself, unless it is a special application,
------ Solution --------------------
Reference:
Reference:
I added 6 consecutive days and 6 nights. Sleep for 4 to 5 hours every day.
Focus on the evening.

I don't know if you have such a feeling that the daytime thinking is not clear at night?
I mean, during the day, I sometimes feel dizzy, sometimes short-circuited, and the thinking at night is clear, as if I had reversed.

That's because you messed up the biological clock. I have always been clear-thinking during the day.

Some people are like this. I used to read books, and I was dizzy during the day. reading at night is very energetic, especially in the middle of the night. so LZ is also a normal phenomenon, it may also be because you get used to spending too much time at night, so you don't have any mental resources during the day. it's easier to concentrate at night!

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.