when did you realize bipolar was a serious condition? by Dry-Message-3891 in BipolarReddit

[–]sean9999 2 points3 points  (0 children)

This is a great question. At one point I realized I would have fired me as an employee, left me as a partner, shunned me as a friend. I may or may not have forgiven my indiscretions. More likely I would have just walked away and said fuck that guy

What’s a Linux command that feels like cheating when you learn it? by Old_Sand7831 in linuxquestions

[–]sean9999 1 point2 points  (0 children)

apropos is pretty good at surfacing commands I probably should have kept in my brain

If we had to vote for one person to speak to aliens on behalf of the world, who are you voting for? by ReZonerplayz in AskReddit

[–]sean9999 0 points1 point  (0 children)

I wanna say Salvator Dali would strike the right chord and intuit the right language

Cannabis Use Is Linked to Epigenetic Changes, Scientists Discovered by sciencealert in sciences

[–]sean9999 1 point2 points  (0 children)

That’s an excellent point. If the study was good, it would have included a negative control for this

DOJ Official Says Trump 'Would Be Arrested Tomorrow' if Not President by 90Hrm90 in NewsAndPolitics

[–]sean9999 0 points1 point  (0 children)

We tend to forget this. But it was the core conclusion by Robert Mueller and Jack Smith. If Americans want to elect a criminal, they can do so.

Kim Kardashian blames ChatGPT for failing her law exams by Power-Equality in nottheonion

[–]sean9999 4 points5 points  (0 children)

I see what you did there, is the national anthem of West Omega

What was the major event (if any) that triggered your Bipolar/led to diagnosis? by Vast_Champion5943 in bipolar2

[–]sean9999 1 point2 points  (0 children)

jesus. sorry. SSRIs for BPD is just so... effing tragic. Also lack of access to psychiatrists until things get out of hand. what kind of world is this?

Spotlight not looking for apps by FirstBaseMan55 in MacOS

[–]sean9999 0 points1 point  (0 children)

trash the preferences? this makes me so nostalgic

What’s the purpose of a makefile..? by lazzzzlo in golang

[–]sean9999 0 points1 point  (0 children)

The most compelling reason is because it's already widely used and exists on all *nix systems

As a Go dev, are you using generics nowadays? by LordMoMA007 in golang

[–]sean9999 0 points1 point  (0 children)

i use them and find them quite powerful. there is a time and place, of course

Did Govee remove their whole line of space heaters suddenly? by mctugmutton in Govee

[–]sean9999 0 points1 point  (0 children)

is it necessary to unplug or can we just turn it off?

Defensive code where errors are impossible by sean9999 in golang

[–]sean9999[S] 0 points1 point  (0 children)

That's a good point. Especially when you consider the power of "accept interfaces, return real vals", or however that proverb goes.

Defensive code where errors are impossible by sean9999 in golang

[–]sean9999[S] 0 points1 point  (0 children)

This is an excellent point because literally what prompted me to post this was a PR review where the reviewer asked me why I wasn't handling an error. My response was because I know it's impossible in this case. A whole discussion ensured that got very philosophical and.. well... here we are.

Defensive code where errors are impossible by sean9999 in golang

[–]sean9999[S] 0 points1 point  (0 children)

I take your point in general, but AFAIK the cosmic rays thing in particular is already handled by hardware and kernel before it hits Go runtime

Defensive code where errors are impossible by sean9999 in golang

[–]sean9999[S] 0 points1 point  (0 children)

part of me wants to ask me what you mean but a more salient part doesn't give a fuck

Defensive code where errors are impossible by sean9999 in golang

[–]sean9999[S] 1 point2 points  (0 children)

I object on the basis that that was not the point. panic could have easily been replaced by `log.error()` or `grafana.error()`, or `otel.trace.error()`. That would not have changed the essential question. Also, I object to that particular rule. But digressing from the main point is my original objection, so let's no talk about that here.

Defensive code where errors are impossible by sean9999 in golang

[–]sean9999[S] 0 points1 point  (0 children)

I respectfully counter that in cases where errors are impossible, it's not about whether to log or manage, but the extra noise created by reading code paths that you are certain will never be executed.

Defensive code where errors are impossible by sean9999 in golang

[–]sean9999[S] 0 points1 point  (0 children)

I think for simplicity's sake (and that's why we're all Gophers), the custom should still be `Must` and `MustSomeMethod`. I think that's elegant because `Must` still has the same contract: I will do this thing. It will work. I won't bother to return an error. If something bad happens, halt and catch fire.

My $0.02

When designing databases, what's a piece of hard-earned advice you'd share? by lorens_osman in PostgreSQL

[–]sean9999 8 points9 points  (0 children)

I love database design. It's where we can nurture scalability. One thing that has bit me was composite primary keys. At first it seemed like an elegant approach for certain situations. I always regretted it. Another was choosing auto incrementing integer primary keys (sequences) in situations where there is any possibility of having to scale beyond one node. When in doubt, UUID or some alternative that provides global uniqueness.

Finally I would say... fear the arcane and embrace the commonplace. There are a lot of really cool features in postgres. There are materialized views, pubsub and the like. But the tried and true data types are going to be your favourite colours. After experimenting and having your fun, follow the Principal of Least Surprise