News for hackers. Stuff that matters.
Re:Sleep on it: How the brain processes many experiences – e... by uv-depression on Monday September 02, 2024 @11:52AM (#41426483)
Starting with my undergrad but fully committing to it by grad school, I (and several of my friends who went through similar programs in math/cs) have a strategy that uses this. If, for example, I had a new problem set in a math course, I would bash my head against it in the evening for an hour or two. I'd make an honest attempt but move on from problems quickly if I got stuck. I'd rarely get much done. Then, I'd do my best to get a good night's sleep (at least 7.5 hours quality sleep). In the morning I'd try the problems again first thing after coffee, and frequently found that I could do a significant portion of the problems, or at least make headway. This might be biased by the fact that I'm really much more of a morning person to begin with, but I know several people who use this strategy.
Re:Sleep on it: How the brain processes many experiences – e... by sidnb13 on Monday September 02, 2024 @12:35PM (#41426808)
Cool to see that this worked well for someone. Super hard to force the key insight in a problem to magically appear given more time sunk into it. Big weakness of mine honestly, and requires a lot of self-awareness to pull myself out of a problem-solving rut. I like the idea of hacking sleep - do you find yourself priming your mind with the problem before nodding off? Curious how a bedtime wind-down routine factors into how effective this is.
Re:Sleep on it: How the brain processes many experiences – e... by schmidtleonard on Monday September 02, 2024 @01:38PM (#41427329)
Over years of math undergrad and grad school I tried very hard and was never able to get this to work, so you're not alone. I was able to reliably reproduce hopeful feelings after sleep, but upon investigation the "new leads" were either things I had already tried (and forgotten why they didn't work) or they were the type of imprecise high-level vague direction ideas that were never difficult to generate and still had 99% of the true effort remaining to grind through the details.
Re:Sleep on it: How the brain processes many experiences – e... by euroderf on Monday September 02, 2024 @12:37PM (#41426823)
While programming Java full-time, I found myself waking in the middle of the night with some big chunk of my brain grinding away on coding issues. Not good.
Re:Sleep on it: How the brain processes many experiences – e... by orobinson on Monday September 02, 2024 @03:44PM (#41428233)
Reminds me of a similar situation I experienced while working on a big project. I came down with the flu and woke up in a delirious, feverish state at 2am feeling like I was trapped in the codebase and I needed to make all the tests pass so I could escape. It almost felt like my conscious brain had somehow found its way into the unconscious part.
Re:Sleep on it: How the brain processes many experiences – e... by yarg on Monday September 02, 2024 @05:47PM (#41429067)
I've had a couple of these.

The first one was programming; I'd been working on a little image editing application, implementing anti-aliased gradient brushes (one colour in the centre and another at the edges, with a fast enough and close enough hack to deal with the jagged edges).

The fever had me hallucinating circles and how to render them for the entire (unbelievably tedious) night.

The other time I'd been playing RA95 for a few hours (I was addicted to that shit) and started feeling progressively worse over the space of a few minutes.

I called it an early night (it was about eight o'clock) and went to bed - then it got worse;

The fever, the headache, and an army of little men and tanks running all over the ceiling.

Re:Sleep on it: How the brain processes many experiences – e... by fifilura on Tuesday September 03, 2024 @10:48AM (#41435501)
I guess not strictly on topic, but I once had the dubious idea to read a book about the battle of Stalingrad while having the flu and high fever.

Drifting to sleep and waking up with that book in my head was a ride.

Re:Sleep on it: How the brain processes many experiences – e... by e-brake on Monday September 02, 2024 @03:47PM (#41428253)
Coding nightmares! I get these too, when working too much. Perseverating on solving intractable problems that don't exist. Once solved it though, and woke up thrilled. That was a good work-night.
Re:Sleep on it: How the brain processes many experiences – e... by gershy on Wednesday September 04, 2024 @09:11AM (#41445304)
Thank you for teaching me the word "perseverate"!! It's a good one!
Re:Sleep on it: How the brain processes many experiences – e... by huijzer on Monday September 02, 2024 @12:40PM (#41426846)
I agree. It can definitely be useful, but not if I'm stressing too much about it. Then, waking up feels like I was hit by a bus in the night.
Re:Sleep on it: How the brain processes many experiences – e... by YZF on Monday September 02, 2024 @08:55PM (#41430155)
Caffeine will do that to you.
Re:Sleep on it: How the brain processes many experiences – e... by enobrev on Monday September 02, 2024 @11:49PM (#41431068)
I get these as well - with any difficult coding or even SRE problem or any sort of deep logical problem that I find myself working on until the last moment before I go to bed.

I find that doing something else for about an hour before going to sleep helps with this almost 100% of the time. It could be listening to music, watching TV, reading, playing with my kid, almost anything. But giving my head a full hour to rest from a deep problem helps me sleep without ending up in some logical nightmare that only some construct from my problem could resolve (and tends to make worse)

Re:Sleep on it: How the brain processes many experiences – e... by tzs on Monday September 02, 2024 @12:50PM (#41426932)
I do the same with the NYT crossword puzzles. The puzzle for a day is released at 10 pm NY time (except the Sunday and Monday puzzles are released 4 hours earlier) the day before, which is 7 pm in my time zone.

I start the puzzle at the end of my day. If I get stuck and cannot finish it before I fall asleep, probably 95% of the time when I take a look again sometime the next day I immediately see answers to several of the things I was stuck on and finishing the puzzle goes smoothly.

Re:Sleep on it: How the brain processes many experiences – e... by Terr_ on Monday September 02, 2024 @01:40PM (#41427338)
Was that because your mind was working on it in the background, or because a reset in state allowed the next attempt to find new paths?

I wonder if it would be possible to make a study to someone distinguish between those, like where the control group gets REM sleep and the experimental group gets some kind of anesthesia. Is there a difference on how well each group does "returning" to a puzzle, compared to working on a fresh one?

Re:Sleep on it: How the brain processes many experiences – e... by taneq on Monday September 02, 2024 @08:05PM (#41429857)
Server reset is at 4am and that's when your action points reset. :D
Re:Sleep on it: How the brain processes many experiences – e... by dimal on Monday September 02, 2024 @03:45PM (#41428241)
This pretty much describes my method of working as well. Often at the end of the day, when I’m not feeling like I have enough energy to solve anything new, I’ll spend some time just looking over some new problems I’ll have to solve in the next few days. I don’t try to solve them. I’m just “loading them into my head”. The next morning I usually find some potential solutions waiting for me. Thanks, brain! I’ll repeat that process a few times until I have them solved. Unfortunately, while this works great in real life, it doesn’t work for interviews.
Re:Sleep on it: How the brain processes many experiences – e... by TeMPOraL on Tuesday September 03, 2024 @08:21AM (#41434238)
> I’ll repeat that process a few times until I have them solved. Unfortunately, while this works great in real life, it doesn’t work for interviews.

Nor does it work when you have a job and a deadline. Or kids.

When does it actually work for anyone these days?

Re:Sleep on it: How the brain processes many experiences – e... by najra on Tuesday September 03, 2024 @09:10AM (#41434619)
Would work fine for jobs or deadlines, as long as the deadline isn't always in a day or two.

Striving to focus on important problems instead of just urgent problems would work fine with this method.

Re:Sleep on it: How the brain processes many experiences – e... by TeMPOraL on Tuesday September 03, 2024 @09:53AM (#41434959)
Perhaps. One would have to dig themselves out of perpetually having a deadline a day or week ago, which is usually the reason one's looking for ways to improve productivity in the first place.
Re:Sleep on it: How the brain processes many experiences – e... by charlie0 on Thursday September 05, 2024 @01:04AM (#41453653)
Go meta here. You're trying to solve the wrong problem. Use this technique to get yourself out of this situation.
Re:Sleep on it: How the brain processes many experiences – e... by pixl97 on Tuesday September 03, 2024 @12:34PM (#41436583)
At companies that set realistic deadlines and don't want to rush, rush, rush everything. They're rare, but some places do understand "slow is fast".

At least in the US the percentage of households with children under 18 has dropped to 40%, and I think you're somewhere in the EU which is closer to 36%.

Re:Sleep on it: How the brain processes many experiences – e... by dimal on Tuesday September 03, 2024 @04:59PM (#41439145)
What? Do you only start working on something the day before your deadline? Do you not plan ahead at all? If you’re always behind the eight ball, scrambling to land whatever you can slap together by the end of the sprint, it’s not going to work. But if that’s the situation you’re in, nothing will work. You’ve got to plan.

It worked fantastically for me at my last job as a lead, and it’s working great for me now as a consultant.

Re:Sleep on it: How the brain processes many experiences – e... by arp242 on Monday September 02, 2024 @04:11PM (#41428420)
I don't think it needs to be as "structural" as you're describing here. Simply "work on something else if you're stuck, come back to it after a day, two days, or longer" has long been one of my secrets to get stuff done.

I once worked somewhere that allowed you to work only on one ticket/task, before you were allowed to move on to another. Completely dumb policy for so many reasons.

Re:Sleep on it: How the brain processes many experiences – e... by gwervc on Monday September 02, 2024 @07:12PM (#41429552)
The one ticket only is how it is done at my current job (except in support, which is a whole new hell) and I hate how it actively deters me from using my brain (and time) efficiently.
Re:Sleep on it: How the brain processes many experiences – e... by phito on Tuesday September 03, 2024 @01:21AM (#41431537)
My previous team's Scrum master kept bugging me because I had multiple tickets open most of the time. As if I were a child that could not manage his own tasks. I left as soon ia could.
Re:Sleep on it: How the brain processes many experiences – e... by chrisweekly on Monday September 02, 2024 @04:53PM (#41428729)
I think it was Thomas Edison who said, “Never go to sleep without a request to your subconscious.”

Excellent advice.

Re:Sleep on it: How the brain processes many experiences – e... by yarg on Monday September 02, 2024 @05:39PM (#41429010)
I don't even need the coffee - I wake up having solved the problem.

Generally around 2 or 3 in the morning, just when I need it the most.

Re:Sleep on it: How the brain processes many experiences – e... by choilive on Monday September 02, 2024 @05:55PM (#41429102)
I think just about everyone has a similar anecdote.

I was stuck on particularly tricky part of a musical piece I was learning - hours and hours of practice and I just couldn't get it down. Went to bed, woke up and was able to nail it within the hour.

Sleep is underrated.

Re:Sleep on it: How the brain processes many experiences – e... by Melatonic on Monday September 02, 2024 @07:33PM (#41429674)
This sounds like me but exactly at the opposite hour - late at night

That being said the pre req being that it's a problem I've already known about (and likely slept on)

Re:Sleep on it: How the brain processes many experiences – e... by aarreedd on Monday September 02, 2024 @09:23PM (#41430289)
I had a college professor suggest this and I 100% agree. I think of it as loading the problem in your brain. Then sleep on it and you will make a lot more progress in the morning than if you had just spent the same total time in one sitting.
Re:Sleep on it: How the brain processes many experiences – e... by Summerbud on Monday September 02, 2024 @10:07PM (#41430544)
I have the same feeling during coding at night.

In the end, a good sleep is what make it different!

Re:Sleep on it: How the brain processes many experiences – e... by yieldcrv on Monday September 02, 2024 @10:42PM (#41430756)
a lot of people ditch the coffee for psilocybin

I don’t think it can be compared to caffeine in its efficacy at all with the mushrooms being far more useful, but do note that both caffeine and psilocybin rely on anecdotes for cognitive performance, despite one being able to be studied as a non controlled substance

Re:Sleep on it: How the brain processes many experiences – e... by pzs on Tuesday September 03, 2024 @12:29AM (#41431271)
This reminds me of what I learned about myself during my years spent at the university. I observed that in the morning my brain is better at understanding new concepts. Mornings were the best time for me to practice and improve problem solving, but I tend to remember less details of what I come across. However, at about 2pm my brain appears to switch to memorizing mode, where I struggle with problem solving compared to the morning, but I will remember a lot more of what I read. I structured my learning activity leveraging this observation. Even to this day (am 46) I can feel the same tendency, e.g., if a problem seems somewhat difficult, I just wait until the next morning, if I can, only to find it easy to come up with some solution that seemed out of reach the previous evening. Also, I try to do most of my reading at night (well, life with a family doesn't leave a whole lot of options for timing anyway).
Re:Sleep on it: How the brain processes many experiences – e... by lynx23 on Tuesday September 03, 2024 @02:16AM (#41431824)
This resembles the oldest self-optimisation-trick I've ever been exposed to: Soak in a topic short before going to bed, avoid distractions before actually falling alseep, and "watch" your brain learn overnight. I think I was aroun 10 when I was told this trick. And to this date, its about the only tangible memory optimisation technique I've ever put to use. Nothing ever came close to its effectiveness.
Re:Sleep on it: How the brain processes many experiences – e... by chiefalchemist on Tuesday September 03, 2024 @05:45AM (#41433105)
I have a similar hack but my breakthroughs typically happen on my morning run (after your mentioned good night of sleep). No ear buds, etc. Just a casual pace and giving my mind time and space to work.
Re:Sleep on it: How the brain processes many experiences – e... by riiii on Tuesday September 03, 2024 @07:32AM (#41433815)
This works. It also works fine for programming tasks. If you feel your struggling or making a slow progress on your current task, switch to a different task.

When you come back to the first one your subconscious has usually processed it quite a bit.

Re:Sleep on it: How the brain processes many experiences – e... by 11235813213455 on Tuesday September 03, 2024 @07:34AM (#41433833)
Even during an exam, having a micro-nap or going for a walk is beneficial