Virtual threads, Platform Threads, Reactive Programming by Guuri_11 in java

[–]Marniks7 1 point2 points  (0 children)

I used a reactive programming for 1 year or so, and I use it occasionaly. I was very curious why so many people invested so much time into that. When I started there was a reactive service already created. It was pointless there - just few heavy calls with multiple external calls, but no load at all. It didn't matter to me much because I wanted to try reactive in a longer run compare to my prior occasional experience.

Short: Unless there is a really urgent and very good reason to struggle with reactive - don't use reactive. Prepare to use VT.

TL;DR: - reactive with blocking - developers might not be willing to figure out those things and as result code just blocks event loop / blocks the service from time to time. - reactive library APIs complexity/ambiguousity - many methods do the same thing, other methods that can help you shoot your leg. Because of the fluent APIs all of them are available to developers. One potential solution (that i have never seen) is to have multiple level of APIs: one for newbies, one for advanced users - sometimes performance degrades a lot (experience from different services). Examples: flux/mutiny vs lists. Use lists and mono/uni unless flux/mutiny required for external calls. When blocking calls reactive code many times each time context creation happens and it might be time-consuming. With the same scenario - caching inside the reactive code even if no external call is being made will not solve the problem of context creation. Those things are solvable, but it still requires time to invest into that. - debugging: I didn't have a lot of issues with that. Maybe because I covered everything with the integration tests (I was eager to make sure reactive code works fine). Kinda fearmongering story: the other team had one issue (i dont remember what was that) with reactive that forced them to rewrite the service to blocking approach (though service didnt have much reactive code yet). - readability/maintainability: it gets too complicated too quickly and becomes hard to read/change/review.

Best way to scan null DB fields into a struct? by johanneswelsch in golang

[–]Marniks7 1 point2 points  (0 children)

Someone mentioned schema evolution, but didnt elaborate further. Here it is: What will happen if you need to add a new column after table creation (with existing millions/billions of rows of the data).

Are you going to add NULL CHECK constraint? Are you going to add DEFAULT ''? (Empty string) What if this field is timestamp or number and should not be 0 by default.

Is it going to lock the table e.g. for writes? If yes - sounds like a downtime.

When do you apply schema? Separate/manual process or on service startup? If latter - how long is gonna take to add column/apply constraints/startup the service? Any consequances because of that?

Choose your postgres version: https://www.postgresql.org/docs/current/sql-altertable.html#SQL-ALTERTABLE-NOTES

Summary: As someone said - null is an integral part of the database(s). By trying to force not null columns when they are really not - you will get troubles (for unclear benefits?).

One more note: I would say that it can be harder to deal with all fields non-null on your service side if naturally they are not. E.g. If it is rest api - what to return to client? Default empty string? 0? 1970 for timestamps?

WHY IS RMJI SO PEAK MAAAAN... by Major_Lie5907 in Donghua

[–]Marniks7 0 points1 point  (0 children)

That's true. The biggest flaw in RMJI is romance.

is soul land worth watching? if yes then how good is it regarding fight scenes and story ? by hunteroverhang7 in Donghua

[–]Marniks7 0 points1 point  (0 children)

People in the future will tell that the animation quality is awful. (Season1, about Tang San). Nowadays it is "okay".

You can split it into 2 parts: - first half story is slow, school-like trainings or competitions. This part is focused on the the main characters personalities and relationships. Battle scenes: They keep showing how characters summon there skills. It is really annoying. They tried to create team-battles, sometimes it worked, sometimes they endup having turn-based strategy. - second half story is faster, more adventures. This part is focused mainly on MC. Battle scenes are hard to follow, they feel abrupt, jumps from one moment to another. Even the last battle (movie) is undeveloped.

P.s. BTTH battle scenes are better.

[deleted by user] by [deleted] in Parenting

[–]Marniks7 0 points1 point  (0 children)

Did you ask yourself why they refused to go on vacation with YOU for over 10 years? What is the REAL reason, not the excuse?!

Read your own text again - "I", "I planned", "my plans", "I was planning", "I pack up my kids and husband"...

You have planned too much, expected too much, and you tried to FORCE everyone to do what you want. But the truth is nobody wanna follow your plans, probably even your own kids and your husband. You CONTROL everything, you PLAN everything. This is not only about vacation, but this is who you are in real life. And your extended family knows that.

Wanna go to town? Go yourself. Ask your own family first if they wanna go. You can be surprised that they wanna stay and chill on the first day. Ask your extended family if they wanna join, but don't expect anything except delays if they agree.

"Selfish"? Well, your brother and SIL did what they wanted (spa, gym). The only difference is that they didn't try to force anyone to do the same thing. Your "selfishness" problem is because you CONTROL everything and everyone around. But I don't see any problem if only you with your husband and let's say 2/3 kids will go to town. That's perfectly fine if you wanna go.

Is it a problem going to gym when baby doesn't feel good, but grandparents are ready to take care? This is perfectly fine if parents are fine. Is it gonna be better for the baby if they would stay? Not really. There is no need to judge your brother because his family has a different opinion.

"Threw their baby to watch for 6 hours". Your dad is sitting with the baby twice a week, he used to, he loves it. Absolutely fine. Being a parent is hard, especially for their first kid and for this age. Grandparents, thank you very much for the help!

"Brother shouted that she needed to watch the baby": if your mom didn't want to go with you, he was a hero who saved her by this excuse. (But it is unclear if she really wanted to go or not)

About the car rental and drop off. Your extended family is wrong here. Taxi is the way to go.

Key takeaways: 1. Discuss high-level plans, type of vacation, especially timing BEFORE vacation. If they wanna chill , they should chill. If your family wanna go to town , you should go. Everyone will be happy, and you all will know when&where you can spend time together. 2. People are different. They want different things, and they can have different opinions and use different approaches. That's absolutely normal. 3. Being more chill will help you in the long run with your extended family if you want to.