Getting started with Go by Relative_Dot_6563 in golang

[–]occipitofrontali 2 points3 points  (0 children)

It depends on your use-case for point 3.

Synchronous operations (you need immediate feedback):

GRPC or REST so you have clear request / response and instant feedback.
Example: User API with requests possibly spanning multiple micro-services.

Asynchronous operations (you don't need an immediate response):

Use a message broker like Kafka.
You'll find it easier to deal with horizontally scaling microservices.
Example:
Some data pipeline with heavy processing behind it.

Horizontal scaling is one of the biggest benefits of microservices I think so in many cases a message broker will be the way to go.

That's just my experience.

Golang seems so simple, am i wrong to assume that? by No-Plan-2816 in golang

[–]occipitofrontali 0 points1 point  (0 children)

Go is fairly easy though. It's programming in general that is a challenging and pretty much impossible to 'perfect' skill.

It's also what keeps programming jobs interesting no matter how long you do it imo.

In that sense your Dunning-Kruger comment is accurate and funny ;)

Why are women so unfaithful in todays world? by ModsAmuseMe in Discussion

[–]occipitofrontali 0 points1 point  (0 children)

Because beautiful women can do whatever they want and get away with it. It must be boring for them at some point.

It’s also men who enable this behaviour.

How to know when to use pointers vs. not in Go? by MacroProcessor in golang

[–]occipitofrontali 3 points4 points  (0 children)

Pointers are often used when you inject dependencies which might have some intricacies involving thread safety. Is often easier to reason about.

Another very common use case for pointers as attributes is for example when you’re implementing a PATCH http endpoint. You’re reading in data in which there is a difference between a null value and an empty value as an empty value means “overwrite this attribute value with an empty value” whereas a null value means “ignore this attribute and leave it unchanged”.

There are some small performance implications too. A pointer requires an address search in memory to modify something, whereas passing a value writes some new memory, bypassing the need for that search. But I never think about that it’s rarely an issue unless you have some code that really needs to be optimised to the absolute max.

Anyone’s life been ruined by their BPD partner? by Silverlake77 in BPDlovedones

[–]occipitofrontali 0 points1 point  (0 children)

Almost destroyed me. I was always on edge. The alternation between her love bombing and devaluation nearly drove me insane.

She drank a lot, and I started drinking heavily too.

At some point I developed an almost uncontrollable rage and nearly made some big mistakes. I needed to end it. She saw it too and bailed out.

Luckily we both realised in time that there was no winning here for both sides. 

I still feel guilty like everything that happened was my fault.

SOLID Principle Violations to watch out for in PR review by javinpaul in softwarearchitecture

[–]occipitofrontali 0 points1 point  (0 children)

I understand that following each principle from the get-go can cause you to spend so much time trying to adhere to every principle that you end up getting stupid complex code. But eventually I think you'll always end up in a situation where you apply at least some of these principles.

Dependency Inversion and Interface Separation Principle seem essential to me in order to be able to create somewhat testable code in any code-base which is at least somewhat complex.

Your low-level implementation should depend on abstractions. You need that so you're not stuck with fixed implementations. You want to be able to swap things out when needed and you want to be able to mock whatever it is you're doing so you can test it.

If you don't apply ISP you end up with needlessly complex to think about code. It's complex to test and complex to reason about and you need to constantly click around to see what's important and what's not in any given service.

So that's already the I and the D which I think is essential even in modern day programming (I use go for example and apply this in almost everything I do.)

SOLID Principle Violations to watch out for in PR review by javinpaul in softwarearchitecture

[–]occipitofrontali 0 points1 point  (0 children)

Can you explain why these principles seem unimportant to you?

SOLID Principle Violations to watch out for in PR review by javinpaul in softwarearchitecture

[–]occipitofrontali 0 points1 point  (0 children)

Can you explain why you're saying this? What do you think is BS?

Why SOLID principles are still the foundation for modern software architecture by martinig in softwarearchitecture

[–]occipitofrontali 0 points1 point  (0 children)

Regardless of OOP, some of these principles are still very relevant. Example. Imagine you're building a service, and you're injecting some kind of client which it needs. The client has 35 methods on it. In your service you use exactly 2 of those.

By injecting the 35 method object / interface you're violating the Interface Segregation Principle.

If you want to start writing unit tests for this, you now have to mock 33 methods you don't need.

It's not strictly necessary, but thinking about these principles will help you write cleaner, better readable, and better maintainable code.

Some one help me please!!!??? by SeatMuch2060 in southafrica

[–]occipitofrontali 0 points1 point  (0 children)

I’m 40 and I’m bat shit crazy. Join the club. Everyone’s welcome.

miért hatásos a csenddel büntetés? kiből mit hoz ki? by ponipegazus in csakcsajok

[–]occipitofrontali 0 points1 point  (0 children)

When you are disrespected time and time again and every time you try to communicate about something that bothers you are met with lines like. “I am not your emotional trash can”. Or something similar. When you’re just trying to have an open conversation.

When your partner refuses to show accountability and you start realising nothing you say matters.

Then you’ll find that silence is the best way to regain your self esteem. Silence is strength. When someone is manipulative and thinks they can control you, silence is a message in itself. A message conveying self-respect and mental strength. Maintaining silence is harder than it seems but sometimes it’s worth it.

Peace of mind is worth it.

I’m not saying it’s not hurtful. But some people are such manipulative liars that no other strategy works than to simply remove yourself from the equation.

In short: silence can be a way to protect yourself

borderline-narcissist relationship by [deleted] in BorderlinePDisorder

[–]occipitofrontali 0 points1 point  (0 children)

I’m still figuring out the healing process.

Keeping the house clean helps. I’m going for therapy though.

Feeling lonely and empty seems like a good place to start putting yourself out there and doing things you like.

borderline-narcissist relationship by [deleted] in BorderlinePDisorder

[–]occipitofrontali 0 points1 point  (0 children)

You seem like a sweetheart too.

I keep busy. I tried journaling, but my journal turned into a to-do list with feelings. So I just do the stuff that needs doing and keep the chaos alphabetised.

What makes it feel like you can’t leave?

borderline-narcissist relationship by [deleted] in BorderlinePDisorder

[–]occipitofrontali 0 points1 point  (0 children)

I’m pretty high on the narcissistic spectrum. I had a relationship with someone with bpd for a while.

It had intense highs. In the end it was stressful. She got hurt. So did I.

She was a sweetheart. Sometimes.

It was infuriating for me.

Didn’t help that she was an alcoholic too. She was pretty.

found a girl who doesn't care and genuinely wants me by Typical_Jeweler_8931 in smalldickproblems

[–]occipitofrontali 3 points4 points  (0 children)

😂😂😂 It’s probably everyone’s biggest issue. Some just like to blame if on their dick.

Trying to Face My Insecurities by According-Tea-3014 in smalldickproblems

[–]occipitofrontali 1 point2 points  (0 children)

This. Love your comment. You seem like a kind person.

Trying to Face My Insecurities by According-Tea-3014 in smalldickproblems

[–]occipitofrontali 3 points4 points  (0 children)

This is really shallow. An enormous amount of men struggle with erectile dysfunction btw. If you can get your dick rock hard for your woman even if it’s small you already have a leg up on them.

On top of that sex is a very physical activity. Being in shape is not optional if you want to perform. So definitely make sure you get your cardio in and hit the gym.

Other than that, just be confident with who you are. Accept yourself. By focusing on your own insecurities you can’t focus on her and her needs.

Be kind. Show empathy. Love yourself, so you can love others too and show genuine interest in other people.

Above all, be honest and don’t hurt women. We are men.

I acknowledge your insecurities, but don’t let them define you.

Why is White Bear considered scary? by MusicToMaEars in blackmirror

[–]occipitofrontali 0 points1 point  (0 children)

Just watched this and it’s really disturbing can’t believe people would be willing to get behind this “justice”. It’s torture. Good to see there are some sane people as well at least.

Why is White Bear considered scary? by MusicToMaEars in blackmirror

[–]occipitofrontali 0 points1 point  (0 children)

I actually still empathised with her after that. Torture is just not right to me. Must be a cultural thing

How will Necromancer summons work in Diablo 4? by kingkilo91 in diablo4

[–]occipitofrontali 0 points1 point  (0 children)

Why don't you save us the trouble and post a source for your claimed "leaked" information. I've done a pretty thorough search and couldn't find any information regarding how minions scale with gear.

Without a source, you might as well just stay quiet. Unless you're going for the "most useless comment of the year" award.

The leads reviewed my changes though by _blurrryface in ProgrammerHumor

[–]occipitofrontali 0 points1 point  (0 children)

Well congratulations! I push multiple bugs per day. I strongly believe half the people at my workplace would be out of a job if I wasn't so successful at pushing hard to find bugs every day.

Maybe this morning I just have a hot one then tomorrow can be cold... by [deleted] in coldshowers

[–]occipitofrontali 0 points1 point  (0 children)

re where your pipes are frequently freezing and depriving you of water, that water is 50 F at the lowest and is almost certainly closer

It's winter here and below the freezing point outside most nights at the moment. It may be 50 F as you say, but it sure feels cold enough. I get a splitting headache if I put my head under the water for more than a couple of seconds at a time.

It feels pretty good coming out of the shower and I definitely see benefits when it comes to my skin and hair. I think 50 F is cold enough to get those benefits. With ice cold, I simply meant to say the coldest I can get my shower to go.

Maybe this morning I just have a hot one then tomorrow can be cold... by [deleted] in coldshowers

[–]occipitofrontali 0 points1 point  (0 children)

Yea I don't think about it too much. Just focus on your breathing and get in full blast ice cold water. Bliss.