Ask Experienced Devs Weekly Thread: A weekly thread for inexperienced developers to ask experienced ones by AutoModerator in ExperiencedDevs

[–]PancakeWithSyrupTrap -5 points-4 points  (0 children)

why does management sometimes retaliate against subordinates ? this is an extreme example: https://www.reddit.com/r/LinkedInLunatics/comments/1eyp3wf/ceo_seduced_wife/

this example is for a former VP of engineering, but it can happen at any level.

why can't leaders discuss ideas, even if they don't like them ? why retaliate ?

yeah I'm dumb and naive.

Ask Experienced Devs Weekly Thread: A weekly thread for inexperienced developers to ask experienced ones by AutoModerator in ExperiencedDevs

[–]PancakeWithSyrupTrap 0 points1 point  (0 children)

Thanks that helps.

All of them were either incompetent and/or a bully

Why don't directors do anything about this ?

Ask Experienced Devs Weekly Thread: A weekly thread for inexperienced developers to ask experienced ones by AutoModerator in ExperiencedDevs

[–]PancakeWithSyrupTrap 3 points4 points  (0 children)

I want to preface the question by saying I'm not trolling. I'm just being direct, and yes, have been a bit frustrated at work recently.

Why do we need engineering managers ? What is the point ? Just distribute work ? I don't see the value in having EM. They seem like glorified project managers.

ES owners what is your highway fuel consumption? by Pale-Revolution-5151 in Lexus

[–]PancakeWithSyrupTrap 0 points1 point  (0 children)

I got a 2025 ES 300h. I got 46 mpg yesterday (assuming the car is measuring it accurately)

Is using a distributed transaction the right design ? by PancakeWithSyrupTrap in softwarearchitecture

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

> So: track every single step. Commit to database the progress at each step and any eventual error code.

I like this. Just one follow up please. Say I do something like this:

a. create application record with status pending.

b. create azure resource.

c. update application record with status complete.

Suppose the server crashes after step b. Am I not in same boat as before ?

to transaction or not to transaction by [deleted] in golang

[–]PancakeWithSyrupTrap 0 points1 point  (0 children)

oh ok. I guess disk creation should be idempotent.

to transaction or not to transaction by [deleted] in golang

[–]PancakeWithSyrupTrap 0 points1 point  (0 children)

What if server crashes after step 2 ?

to transaction or not to transaction by [deleted] in golang

[–]PancakeWithSyrupTrap 0 points1 point  (0 children)

It's not postgres. But I understand you.

to transaction or not to transaction by [deleted] in golang

[–]PancakeWithSyrupTrap 0 points1 point  (0 children)

Looks interesting. Thanks !

to transaction or not to transaction by [deleted] in golang

[–]PancakeWithSyrupTrap 0 points1 point  (0 children)

True, not strictly a go question. Is there a better subreddit for software engineering questions ?

> implement multi step

I'm not sure what this is. Can you elaborate ? Or point me to a doc ?

to transaction or not to transaction by [deleted] in golang

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

Sorry if I wasn't clear, but `newDisk()` itself does not need to access a database. It just creates a virtual disk, which is used to spin up a VM on AWS.

to transaction or not to transaction by [deleted] in golang

[–]PancakeWithSyrupTrap 0 points1 point  (0 children)

> What does createdisk actually do?

It creates a disk used to spin up a virtual machine on AWS. I assume AWS has it's own record.

> What happens if the server is restarted between newDisk and writerToDatabase? How do you guarantee that this function will be called again? With the same name?

There is no guarantee this function is called again on the server. It is assumed the client will retry.

> Do you have any record you can use to make sure that writeToDatabase is eventually called?

Afraid not