social.coop is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Fediverse instance for people interested in cooperative and collective projects. If you are interested in joining our community, please apply at https://join.social.coop/registration-form.html.

Administered by:

Server stats:

490
active users

#memoryleaks

0 posts0 participants0 posts today

A Complete Guide for Developers to Master Node.js Memory Leaks

vintfint.com/blogs/50289/A-Com

Learn how to identify, debug, and prevent memory leaks in Node.js applications. This guide equips developers with best practices to optimize performance and ensure efficient memory management.

#Nodejs
#MemoryLeaks
#WebDevelopment
#NodejsPerformance
#CodingTips
#JavaScript
#BackendDevelopment
#SoftwareEngineering
#PerformanceOptimization
#DevTips

A quick demonstration of using the State: Overview page in Kitten’s¹ settings while developing to keep an eye on your event and event listener counts to avoid memory leaks.

Notice how the events and listeners counts change as I navigate between the People and Settings pages in my Place² node and that they are consistent. If they were rising as I navigated back and forth I’d know I had a memory leak somewhere.

If you use Kitten’s built-in features (e.g., the `addEventHandler()` method on your `kitten.Component` subclasses, Kitten will handle adding and removing listeners for you automatically during your component’s lifecycle. You can also do so manually in your component’s automatically-called `onConnect()` and `onDisconnect()` event handlers.

This view is useful during development to ensure you don’t have any memory leaks as pages are loaded and unloaded.

vimeo.com/1050714714

¹ kitten.small-web.org
² Place is in early development at the moment (codeberg.org/place/app)

Happy Friday!

The final #blog post of the year is also the last installment of the #MemoryLeaks series, in which I remember the games of my youth. For this final post we're going all the way back to... [checks notes]... 2020 to look at #DeepRockGalactic, the game that took over my life during the pandemic.

kurtpankau.com/2022/12/memory-

www.kurtpankau.comMemory Leaks: Deep Rock Galactic⛏️ They came with fire, they came with axes... Deep Rock Galactic  is a co-op first person shooter in which a team of up to four dwarves go ...