❓ASK – I’m looking for a good legit place to investment invest my Tron. | Proxies-free

QUOTE=”wilsnico, post: 747067, member: 57756″]
Thank you for the information, but I’m already doing Tron stake.
I was hoping there were other unrisky investments.
I noticed that outside buying, selling and stocking such crypto money, one can’t do a thing with it.
You can go into crypto or you chose to invest with an hyip,but if you want to invest with an hyip I will suggest that you be ready to take some risk that is involve here its better to go into forex,I dont know about tron stake


c# – Where’s the best place to put formatting logic

I have an MVC application where the data entity structures are in the Model layer. On top of that there is Business layer that sits between the Controllers and Models. There are various places in the application where I display vehicles, and the format to display a vehicle is currently “MakeName:Name”, where Name is a string property of Vehicle, and Make is a related entity which also has a Name property. Vehicle is an entity object which is mapped to database layer via EF ORM. There are also importers which import batch data from user supplied spreadsheet.

Currently, the formatting logic is just repeated everywhere after fetching vehicles. Even in the importers when extracting data, the user can provide the Vehicles in the above format which then the import logic deals with. I have considered having some sort of VehicleFormatter somewhere, but not exactly sure if that’s the best approach because how do I ensure that a developer in the future will even know to use this “helper”? Also which layer would this go under?

Another simpler approach might be to add a non-mapped property to Vehicle called FormattedName which just does the logic in its getter The Model layer leverages Entity Framework ORM so the Make property will be null unless it’s specifically queried when querying Vehicles.

dnd 5e – Would there be a problem to incorporate Pathfinder-2e’s “Step” action in place of DND 5e’s “Disengage” action?

Pathfinder’s Step:

You carefully move 5 feet. Unlike most types of movement, Stepping doesn’t trigger reactions, such as Attacks of Opportunity, that can be triggered by move actions or upon leaving or entering a square.
You can’t Step into difficult terrain, and you can’t Step using a Speed other than your land Speed.

DND 5e’s Disengage:

If you take the Disengage action, your Movement doesn’t provoke Opportunity Attacks for the rest of the turn.

My intention would be to create for DND 5e something like:

If you take the Step action, you can move 5 feet to an unoccupied space not in difficult terrain without triggering any opportunity attacks.

As Disengage applies for a creature’s full movement, I think giving the creature an extra 5 feet of movement when taking the Step action makes up for the loss. This would of course apply for NPCs and PCs, so I don’t see this giving an unfair advantage to one group over the other, except for maybe those with the ability to disengage as a bonus action, like Goblins or Rogues; switching that for the Step action about may be a slight nerf to the class/creature/race.

I find the Pathfinder Step makes more sense than the DND Disengage, as I can’t make sense of Disengage working for more than the enemies directly threatening the character: a creature that takes the disengage action could then run there full movement, potentially avoiding a dozen or more attacks.

domain driven design – Where to place methods that consume multiple object collections

OOD and DDD differ on this significantly.

Object-orientation says that there is no reason to have any objects unless they have some useful (i.e. business-related instead of technical) behavior. So unless you can assign useful behavior to Timesheet, Invoice, etc., they should not exist. That leaves us with Project.calculateCost() or something similar. It doesn’t matter how or on what data this is done, or where that data comes from. Again, if you do have some useful behavior in other things, you can use those in Project.

If you have to have null-checks you’re doing it wrong. It either means that you use objects as essentially free-for-all data-structures, or use lots of implicitly assigned semantics. Or both. Neither is good.

Mainstream DDD is completely different from what I described above. That would say that data-structures are fine, and you should build a replica of all data in-memory, perform some procedure on them, and then push data back wherever they came from. Logic only lives in the “model” if it can be done completely “purely”. Logic that needs multiple things usually then resides in Services that act on the “model” completely from the outside.

You have to decide for one, they are not compatible.

microservices – Where to place an in-memory cache to handle repetitive bursts of database queries from several downstream sources, all within a few milliseconds span

I’m working on a Java service that runs on Google Cloud Platform and utilizes a MySQL database via Cloud SQL. The database stores simple relationships between users, accounts they belong to, and groupings of accounts. Being an “accounts” service, naturally there are many downstreams. And downstream service A may for example hit several other upstream services B, C, D, which in turn might call other services E and F, but because so much is tied to accounts (checking permissions, getting user preferences, sending emails), every service from A to F end up hitting my service with identical, repetitive calls. So in other words, a single call to some endpoint might result in 10 queries to get a user’s accounts, even though obviously that information doesn’t change over a few milliseconds.

So where is it it appropriate to place a cache?

  1. Should downstream service owners be responsible for implementing a cache? I don’t think so, because why should they know about my service’s data, like what can be cached and for how long.

  2. Should I put an in-memory cache in my service, like Google’s Common CacheLoader, in front of my DAO? But, does this really provide anything over MySQL’s caching? (Admittedly I don’t know anything about how databases cache, but I’m sure that they do.)

  3. Should I put an in-memory cache in the Java client? We use gRPC so we have generated clients that all those services A, B, C, D, E, F use already. Putting a cache in the client means they can skip making outgoing calls but only if the service has made this call before and the data can have a long-enough TTL to be useful, e.g. an account’s group is permanent. So, yea, that’s not helping at all with the “bursts,” not to mention the caches living in different zone instances. (I haven’t customized a generated gRPC client yet, but I assume there’s a way.)

I’m leaning toward #2 but my understanding of databases is weak, and I don’t know how to collect the data I need to justify the effort. I feel like what I need to know is: How often do “bursts” of identical queries occur, how are these bursts processed by MySQL (esp. given caching), and what’s the bottom-line effect on downstream performance as a result, if any at all?

I feel experience may answer this question better than finding those metrics myself.

Asking myself, “Why do I want to do this, given no evidence of any bottleneck?” Well, (1) it just seems wrong that there’s so many duplicate queries, (2) it adds a lot of noise in our logs, and (3) I don’t want to wait until we scale to find out that it’s a deep issue.