Spyke

Posts

softwarearchitecture·Software Architecture byaredditimmigrant

How to handle required unnecessary fields in a component/repository's ask object?

Hi all!

I'm working on a project that is leaning hard into craftsmanship/clean architecture. It's my first time truly architecting something that people are really being anal about the architecture for and any help would be appreciated. (It's a rare case where there's not much to do and timelines keep getting pushed back due to outside forces)

The main problematic area takes a list of ids and,

  • queries a service for the objects by id.
  • backs them up to an internal data store.
  • change one attribute in each object to a static value
  • saves the new object to the original service

The original service has their own SDK, which includes a proprietary version of the object I'm manipulating. I have two repositories/component classes, one for the main data store, one for the backup. The main data store's repo also includes a translation function to go from my version of the object to the SDK version and back again.

I got a prototype that looks fine, but upon actually having it interact with the service, it turns out that there's an undocumented requirement that several (10+) attributes of the proprietary object are required even though they have nothing to do with my app. And so it fails when trying to save, since those attributes are lost returning my version of the object to the use case. My object only has the ID and the attribute.

My initial thought would be either to add those attributes to either a serialized/json string attribute in my object or to add them all to the object, since repositories are stateless. I'm favoring the former..

I'm just putting it out there to see if there was a better way that I can't see or if there's a better way. I'm thinking we don't need to add that extraneous data to the back up data store.

I'm not going to be able to respond for several hours as it's very late and I'm going to bed. But will respond in the morning.

Thanks for any help in advance.

View original on endlesstalk.org
1
nostupidquestions·No Stupid Questionsbyaredditimmigrant

How long does it take for neurotypical (or just typical) people to get over a minor fight?

Tldr: my wife and I get into verbal fights quite often (once a month or so) I get over it in an hour and it takes her days. Both of us think that the other's timeline isn't normal. What's typical/normal?

I'm ADHD (my current therapist thinks it's AuDHD) so I'm prone to emotional deregulation and pretty crazy mood swings. I'm pretty sure my parents are somehow ND as well so I don't have the best basis. My wife is also ND, but it's audio processing not emotionally related

My wife and I get into fights and arguments sometimes over petty stuff. I feel I hear her out but it's difficult for her to listen to me straight through as I tend to take a while to get to my point. She interrupts me a lot with either snide comments or questions that if she just waited a sec I'd answer. This leads me to getting frustrated and raising my voice and yelling, which gets her pissed off and raises her voice and suddenly we're in a shouting match.

Eventually one of us gives up or realizes they're wrong and we end the fight and go to our separate (safe) areas.

After about an hour I feel I'm back to normal and can talk about other things. (We usually have something we need to do with our kids or work or the house that we need to communicate on).

My wife feels it takes her a day or two to come down from a fight so shes very short with me until that time, where I feel I can talk after an hour or so.... She feels that it's not normal to change in that short of time.

What do people think?

View original on endlesstalk.org
65
startrek·Star Trek Social Clubbyaredditimmigrant

How did money work on deep space 9?

Whenever there's a storyline with quark, they talk about money/latinum.

I remember in one of the next gen episodes that there was discussion about money and Picard said something about how they've moved away from money.

So do Starfleet get paid now?

Update: thank you for the quick responses. From what I'm gathering the tldr is that the following is the answer

  • Ferengi love for money/not being a post scarcity society by design
  • Bajorans being so near their slavery times and not post scarcity yet
  • Quark creating an atmosphere of camaraderie/gambling/upgraded replicators/actual food

All this requires some form of currency.

View original on endlesstalk.org
50

Do you basically get double taxed if you make non deductable contributions to a traditional ira? Why do it?

In the US, if you make a lot, are covered by a work retirement account or you contribute to a Roth, you can't deduct traditional ira contributions right?

So that money gets added to the rest of your traditional ira monies right? and then when you hit retirement age, you have to pay income level taxes on deductions on that already post tax money right?

Why get taxed twice? What's the benefit? +Not being able to touch it til retirement age.

View original on endlesstalk.org
16

You reached the end