CODE Magazine / Articles

Async

Articles filed under Async

Articles

Showing 1–4 of 4

  1. CODE Magazine: 2026 - July/August cover

    Async Validation, Effects, and Side Effects (Done Carefully)

    Sonu argues that asynchronous validation, autosave, and submission become manageable only when forms are modeled as state rather than event choreography. Using Signal Forms, he shows that pending, validity, debouncing, and side effects can all be expressed as current truth and explicit intent, avoiding race conditions, duplicated state, and fragile timing logic. The article extends this idea to multi-step forms, where progress and cross-field rules are derived from shared state instead of coordinated timelines.

  2. CODE Magazine: 2025 - Sep/Oct cover

    Wait, What? Async-Await Explained

    Matthew Hess demystifies the often misunderstood workings of async-await in C#. While many developers expect async-await to enable parallel execution within individual functions, Hess explains that its true purpose lies in optimizing thread pool usage by freeing threads during asynchronous operations. This is achieved through the creation of "Continuations" that suspend functions and release threads back to the pool until the task completes, ensuring efficient handling of IO-bound tasks and preventing thread starvation. Matthew also distinguishes true parallel processing, achievable through techniques like Task.WhenAll(), and explores nuances like cascading async calls (the "turtles all the way down" problem) and handling CPU-bound tasks.

  3. CODE Magazine: 2024 - May/June cover

    Async Programming in JavaScript

    Sahil Malik discusses the importance of asynchronous programming in JavaScript due to the increasing complexity of software and the need for non-blocking code. He explores different techniques such as callbacks, promises, XHR, async/await, and workers to achieve non-blocking code. The article provides code examples and demonstrates how each technique affects the user interface. The author concludes by emphasizing the importance of learning and utilizing these asynchronous patterns in JavaScript to create more maintainable and efficient code.

  4. CODE Magazine: 2015 - May/June cover

    Asynchronous Pattern Redux for XAML Developers

    By providing the history of asynchronous and await patterns, Bill examines the benefits of using these techniques in developing new apps and when it comes to the maintenance or revision of legacy code.