morning
👋
Morning
Do others find that the greatest developer insights are gained when not at the keyboard? I’ve been developing a simple rules engine recently, and spent some time developing specific calculations, but I was never happy with the abstractions I’d used and there was too much duplication. My time remaining on the story is nearly up, so I thought it was good enough. But during breakfast whilst watching the news, and not thinking at all about the project, a different abstraction hit me. I’ve got about 3 hours to implement it which should be enough time. But why, oh why didn’t I see this yesterday whilst looking at the code!
can I take a guess? does the new solution involve dependency inversion?
Haha, actually it does as I’m in C# land. That is dependency injection - not IoC containers thank goodness!
I tend to have my best ideas when having a shower in the morning....
so should I stand under the shower all day? 😉
I’m still waiting to have any great insights, but good ideas come to me when afk from time to time
This often happens to me — usually when I’m in the shower!
Morning. I have the same thing happen often too. The essence of hammock driven development I suppose 😄
Yeah, I’ve had that a few times. That’s generally pretty convenient as I can usually hold on the idea for a few times. My worst time was when I was riding at a downhill mountain bike park where I don’t take my phone as 1. http://1.it will get broken when I fall off 2. there’s no need to have a phone as there’s marshals around for safety I subconsciously realised how to fix a problem that I’d been facing the week before, but had no way of recording it so promptly forgot it. I remembered during the drive home that I’d had the idea, but couldn’t remember the actual solution. I never did….
In the shower, and before falling asleep are where it happens for me. I’m as likely to forget that I even had an idea than to know that I’ve forgotten it, if the latter
+1 shower insights
Morning
: ) )
Hola!
I think I never had a single great insight or original thought in my life. I just mostly try to name things the best I can and put things that look like they belong to each other close together. I do sometimes come back to code and find better names or structures but never anything that I would call an insight.
I should have said mediocre insight btw 😉
I simply think about the problem and write the answer down (actually, I do find I get ideas about how to do things the shower)
Maybe it's massaging the scalp that does it
for me it's always going for lunch
i think i might become spherical if going for lunch was my inspiration trigger 😬
having a walk is also good
I’ve read a little about how stress can limit your creative thinking, so if you’re stressed about solving an issue, your constrained mind won’t be able to think laterally about it. I know i’ve tried the same thing over and over when desperately trying to get a confusing test passing or similar, my mind seems laser targeted on the one ‘solution’ that’s been proven to fail! I think it’s related to fight or flight - the brain becomes optimised on doing on repeatable thing well.
yeah it doesn't help 😅
this is probably more about how we use words and language, an insight could be that "i don't need to use two loops here" or something silly like that 😄
Moin!
I suppose your summary relates somewhat to the sunk cost fallacy. WIP code that’s aiming to solve the issue but doesn’t is both an asset (we know this doesn’t work) but also a liability (how close to a solution is it). Just because I’ve written the code one way, I must ensure I’m prepared to, and have enough security to throw it away. Most likely through small and frequent git commits.
Morning.
That's been nicely put, if I may say so :D
You may 😂
Yeah maybe. I had a couple of those 😅
Funnily enough found this just a couple weeks ago https://www.psychologytoday.com/us/blog/brain-wise/201403/why-stepping-away-increases-your-creativity
Well there you go, there’s interesting biology going on in our heads