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

1 day 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.

1 day ago
ResponsibleBabe6564

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

1 day ago
ReadyAndSalted

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

1 day 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'

1 day ago
ReadyAndSalted

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

1 day ago
ResponsibleBabe6564

Yeah mb currying 😅

1 day 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.

22 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 

1 day 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.

19 hours ago
RareDestroyer8

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.

9 hours ago
chewbacca77

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

19 hours ago
squidyy

Driving home is also a great time for debugging

1 day 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.

1 day ago
attempt_number_3

That’s Default Mode Network being active for ya.

1 day ago
Scientific_Artist444

Concentrated: Exploitation

Free-going: Exploration

1 day ago
Sad_Plantain8757

Just coding in bathroom 🤷

1 day ago
drawkbox
:c::cp::cs::py::js::unity::unreal:

...on vacation while eating

18 hours ago
repkins
:cs::cp::unity:

+ while hiking

1 day ago
Drone_Worker_6708

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

1 day ago
repkins
:cs::cp::unity:

Walking feeds brain with more oxygen, so not suprising.

1 day ago
LordAmir5
:c::cp::j:

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

1 day ago
alaettinthemurder
:unreal:

Why do you think people build debugging room at their bathrooms

1 day ago
anelectricmind

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

1 day ago
Catatouille-

Yall forgot "While sleeping"

1 day 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.

1 day ago
Common-Cod1468

That's why you should take short breaks often.

1 day ago
CosmicWarpGames

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

1 day ago
0_-------_0

And failed craving to implement right away

1 day ago
Interim-Criteria

Relevant MonkeyUser

1 day ago
Whiteflager
:re:

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

1 day ago
_Ilobilo_

while sleeping: 💡💡💡💡

6 hours ago
deepsky88

While driving!!!

1 day ago
0freelancer0
:COBOL:

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

1 day ago
Mother-Diver7201

public static void main(String []args){

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

}

1 day ago
IAmAQuantumMechanic
:c:py:m:

Bed, bathroom, bus

1 day ago
MidnightPrestigious9

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

1 day 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

1 day ago
ZunoJ
:cs: :asm: :c:

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

1 day ago
kpingvin
:py:

I don't think of work outside work.

22 hours ago
ChChChillian
:c::cp::ftn:

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

21 hours ago
wagyourtai1

While at work (not for work related code)

20 hours ago
wggn
:j:

easy solution, code in the bathroom

19 hours ago
DemonGyro

Missing the "in a fever dream at 4am"

19 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.

18 hours ago
BigGuyForYou_

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

18 hours ago
APotatoe121

While in bathroom post final exam

5 bulbs

18 hours ago
moladukes

While sleeping

18 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

17 hours ago
Old-Cash3922

Or in your dreams....

17 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.

17 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.

16 hours ago
dsnake_91
:cp:

While you are going to sleep

14 hours ago
DangerousImplication

Was the idea that lightbulbs should be green?

13 hours ago
zamaalazad

Everytime happen with me

12 hours ago
mnBashir

While praying

12 hours ago
Phamora

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.

12 hours ago
Equivalent-Cry-5345

Oh shit

11 hours ago
JosebaZilarte

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.

11 hours ago
RareDestroyer8

And during midterms and finals that have nothing to do with technology

9 hours ago
Vincent394
:cs::c::cp::g:

u/kappetrov is this true?

8 hours ago
BreachlightRiseUp

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

7 hours ago
Extension_West5926

vacation and bathroom always works

7 hours ago
Natural_Comfort_9773

And then there’s while going to bed

7 hours ago
openSEF-JosephSherin

Try this pip install gitflow-studio

3 hours ago
openSEF-JosephSherin

Hey u found a new tool for git management pip install gitflow-studio

3 hours ago
Raskuja46

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.

1 hour ago
Any_Excitement_6750
:py:

Usually when I drive

1 hour ago