News for hackers. Stuff that matters.
Re:Caffeine boosts problem-solving ability but not creativit... by nscalf on Friday March 06, 2020 @10:11AM (#22504150)
Write drunk, edit buzzed, then?
Re:Caffeine boosts problem-solving ability but not creativit... by vsareto on Friday March 06, 2020 @10:13AM (#22504166)
Beer code tends to forget about edge cases in my experience, so yeah
Re:Caffeine boosts problem-solving ability but not creativit... by kingpiss on Friday March 06, 2020 @11:08AM (#22504671)
My weed code is usually really creative but riddled with bugs
Re:Caffeine boosts problem-solving ability but not creativit... by petra on Friday March 06, 2020 @01:11PM (#22505821)
Does it help with solving hard problems ?
Re:Caffeine boosts problem-solving ability but not creativit... by nkingsy on Friday March 06, 2020 @05:22PM (#22507897)
I find it's great for diving into refactoring projects that I've been putting off. I like to do that stoned because it's usually not that hard, just tedious moving files around and organizing things. Same way my wife reorganizes the furniture when she gets stoned.

I also sometimes find solutions to hard problems in my head when stoned, though I usually just write down the solution rather than coding it, as large-scale implementations are better done sober.

Re:Caffeine boosts problem-solving ability but not creativit... by mywittyname on Friday March 06, 2020 @03:02PM (#22506774)
When you come back sober, the solutions won't make any sense.
Re:Caffeine boosts problem-solving ability but not creativit... by oh_sigh on Friday March 06, 2020 @04:38PM (#22507569)
Personally, weed might help in the creative phase of problem solving, but if it requires working memory weed is a big negative(at least how it affects me)
Re:Caffeine boosts problem-solving ability but not creativit... by chrstphrhrt on Friday March 06, 2020 @11:04PM (#22509662)
I think including some CBD in there negates the memory issues.
Re:Caffeine boosts problem-solving ability but not creativit... by nicoburns on Friday March 06, 2020 @12:06PM (#22505223)
Yeah, a former colleague of mine told me they used to regularly drink a pint of beer with an evening of coding, until on one occasion they introduced a subtle bug which took them two days to hunt down.

They were working in C, which makes it a lot easier to introduce subtle bugs than most languages, but I certainly think twice about coding while under the influence since I heard that story!

Re:Caffeine boosts problem-solving ability but not creativit... by clarry on Friday March 06, 2020 @01:26PM (#22505937)
Are we to infer that your colleague hardly ever made subtle bugs?

I can make plenty of those.. and I've never had beer.

Re:Caffeine boosts problem-solving ability but not creativit... by nicoburns on Friday March 06, 2020 @06:32PM (#22508388)
That would probably be a reasonable inference. He was one of the sharpest developers I've ever had the pleasure of working with.
Re:Caffeine boosts problem-solving ability but not creativit... by beobab on Friday March 06, 2020 @10:51AM (#22504498)
I never remember to put comments in when I am beer-coding.

Caffeine-code is much easier to follow later.

Re:Caffeine boosts problem-solving ability but not creativit... by leesec on Friday March 06, 2020 @02:47PM (#22506624)
Code drunk, commit sober.
Re:Caffeine boosts problem-solving ability but not creativit... by mariodiana on Friday March 06, 2020 @02:52PM (#22506670)
I remember reading writing advice somewhere (prose, not code) that suggested you have an alcoholic beverage in the evening for your rough drafts, and then coffee in the morning for your editing. The strategy was: loosen up and then tighten up.