Hacker News new | ask | show | jobs
by chao- 243 days ago
Hmm... I do a decent job at new, exploratory library code with a glass of wine. Not business logic, not exacting data invariants, nothing I would ever ship to production, but exploring interfaces for a library? Yeah. Asking "What does this really need to do? How do I really wish that I could write the calling/collaborating code?"

I wouldn't trust logic I wrote with alcohol in my system, or any tests that I wrote with alcohol, but getting at the heart of "Why does this library need to exist? What should it actually allow?" is enhanced a tiny bit by a mildly-altered mental state.

Over time, I've decided that it is because I get chatty with wine, and designing a library interface feels like a conversation between me and future engineers who might use said library. And then I stash it away to read and reconsider while sober.

2 comments

A touch of alcohol turns the overthinking volume down which often leads to more productivity and better code. A not so uncommon ADHD experience. In university of course also sometimes I would do my programming drunk and the result would regularly be that it worked but the solutions would be very odd.

Standard ADHD meds often lead to playing Factorio for 17 hours in a row and forgetting to eat.

>Standard ADHD meds often lead playing Factorio for 17 hours in a row and forgetting to eat.

Ain't that the truth.

I've found that sessions of Factorio lasting 17 hours (or more!) are entirely possible even when a person is completely unfettered by any manner of inebriate or medication.

(It's almost like the birds can hear the loading screen, and that hearing this prepares them for their pre-dawn onslaught of particularly-profound singing.)

The entirety of the dot com bubble recovery was powered by adderall, weed and booze.
I think its good for enhancing taste, fluidity, and creativity, obviously not good for strict engineering but that's not all we do...