clojure-uk

A place for people in the UK, near the UK, visiting the UK, planning to visit the UK or just vaguely interested to randomly chat about things (often vi and emacs, occasionally clojure). More general the #ldnclj
Aron 2021-06-10T04:59:46.262200Z

morning

djm 2021-06-10T05:30:48.262400Z

👋

2021-06-10T06:39:22.262600Z

Morning

2021-06-10T06:42:49.265900Z

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!

Aron 2021-06-10T07:41:41.277700Z

can I take a guess? does the new solution involve dependency inversion?

2021-06-10T08:26:17.279800Z

Haha, actually it does as I’m in C# land. That is dependency injection - not IoC containers thank goodness!

thomas 2021-06-10T09:45:50.281800Z

I tend to have my best ideas when having a shower in the morning....

thomas 2021-06-10T09:46:02.282Z

so should I stand under the shower all day? 😉

djm 2021-06-10T06:44:45.266900Z

I’m still waiting to have any great insights, but good ideas come to me when afk from time to time

seancorfield 2021-06-10T06:45:34.267400Z

This often happens to me — usually when I’m in the shower!

💯 3
yogidevbear 2021-06-10T06:54:56.273100Z

Morning. I have the same thing happen often too. The essence of hammock driven development I suppose 😄

2021-06-10T06:55:42.273800Z

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

😞 1
djm 2021-06-10T07:04:00.274800Z

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

mccraigmccraig 2021-06-10T07:05:31.275200Z

+1 shower insights

jasonbell 2021-06-10T07:19:06.275400Z

Morning

👋 1
Aron 2021-06-10T07:36:55.275700Z

: ) )

dharrigan 2021-06-10T07:57:54.278Z

Hola!

Jakob Durstberger 2021-06-10T08:07:55.279400Z

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.

2021-06-10T08:25:27.279700Z

I should have said mediocre insight btw 😉

😂 3
Conor 2021-06-10T08:54:21.280200Z

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)

Conor 2021-06-10T08:54:33.280300Z

Maybe it's massaging the scalp that does it

2021-06-10T09:03:47.280600Z

for me it's always going for lunch

mccraigmccraig 2021-06-10T09:44:02.281600Z

i think i might become spherical if going for lunch was my inspiration trigger 😬

😆 2
thomas 2021-06-10T09:46:49.282400Z

having a walk is also good

2021-06-10T09:58:00.285Z

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.

2021-06-10T10:41:30.285100Z

yeah it doesn't help 😅

Aron 2021-06-10T11:30:53.285600Z

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 😄

danm 2021-06-10T11:35:24.288700Z

Moin!

2021-06-10T11:35:43.289100Z

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.

2021-06-10T11:35:50.289300Z

Morning.

Aron 2021-06-10T11:48:01.289700Z

That's been nicely put, if I may say so :D

2021-06-10T11:59:55.290Z

You may 😂

Jakob Durstberger 2021-06-10T14:28:35.293500Z

Yeah maybe. I had a couple of those 😅

Jakob Durstberger 2021-06-10T14:33:50.294Z

Funnily enough found this just a couple weeks ago https://www.psychologytoday.com/us/blog/brain-wise/201403/why-stepping-away-increases-your-creativity

2021-06-10T17:18:34.295700Z

Well there you go, there’s interesting biology going on in our heads