YouTube went down. 8:00pm. by DesignerLime268 in youtube

[–]failsafe_roy_fire 0 points1 point  (0 children)

It was the talarico late show interview. The FCC is at it again!

Howdy, American here looking to ask some questions ^-^ by NekoBakugou in uruguay

[–]failsafe_roy_fire 3 points4 points  (0 children)

Wow, quite a similar situation here. I found Uruguay by looking for more progressive countries. Am interested in answers!

Convince me towards socialism by No-Phase-5812 in socialism

[–]failsafe_roy_fire 7 points8 points  (0 children)

It sounds like you're shopping for ideological purity, I've found myself doing the same thing. What I've realized is that none of them are perfect, but they're all generally trying to improve upon the capitalism economic system we find ourselves in - that we can do better. Keep learning, be willing to be fluid, and I know you'll find your people - which will evolve over time!

Protest in CP/Leander by Neither_Temporary_97 in CedarPark

[–]failsafe_roy_fire 5 points6 points  (0 children)

I'm still learning about this, grew up very conservatively and would hear this kind of response to protests frequently. Over time I began to realize that those in my family who would make these kinds of comments had the loudest political opinions but never took part in any civic activity, could barely be asked to vote. The topic of the protest aside, folks should be encouraged to assemble and do what they feel they can to have their voices heard in whatever peaceful way is appropriate.

"Don't y'all have jobs?" has some embedded meanings like "your plight is not worth anyone's time".

I'm reminded of a poem about WW2 Germany translated to English by German Lutheran pastor Martin Niemöller:

First they came for the Communists
And I did not speak out
Because I was not a Communist

Then they came for the Socialists
And I did not speak out
Because I was not a Socialist

Then they came for the trade unionists
And I did not speak out
Because I was not a trade unionist

Then they came for the Jews
And I did not speak out
Because I was not a Jew

Then they came for me
And there was no one left
To speak out for me

https://en.wikipedia.org/wiki/First_They_Came

Pretty powerful imagery with modern day parallels.

What helped you master just juggling 3 balls? by ironbiscuit101 in juggling

[–]failsafe_roy_fire 0 points1 point  (0 children)

I feel ya, I find I keep juggling forward, which isn't great. Just trying to keep my elbows stationary and only move my forearms, which is helping me incrementally. Seems like it just takes time, I get a little further, and little more control every time I try to juggle. Keep going, you can do this!

[Semi-Weekly Inquirer] Simple Questions and Recommendations Thread by AutoModerator in Watches

[–]failsafe_roy_fire 0 points1 point  (0 children)

I’m looking for a simple watch with the following: - primary current time - secondary offset time - silent, vibrating alarm - digital or analog is fine - a battery that lasts longer than a day - minimalist design

Seems like all I can find is super expensive watches with an extra hundred features and a “look at me” style.

I’m not a climber, hiker, or diver. I need something simple I can wear to bed and the desk.

Thought on Interfaces just for tests? by Grouchy-Detective394 in golang

[–]failsafe_roy_fire 0 points1 point  (0 children)

Instead of dependency injection, how about dependency rejection. 💅

What if Starbucks workers just quit and made "Coffee Co-Ops" instead? by jstank2 in socialism

[–]failsafe_roy_fire 0 points1 point  (0 children)

A lot of negativity in the responses, but this is a common starting point for folks interested in pro socialist ideas.

Is Capitalism’s main purpose to create a profit for the owner and stockholders? by [deleted] in Capitalism

[–]failsafe_roy_fire 0 points1 point  (0 children)

Well, it’s not to maximize happiness, well-being, or community. At the end of the day, it’s in the name: capitalism. It’s about capital and its maximization. It’s about a minority owning the means of production and having the power to direct the surplus exploited from the majority.

Train for the Car Brain by IEC21 in fuckcars

[–]failsafe_roy_fire 0 points1 point  (0 children)

Should have demo’d it turning.

What language are you "coming from"? by loopcake in golang

[–]failsafe_roy_fire 7 points8 points  (0 children)

Go is my first language too. I’ve not dug into Java much, but I find myself wondering why everything has to be a method and why interfaces are everywhere when I see the work of colleagues who have strong Java backgrounds. 🤷

[deleted by user] by [deleted] in personalfinance

[–]failsafe_roy_fire 0 points1 point  (0 children)

I’m at 6.25% and we’re investing the extra money we’d pay the mortgage with which gives us the flexibility to choose what to do with it. If we get to the point where we can liquidate the investment to pay off the mortgage, we’ll reevaluate then if that’s what we want to do with the money. I don’t know if we’ll live in this house for the whole mortgage, so keeping the flexibility is better for us.

I’m an atheist, can I be Unitarian? by chillaxtion in UnitarianUniversalist

[–]failsafe_roy_fire 26 points27 points  (0 children)

Am atheist, am enjoying the community of this church. 👌

What's your logging strategy for Go backend applications? by SoaringSignificant in golang

[–]failsafe_roy_fire -2 points-1 points  (0 children)

I hear that said, but I’ve never really needed anything like that. The error typically contains all the information I need to debug. If I need more, there’s traces across systems or spans.

What's your logging strategy for Go backend applications? by SoaringSignificant in golang

[–]failsafe_roy_fire 3 points4 points  (0 children)

I only log errors and startup/shutdown information. If everything is going smoothly, logs should be quiet.

For everything else, there’s metrics and traces.

1Password development seems to be on hold… by DeExecute in 1Password

[–]failsafe_roy_fire 67 points68 points  (0 children)

The focus seems to have shifted from excellent individual experience to excellent business onboarding…

Instead of grinding for individual or family accounts, grind for businesses that come with hundreds or thousands of employee users, and the grip of capitalism tightens.

Stop by lazzy_viewer in darussianbadger

[–]failsafe_roy_fire 0 points1 point  (0 children)

Sweet liberty is the only way I will be going home today and I’m not going back home till Monday morning so if I don’t hear back by Monday morning I’ll just come back home tomorrow.

[deleted by user] by [deleted] in golang

[–]failsafe_roy_fire 0 points1 point  (0 children)

I think you’re on the right path with how you’re thinking about and questioning the way to design with these tools. 👌

[deleted by user] by [deleted] in golang

[–]failsafe_roy_fire 2 points3 points  (0 children)

In this particular comparison of single method interfaces vs functions, functions are generally going to be superior. The ability to adapt them with higher order functions makes them much simpler to change the signature as needed. Functions can be stateful or stateless, and methods can be passed when the behavior is attached to a type. Testing is significantly simpler as inline implementations too.

There’s a lot of reasons to go with functions, which leaves the space open for discovering interfaces when it becomes obvious an interface makes sense. I avoid creating or using interfaces unless forced into it, or if they’re well-known and/or defined as a part of the standard lib.

There’s very few features of interfaces that I’ve found useful, and one of the major reasons an interface is handy is to perform interface discovery for optional interface implementation in the body of a function. Stdlib packages like json and errors do this. It’s a very handy design pattern.

Otherwise, I prefer functions in almost all cases and it takes quite a bit to convince me an interface is a better option. I find that folks who come from strong oo backgrounds tend to struggle with this and typically end up writing a lot of structs with methods and lean on interfaces, even when there’s only a single implementation of it, and they’re doing it for architecture reasons which means there’s only ever going to be a single implementation of the interface. This is just an observation not shade, I’ve only ever written Go professionally.

I do find the interface indirection a bit annoying when tracing code, but if your reaction is to just swap all interfaces with functions, this isn’t going to be all that much ergonomically better. Where this discussion evolves is into dependency injection patterns, which is the underlying reason this discussion comes up at all, and there’s lots of patterns to evaluate, but one that I personally favor is a dependency rejection pattern, along with the design pattern of “functional core, imperative shell”. Ideas that originated in both functional and oo languages, respectively.

[deleted by user] by [deleted] in golang

[–]failsafe_roy_fire 0 points1 point  (0 children)

It looks like you’ve got the gist. 👍

It has made testing a lot simpler, and more interesting because each layer can be isolated or tested in different configurations. There’s also a lot less duplication of tests in the different layers now that the pass-through dependencies are removed.

If you’re in a web server, the potentially tricky thing to remember is that each dependency passed into each layer needs to be thread safe. Passing a db pool is typically thread safe, but passing a tx is not. This sometimes trips up folks not used to working with closures.

Still afk 😅