I used to wake up with solution. Like straight up waking up full energetic and omw to fix the bug.
Nowadays i dont care so it doesnt happen that oftenÂ
When I first started out, it took me a long time to realize how often I was wasting time late at night debugging, usually in a vain effort to cram one last feature in before hitting the rack. 99% of the time, getting some rest or sleep does infinitely more to get you unstuck than cranking out more hours late into the night.
I would say it depends on the complexity of the feature you’re trying to implement. In web development, most of the features you implement are usually just simple crud requests. As such, most of the time in web dev is spent either writing simple code that you’ve written many times before, or on adjusting/creating the UI. Since this doesn’t require too much thinking, it’s actually perfect to do late at night when you’re often tired and a little numb since your state of mind really doesn’t matter, and then you can do any complex stuff in the morning when you’re refreshed.
I did this one single time ever! It was so cool. The brain is an amazing thing, isn't it?
Driving home is also a great time for debugging
There's a whole damn book(A Mind For Numbers, but don't let it fool you, it's not math specific) about it which I'm reading. There are two main states of mind: concentrated and free-going. In concentrated state you do the more logical work, when in free-going one you look for more unexpected and new ideas. Free-going one is triggered when, well, you do some simple task that doesn't force your brain to concentrate: eating, showering, going for a walk.
That’s Default Mode Network being active for ya.
Concentrated: Exploitation
Free-going: Exploration
Just coding in bathroom 🤷
...on vacation while eating
+ while hiking
I relate to this. My brain is connected to my feet somehow.
Walking feeds brain with more oxygen, so not suprising.
Most importantly, when you're supposed to be sleeping.
Why do you think people build debugging room at their bathrooms
Bathroom breaks always solve my bugs... don`t ask me why.
Yall forgot "While sleeping"
Not joking, whenever I’m leading resolution in a nasty incident, the first thing do is to go to the bathroom and do a big poop.
I get the wisest ideas in a pressure situation after that.
That's why you should take short breaks often.
Oh yeah!. i have definitely come up with many solutions in my bathroom.that place is magical i tell you
And failed craving to implement right away
Actually, I fixed bugs or found solution to a problem in my dreams on multiple occasios. That's a bit scary.
while sleeping: 💡💡💡💡
While driving!!!
I think up something in the shower then forget it by the time I get to work 😔
public static void main(String []args){
System.out.println("Brain stops working as soon as it comes to coding");
}
Bed, bathroom, bus
I think, text wrapping in this meme is broken the "While In Bed [...]" went off-screen.
Ah you missed the part when you're finally falling asleep after 36 hours because of prod deployment ... and suddenly you're mentally rewriting the entire function. Haha
Thats why you timebox that shit and go for a walk when you didn't find the solution
I don't think of work outside work.
This is why programmers should always get plenty of fiber in their diets.
While at work (not for work related code)
easy solution, code in the bathroom
Missing the "in a fever dream at 4am"
Hi, your manager here.
To maximize your productivity, you're going to have to write code while eating on the toilet.
We're still not giving you a vacation.
Shower is my GOAT for this. It even works when I'm deliberately trying to force it to work
While in bathroom post final exam
5 bulbs
While sleeping
Screw that. I don’t spend any time in the bathroom. I solve most problems right before bed or while playing games
Or in your dreams....
It honestly sucks, I don't poop that often or that long - so I only have a small window of being extra genious in terms of programming.
I once came to work and realized I had solved a bug in a dream from the night before. Tried the solution and it worked.
While you are going to sleep
Was the idea that lightbulbs should be green?
Everytime happen with me
While praying
The trick is to take note when ideas come to mind. Great ideas come at all times when not in the process of implementing ideas, hence why the greatest creatives always carry a notebook or similar function.
Oh shit
I'm my case, the best debugging tool is the shower.
It's when you relax the conscious part of the brain, when the subconscious can give you a hand.
And during midterms and finals that have nothing to do with technology
Every engineer should be given access to, and allowed to charge, shower time at work. If we made this simple change we could solve all of our problems before football season starts
And then there’s while going to bed
Try this pip install gitflow-studio
Hey u found a new tool for git management pip install gitflow-studio
This is why part of my development process at a previous job used to be getting up and walking out of the building and down to the pond to stare at the local wildlife. Got some of my best debugging done on those walks.
Usually when I drive
The best ideas come up when you're sat on the throne for a while.
I guess in that sense, constipation is good for your career.
I tried to understand how a universal currying function worked for few hours (yep I'm that slow), I understood that in my dreams ðŸ˜, just waking up with "I understand it now" ... Random places and situations I get enlightenments haha
Sometimes i wake up and remember that I solved a bug in my dreams and get on the computer to solve it, only to remember that the project I fixed in my dream never even existed.
Haha, I dreamt sometimes I got few users on my site, then reality hits, I don't even have a domain
What's a universal curing function? Google's just giving me food preservation tips...
function curry(func) {
return function curried(...args) {
// console.log("args", args);
if (args.length >= func.length) {
return func(...args);
} else {
return function (...nextArgs) {
};
}
};
}
const join = (a, b, c) => {
return ${a}${b}${c};
}; // Here instead of join you can add any function like add // With any number of arguments, pretty cool right ? const add = (a,b,c,d,e) =>{ return a+b+c+d+e }
const curriedJoin = curry(join);
console.log(curriedJoin(1, 2, 3)); // '1_2_3'
console.log(curriedJoin(1)(2, 3)) // '1_2_3'
console.log(curriedJoin(1, 2)(3)) // '1_2_3'
Oh, you mean currying? I'm not a functional bro so I didn't make the connection.
Yeah mb currying 😅
Yeah, the brain has subconscious "background processes" in the that think about our problems, and sometimes cames up with solutions at random moments.
The farther you are from a keyboard, the clearer your ideas become.
And then they become muddy again when you're back at the keyboard.