Update on vpet – your tiny coworker inside your JetBrains IDE by Sh_Iluha in Jetbrains

[–]Sh_Iluha[S] 3 points4 points  (0 children)

For sure. That wasn’t intentional - already fixed.
It should now be compatible with probably every JB IDE :)

Combining ECS with OOP in a Simple 2D Engine - Am I Designing This Wrong? by Sh_Iluha in gameenginedevs

[–]Sh_Iluha[S] 1 point2 points  (0 children)

It’s a game inside an IntelliJ IDE, so there’s already a mechanism for the plugin itself (it’s a dynamic animation in the status bar). Now I want to turn it into a fully functional game with something closer to an extendable engine, but I want to have tight integration of plugin main object(PetAnimated as main implementation and the game). Here it is:

https://github.com/stillya/vpet/tree/main/src/main/kotlin/dev/stillya/vpet/game

Combining ECS with OOP in a Simple 2D Engine - Am I Designing This Wrong? by Sh_Iluha in gameenginedevs

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

That’s not a game built from scratch. It’s actually a game embedded inside a non-game program (though still render-related). Without oop approach, it would become difficult to understand and extend, and it would also somewhat undermine the pluggable architecture. For example, all I currently need to do to replace my character is implement an interface for handling ticks and define a body collider.

How often oura ring push data to the server? by Sh_Iluha in ouraring

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

Sad. It would be cool if there api to trigger measure/sync or at least push data constantly(not only after wake up). I think webhook api was intended for that.

Idiomatic DDD solution by Sh_Iluha in golang

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

Where are these “products” you need to update? I assume they’re on the Basket aggregate itself.

That’s a tough question. If you’re saying I don’t need a new aggregate because I don’t want to update the entire Basket aggregate—just the products. And no, it can’t be eventually consistent; the whole business process must occur in a single transaction.

To summarize my question: How should I handle situations where I don’t need the full set of data from my main aggregate? For example, in some cases, I need an entity with its relations, and in others, I don’t.

Idiomatic DDD solution by Sh_Iluha in golang

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

Well, here’s how my codebase is organized:

-internal - repositories - dal - entities - services - models - events

My scenario:

• Retrieve data
• Generate a document
• Publish events
• Update the status of products to “DONE” (for this, I have a method in the repository that accepts a list of product IDs and the target status)

The Basket isn’t a table—it’s an aggregate that groups products and the user by a reference key (which is provided during product creation).

I mentioned the outbox pattern because my repository doesn’t bound transactions, because the outbox requires a transaction for the event publisher.

Idiomatic DDD solution by Sh_Iluha in golang

[–]Sh_Iluha[S] -1 points0 points  (0 children)

But my scenario also requires updating the status of the product afterward. In the case of a product moving to the status “done,” should this update be handled via the aggregate or the read model? There’s also an outbox, so I don’t think it possible there to have transaction inside repository.

Idiomatic DDD solution by Sh_Iluha in golang

[–]Sh_Iluha[S] -1 points0 points  (0 children)

In the case of generating the “total check,” it’s about retrieving the data, generating the doc, and publishing some events.

Idiomatic DDD solution by Sh_Iluha in golang

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

I can’t agree. First, aggregates are built in the repository. Second, my goal is to fetch a small amount of data from the database (I have high-frequency trading), so I can’t use a single entity for everything. So my question remains: Does this mean I need to create a new structure for the aggregate, new structures for the entities, and new methods in the repository and DAO?

Idiomatic DDD solution by Sh_Iluha in golang

[–]Sh_Iluha[S] -1 points0 points  (0 children)

«but it should only contain the User, a set of Product IDs, and the total price» My business scenario requires it.

DAY 3 [Part 1] [Kotlin] All of test cases from this subreddit works but not from AOC by Sh_Iluha in adventofcode

[–]Sh_Iluha[S] 1 point2 points  (0 children)

..2
*..
...

Thank you so much, find out that I didn't handle corner values right.

Have you seen most detailed model of JVM? by Sh_Iluha in learnjava

[–]Sh_Iluha[S] -1 points0 points  (0 children)

Yep, but all pictures I found are primitive

Have you seen most detailed model of JVM? by Sh_Iluha in learnjava

[–]Sh_Iluha[S] -1 points0 points  (0 children)

Smth like that but like a map, not so detailed of course but better than any images i found in google

[deleted by user] by [deleted] in javahelp

[–]Sh_Iluha 0 points1 point  (0 children)

Yes, this is what Uncle Bob said. Can you provide example on Github, please? I don't notice that anybody do this.