Best of The New StackApril 2024

  1. 1
    Article
    Avatar of newstackThe New Stack·2y

    Top 5 Underutilized JavaScript Features

    Explore underutilized JavaScript features such as hooks for detecting malicious websites, generating reports in Node.js, controlling execution flow with generators, improving date management with Temporal, and creating reusable code with high-order functions.

  2. 2
    Article
    Avatar of newstackThe New Stack·2y

    Why PHP Usage Has Declined by 40% in Just Over 2 Years

    PHP usage has declined by 40% in just over 2 years, with WordPress moving away from PHP and into JavaScript being a major reason for the decline. The PHP Foundation has been formed to address PHP's public image and continue active development.

  3. 3
    Article
    Avatar of newstackThe New Stack·2y

    Golang 1.22 Redefines the For Loop for Easier Concurrency

    Golang 1.22 introduces changes to the for loop for easier concurrency, including improved variable scoping and the ability to range over integers. It also previews a feature that allows users to range over functions as iterators.

  4. 4
    Article
    Avatar of newstackThe New Stack·2y

    Top 10 Tools for Kafka Engineers

    Explore the top 10 tools used by Kafka engineers to build and maintain efficient Kafka ecosystems. Learn about kcat for real-time monitoring, Debezium for change data capture, Kafka Streams for building stateful applications, Grafana for visualizations, Kafka UIs for easier cluster management, Redpanda as a Kafka-compatible platform, Cruise Control for cluster optimization, Kafka Security Manager for ACL management, MirrorMaker for data replication, and Kafka Proxy for enhanced security.

  5. 5
    Article
    Avatar of newstackThe New Stack·2y

    How to Simplify Global State Management in React Using Jotai

    This post explains how to simplify global state management in React using Jotai. Jotai is a primitive and flexible state management solution for React that provides a minimalistic API to separate state management from UI. It can be used with Waku for server-side React applications and offers easy management of atoms for primitives and objects. It also includes features like useHydrateAtoms for server-side data and atomWithStorage for localStorage. Overall, Jotai simplifies global state management in React.

  6. 6
    Article
    Avatar of newstackThe New Stack·2y

    Did Signals Just Land in React?

    The post discusses the concept of Signals in JavaScript frameworks, how they differ from React's useState hook, and the TC39 proposal for integrating Signals into JavaScript.

  7. 7
    Article
    Avatar of newstackThe New Stack·2y

    React Server Components in a Nutshell

    React Server Components (RSCs) allow React developers to access asynchronous server-side requests and the resulting data at the component level. They simplify the process of data fetching and eliminate the need for prop drilling. Waku is a minimal React framework that supports RSCs. RSCs are similar in concept to Gatsby's useStaticQuery hook, but the data fetching happens at runtime. When using RSCs, developers need to consider whether to perform component-level data fetching or route-level data fetching based on performance considerations. RSCs are not a one-size-fits-all solution, but they provide an additional option for building data-intensive React applications.