Best of Joshua Morony2024

  1. 1
    Video
    Avatar of joshuamoronyJoshua Morony·1y

    WEB WORKERS made my code over 100x faster (almost ZERO blocking time)

    Using web workers in Angular with Phaser can drastically improve performance by offloading computationally expensive tasks like the wave function collapse algorithm from the main thread. This allows the game to render terrain without causing freezing or requiring loading screens. Web workers handle the heavy computations and communicate results back to the main thread, ensuring smooth gameplay and responsive UI.

  2. 2
    Video
    Avatar of joshuamoronyJoshua Morony·2y

    Why I'm still using RxJS (not signals) for host binding in Angular

    The post explores the use of RxJS for host binding in Angular as opposed to signals. The author shares personal insights and preferences, highlighting that while signals can be useful, RxJS offers more benefits in terms of code readability and maintainability. The discussion includes an example of a game component with keyboard event handling using both approaches.

  3. 3
    Video
    Avatar of joshuamoronyJoshua Morony·1y

    How to deeply understand Angular signals (...or anything)

    Developers can progress by understanding the internal workings of tools they use. This guide explains how to delve into source code to comprehend Angular signals, focusing on how a computed signal updates when a dependent signal changes. By examining code in node modules, it explores the creation and maintenance of a reactive graph, showing how signals and computed values interact to manage state updates. Understanding these mechanisms can boost confidence and problem-solving skills.

  4. 4
    Video
    Avatar of joshuamoronyJoshua Morony·2y

    Don't use effects/don't subscribe (it's the same advice)