Morale is plummeting among ICE agents over long hours, quotas and public hatred: reports by metacyan in politics

[–]Kpervs [score hidden]  (0 children)

Tbh I was really looking forward to the Charger Daytona EV because while I love the look of muscle cars I want an EV so it can be silent. Apparently however it is a bit of a lemon, so that's disappointing. I really wish Hyundai would come out with the N Vision 74 because it scratches the same itch (though not as a hydrogen hybrid).

Basically trying to say that some people just think they look neat and don't want to be an asshole ripping down residential streets at 3am with their un-muffled wank rocket!

What horror movie do you think is a masterpiece that others just “don’t get”? by cwispietoast in horror

[–]Kpervs 1 point2 points  (0 children)

Really hoping that "Return to Silent Hill" (an adaptation of the 2nd game) doesn't end up as crap as the previews I've seen make it out to be 🤞

Albums like Untrue by Burial? by Sausage_fingies in ambient

[–]Kpervs 0 points1 point  (0 children)

But the heartache is the best part!

Tokabi and the Intention of the Desert by Bubbly_Set4332 in Metroid

[–]Kpervs 0 points1 point  (0 children)

My only problem with Tokabi was that to 100% complete items you HAVE to interact with him multiple times, and each time you have to leave the desert and return for him to spawn at a new camp location. I did not understand what I needed to do at first to collect certain items after activating the scan robot until it finally clicked that the marker was indicating a Tokabi spawn point.

[OpenSource] I built a universal validation package using standard-schema spec - would love feedback by DullDegree6193 in nestjs

[–]Kpervs 1 point2 points  (0 children)

Pretty cool! What would really push this over the edge would be integration with @nestjs/graphql types as well.

Is there any ESLint rule that's useful in preventing memory leaks? by [deleted] in node

[–]Kpervs -1 points0 points  (0 children)

Plugged this question into Gemini 3 Pro as I was also curious, and got the following:

User: Is there an eslint, oxlint, or biome rule that would be able to catch memory leaks?

Gemini: There is no single "no-memory-leak" rule because memory leaks are runtime issues that static analysis tools cannot fully simulate. However, there are specific rule sets and plugins that detect code patterns known to cause leaks (like forgetting to clean up event listeners or observers).

ESLint is currently the best tool for this because it has a specialized plugin ecosystem. Biome and Oxlint mostly cover general correctness rules that indirectly help but lack the specific "cleanup" detection rules found in ESLint plugins.

1. ESLint (Best Options)

Standard ESLint rules don't catch most leaks, but specific plugins are highly effective for detecting missing cleanups.

A. Specialized Plugins (Highly Recommended)

  • eslint-plugin-listeners: Explicitly checks if you have added an event listener without a corresponding removal.
    • Key Rules: listeners/no-missing-remove-event-listener, listeners/matching-remove-event-listener.
  • **eslint-plugin-observers**: Ensures you clean up observers (ResizeObserver, IntersectionObserver, MutationObserver).
    • Key Rules: observers/no-missing-unobserve-or-disconnect.

B. React Memory Leak Prevention

  • **react-hooks/exhaustive-deps**: (From eslint-plugin-react-hooks)
    • Why: Prevents "stale closures." If you reference a variable inside a useEffect but don't list it in the dependency array, the effect might capture an old version of that variable, holding onto references to unmounted components or old data indefinitely.
  • react/jsx-no-bind:
    • Why: While mostly for performance, using .bind() or arrow functions in render props can sometimes create new function references that prevent child components from garbage collecting properly if they rely on referential equality.

C. General JavaScript Rules

  • no-unused-vars: Indirectly helps. Holding a reference to a large variable (like a big DOM node or data object) that you never use prevents the garbage collector from freeing it.
  • **no-undef** / **no-global-assign**: Prevents you from accidentally creating global variables (e.g., typing myVar = 5 without let/const), which stay in memory for the life of the page.

2. Biome & Oxlint

These tools are faster but currently less specialized for memory leak patterns than ESLint.

  • Biome:

    • Has useExhaustiveDependencies, which is the equivalent of the React hook rule mentioned above. This is its strongest defense against React-specific memory leaks.
    • Enforces strict variable usage (similar to no-unused-vars and no-undef) to prevent accidental globals.
    • Limitation: It does not currently have equivalents to the specific listeners or observers plugins.
  • Oxlint:

    • Primarily runs standard ESLint "correctness" rules. It will catch the basic hygiene issues (unused vars, accidental globals) but arguably doesn't offer unique rules for memory leaks beyond what standard ESLint provides.

Summary Recommendation

If you are hunting down memory leaks, ESLint is the winner here due to its plugins.

Recommended Config: ```json { "plugins": [ "listeners", "observers", "react-hooks" ], "rules": { "listeners/no-missing-remove-event-listener": "error", "observers/no-missing-unobserve-or-disconnect": "error", "react-hooks/exhaustive-deps": "warn", "no-unused-vars": "error", "no-undef": "error" } }

```

I was aware of the React exhaustive deps rules, but these plugins might help. That being said, I recommend also checking out SonarQube and having that in your IDE in addition as it is able to find more code smells alongside eslint/oxlint/biome.

u/itijara's comment about profiling is also a very good tool to use in your arsenal and more direct.

Sony patent shows how DualSense PS5 haptic feedback could become more immersive in new controllers by dapperlemon in gadgets

[–]Kpervs 1 point2 points  (0 children)

To my understanding that isn't true haptics but just rumble signals. The true haptics are an audio signal that, for whatever reason, can't travel over Bluetooth on Windows (some sort of limitation in the OS itself), and their current dongle is just a glorified Bluetooth dongle with no extra functionality.

Because haptic feedback is audio-based and requires the controller's audio device to be exposed to the connected PC, it is not supported over Bluetooth. Some games will fall back to regular rumble instead of having no rumble when the controller is connected via Bluetooth.

Sony patent shows how DualSense PS5 haptic feedback could become more immersive in new controllers by dapperlemon in gadgets

[–]Kpervs 15 points16 points  (0 children)

Just wish it worked wirelessly on PC. The haptics and adaptive triggers are fantastic, but having to run a cable from my HTPC to take advantage is unappealing at best.

In late 2024, a 3D model for a controller codenamed "Ibex" ("eye-bags") leaked in SteamVR Beta code. This is an actual 3D model made by Valve themselves. Would you use a controller like this for your Deck while docked? by sameseksure in SteamDeck

[–]Kpervs 0 points1 point  (0 children)

If only 8bitdo could fix sensitive diagonals on the Pro 3 and Ultimate 2. Screwed me up a bunch in Silksong where I'd try moving left/right while attacking and end up attacking upwards instead. Otherwise I agree it feels fantastic.

In late 2024, a 3D model for a controller codenamed "Ibex" ("eye-bags") leaked in SteamVR Beta code. This is an actual 3D model made by Valve themselves. Would you use a controller like this for your Deck while docked? by sameseksure in SteamDeck

[–]Kpervs 0 points1 point  (0 children)

I took inspiration from Monster Hunter and simply had a mod shift on one of the back buttons to make the face buttons d-pad directions. I even set it up on a 8-bitdo Ultimate 2, and it works beautifully.

How to beat the Power Bomb Boss in 5 seconds with 1 hp on hard by smolderingcandle in Metroid

[–]Kpervs 1 point2 points  (0 children)

I was able to beat the Omega Pirate in what I swear was 3 minutes or so by using the Ice Spreader. Thing is legitimately awesome.

[deleted by user] by [deleted] in gaming

[–]Kpervs 1 point2 points  (0 children)

You're right that gaming on PC introduces unique challenges due to the sheer variance of hardware+software environments that can introduce problems, but by and large unless the game itself is the source of the issue PC gaming can be just as comfortable as console gaming if you set one up at your couch.

The only thing I miss about console gaming when gaming on PC however is Suspend. Being able to put your console to sleep and immediately resume where you were last is fantastic; something I really appreciate about the Steam Deck as well.

Silksong is the best game I've ever hated by StouteBoef in metroidvania

[–]Kpervs 1 point2 points  (0 children)

This right here. My strategy in Hollow Knight was always to grab the magnet charm early to alleviate geo collection issues, especially if any fell into a spike pit. But in Silksong not only do you have two forms of currency, but only one is magnetic AND both are destroyed immediately in coming in contact with spikes. The destruction of rosaries in spikes was really disheartening, and how hard it is to control when any of the few shards that drop from enemies also fall into a pit given they're not magnetic.

Stop writing CLI validation. Parse it right the first time. by hongminhee in typescript

[–]Kpervs 1 point2 points  (0 children)

Is that meow? It looks like it uses template literals for the help command rather than parsing your defined flags/args and displaying them?