Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Beer code tends to forget about edge cases in my experience, so yeah


My weed code is usually really creative but riddled with bugs


Does it help with solving hard problems ?


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.


When you come back sober, the solutions won't make any sense.


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)


I think including some CBD in there negates the memory issues.


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!


Are we to infer that your colleague hardly ever made subtle bugs?

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


That would probably be a reasonable inference. He was one of the sharpest developers I've ever had the pleasure of working with.


I never remember to put comments in when I am beer-coding.

Caffeine-code is much easier to follow later.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: