ProgrammerHumor

crazyMind

crazyMind
https://i.redd.it/6pe0i6gkonbf1.png
Reddit

Discussion

ResponsibleBabe6564

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

15 hours ago
foop763
:s:

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.

14 hours ago
ResponsibleBabe6564

Haha, I dreamt sometimes I got few users on my site, then reality hits, I don't even have a domain

14 hours ago
ReadyAndSalted

What's a universal curing function? Google's just giving me food preservation tips...

14 hours ago
ResponsibleBabe6564

function curry(func) {

return function curried(...args) {

// console.log("args", args);

if (args.length >= func.length) {

return func(...args);

} else {

return function (...nextArgs) {

return curried(...args, ...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'

14 hours ago
ReadyAndSalted

Oh, you mean currying? I'm not a functional bro so I didn't make the connection.

14 hours ago
ResponsibleBabe6564

Yeah mb currying 😅

14 hours ago
JackNotOLantern

Yeah, the brain has subconscious "background processes" in the that think about our problems, and sometimes cames up with solutions at random moments.

8 hours ago
yo_wayyyy

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 

15 hours ago
stult
:py: :g: :ts: :cs:

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.

5 hours ago
chewbacca77

I did this one single time ever! It was so cool. The brain is an amazing thing, isn't it?

5 hours ago
squidyy

Driving home is also a great time for debugging

15 hours ago
Palbur

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.

14 hours ago
attempt_number_3

That’s Default Mode Network being active for ya.

13 hours ago
Scientific_Artist444

Concentrated: Exploitation

Free-going: Exploration

11 hours ago
Sad_Plantain8757

Just coding in bathroom 🤷

15 hours ago
drawkbox
:c::cp::cs::py::js::unity::unreal:

...on vacation while eating

4 hours ago
repkins
:cs::cp::unity:

+ while hiking

14 hours ago
Drone_Worker_6708

I relate to this. My brain is connected to my feet somehow.

11 hours ago
repkins
:cs::cp::unity:

Walking feeds brain with more oxygen, so not suprising.

10 hours ago
LordAmir5
:c::cp::j:

Most importantly, when you're supposed to be sleeping.

12 hours ago
alaettinthemurder
:unreal:

Why do you think people build debugging room at their bathrooms

15 hours ago
anelectricmind

Bathroom breaks always solve my bugs... don`t ask me why.

14 hours ago
TimeToSellNVDA

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.

13 hours ago
Catatouille-

Yall forgot "While sleeping"

12 hours ago
Common-Cod1468

That's why you should take short breaks often.

12 hours ago
CosmicWarpGames

Oh yeah!. i have definitely come up with many solutions in my bathroom.that place is magical i tell you

14 hours ago
0_-------_0

And failed craving to implement right away

14 hours ago
Interim-Criteria

Relevant MonkeyUser

13 hours ago
Whiteflager
:re:

Actually, I fixed bugs or found solution to a problem in my dreams on multiple occasios. That's a bit scary.

12 hours ago
deepsky88

While driving!!!

14 hours ago
0freelancer0
:COBOL:

I think up something in the shower then forget it by the time I get to work 😔

12 hours ago
Mother-Diver7201

public static void main(String []args){

System.out.println("Brain stops working as soon as it comes to coding");

}

11 hours ago
IAmAQuantumMechanic
:c:py:m:

Bed, bathroom, bus

11 hours ago
MidnightPrestigious9

I think, text wrapping in this meme is broken the "While In Bed [...]" went off-screen.

10 hours ago
wkwkwkwkwkwkwk__
:py:, :r:, :js:, :msl:, :m:

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

10 hours ago
ZunoJ
:cs: :asm: :c:

Thats why you timebox that shit and go for a walk when you didn't find the solution

10 hours ago
kpingvin
:py:

I don't think of work outside work.

8 hours ago
ChChChillian
:c::cp::ftn:

This is why programmers should always get plenty of fiber in their diets.

7 hours ago
wagyourtai1

While at work (not for work related code)

6 hours ago
wggn
:j:

easy solution, code in the bathroom

5 hours ago
DemonGyro

Missing the "in a fever dream at 4am"

5 hours ago
Neebat

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.

4 hours ago
BigGuyForYou_

Shower is my GOAT for this. It even works when I'm deliberately trying to force it to work

4 hours ago
APotatoe121

While in bathroom post final exam

5 bulbs

4 hours ago
moladukes

While sleeping

4 hours ago
centurijon

Screw that. I don’t spend any time in the bathroom. I solve most problems right before bed or while playing games

3 hours ago
Old-Cash3922

Or in your dreams....

3 hours ago
Ronin-s_Spirit
:js:

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.

3 hours ago
kNyne

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.

2 hours ago
dsnake_91
:cp:

While you are going to sleep

16 minutes ago