×

Thoughts on where interfaces should be defined? by Forumpy in golang

[–]Forumpy[S] 2 points3 points  (0 children)

Thanks, great response.

>Using this pattern makes it so the interfaces are decoupled from the concrete implementation, allowing for more flexibility on the packages that end up using interfaces for your implementations.

I agree with this, but why does this need to be facilitated by placing the interfaces next to the users of it? Why can't a single interface live closer to its implementation(s)?

>It also ends up being easier to see at a glance what your file (for this example your service) is doing if you have the interfaces defined at the top along with any other structs and types.

This is interesting because I've never thought of it this way. Rather I see it as immediately more readable when a common project-wide interface is used for certain functionality. For example, when you see an `io.Reader` interface as an argument, you know roughly what sort of operations a certain function will be performing.

Champion Mastery progress resetting? by Forumpy in 2XKO

[–]Forumpy[S] 4 points5 points  (0 children)

Oh I didn't know mastery points was a thing. Maybe I was misunderstanding how it works. Thanks.

NYT Thursday 10/16/2025 Discussion by Shortz-Bot in crossword

[–]Forumpy 0 points1 point  (0 children)

Thanks.

Where were people getting links to cameras and SLR (Single-Lens Reflex) from?

NYT Thursday 10/16/2025 Discussion by Shortz-Bot in crossword

[–]Forumpy 0 points1 point  (0 children)

Can someone explain the"*Deli device" clue? One explanation I've seen is that it's referring to cameras and I have no idea how they made this connection, but someone else said it's an abbreviation of "slicer"?

Do you define package-level "static" errors for all errors, or define them inline? by Forumpy in golang

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

Thanks. I wanted to get some different perspectives because a linter I was using saw fmt.Errorf() as a lint error and I thought this was a bit too opinionated for a linter to do.

Default Methods in Go | mcyoung by waozen in code

[–]Forumpy 0 points1 point  (0 children)

Forcing a struct embedding to use an interface sounds a bit mad honestly.

grpc-gateway or connectrpc for a new project? by ab845 in golang

[–]Forumpy 0 points1 point  (0 children)

Bit late to this. What do these two give you over gRPC + grpc-gateway?

Tinnitus gets much worse when turning/straining neck? by Forumpy in tinnitus

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

I didn’t unfortunately. It seemed to go away over a month or so, and while it does come back every now and then- usually when I’m ill or stuffy- it isn’t a permanent fixture. Hopefully will be the same for you. 

PS5 Help and Questions Megathread | Game Recommendations, Simple Questions, and Tech Support by tinselsnips in PS5

[–]Forumpy 0 points1 point  (0 children)

I've been using a Dualsense on my PC via USB, but for seemingly no reason it disconnects for a second then reconnects. Whilst this happens, the sensor bar light shuts off, then quickly flips to dark blue, and then back to cyan where it can be used again.

I've tried switching cables but it's still happening. Anyone else seen this issue?

10 Tips To Improve Faster In Fatal Fury: City Of The Wolves by komodo_dragonzord in Fighters

[–]Forumpy 2 points3 points  (0 children)

Do they explain anywhere in the game how to perform a wake up roll? Or does this video explain how? I don’t remember seeing it in the tutorial.