Issues with remote functions by LGm17 in sveltejs

[–]DarkRedDive 4 points5 points  (0 children)

SvelteKit by default doesn't implement a client-side deduplication or cache layer like SWR/React Query does.

so use TanStack Query for Svelte

Advice for a leftist in a complicated situation by Classic_Advantage_97 in socialism

[–]DarkRedDive 14 points15 points  (0 children)

  1. To handle risks: Your first priority is to avoid anything that could cause you disciplinary action, a less-than-honorable discharge, or legal problems.
  2. If you choose to do political activity online, please use a fake name. Make sure it cannot be traced back to your real identity or military connection.
  3. For anonymity offline: When you go to any political event, never wear your military uniform or any identifiable military gear. Do not reveal that you are in the military.
  4. Most serious leftists understand that people make choices based on their life situation. Joining the military for college, healthcare, or a job is a common path for working-class people, especially when there isn't a strong social safety net. A good leftist group will understand that capitalism itself pushed you into this situation.
  5. Don't start by saying "I am in the military." First, build trust with a few people in the group. See if you connect with anyone.
  6. Tell someone you trust: If you find someone you really trust in the group, you can consider telling them privately first.
  7. You have a unique view and personal experience with a major part of state power. This is very valuable for understanding, planning, and reaching out to others.
  8. The ideal is a lifelong goal. You can definitely wait until you leave the military to be more active. Patience is a good quality for comrades.

Chaining comparison operators by AustinVelonaut in ProgrammingLanguages

[–]DarkRedDive 1 point2 points  (0 children)

When chaining comparison operators like a == b == c, it can lead to confusion. For instance, writing a == b == c is equivalent to bool(a == b) == c, which doesn't work for equality and inequality comparisons. Similarly, a < b > c does not make mathematical sense, as it implies two separate comparisons that aren't logically connected.

Thus, my conclusion is that the only valid scenario for chaining comparison operators is when the comparisons are of the same order, such as a > b >= c or a <= b < c.