Best of PerformanceJanuary 2024

  1. 1
    Article
    Avatar of medium_jsMedium·2y

    Javascript Optimization Techniques

    This post covers various optimization techniques for JavaScript and React applications, including debouncing, throttling, memoization, pure components, lazy loading, virtualization, error boundaries, and the avoidance of inline functions.

  2. 2
    Article
    Avatar of lobstersLobsters·2y

    The perfect web framework

    This post discusses the pillars of a perfect web framework, including a content-first core, world-class design, motherf**king fast performance, consistent MPA+SPA experience, instant development loop, easy scalability, sub-second deploy times, universal template, and built-in cloud services.

  3. 3
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How Lazy Loading Works in Web Development

    Lazy loading is a web performance optimization strategy that improves performance, reduces bandwidth usage, and enhances user engagement by loading only necessary resources. It can be implemented using the loading attribute in HTML.

  4. 4
    Video
    Avatar of communityCommunity Picks·2y

    How I'm Writing CSS in 2024

    CSS in 2024 has become easier and more powerful with support for container queries, nesting, and other exciting features. This post discusses the state of CSS, recommendations for optimizing CSS performance, and different CSS styling solutions available in 2024.

  5. 5
    Article
    Avatar of medium_jsMedium·2y

    Performance Best Practices in Flutter

    Flutter is a UI toolkit for building fast, beautiful, natively compiled applications. It is important to optimize performance in Flutter by using stateless widgets, avoiding unnecessary widget rebuilding, using keys for performance optimization, using async and await instead of then(), avoiding costly tasks, minimizing the use of opacity and clipping, avoiding deeply nested widget hierarchies, using the Flutter DevTools for performance monitoring, and avoiding blocking the main thread.

  6. 6
    Article
    Avatar of hnasrHussein Nasser·2y

    Your SQL is Slow

    Understanding SQL query performance and the importance of execution plans.

  7. 7
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Build a High-Performance Tab Component in React

    Learn how to build a high-performance tab component in React. This article covers setting up the environment, creating the tab component, optimizing for performance, and adding animations using Framer Motion.

  8. 8
    Article
    Avatar of medium_jsMedium·2y

    Why UUID7 is better than UUID4 as clustered index

    This post discusses the differences between UUID version 4 and UUID version 7 as clustered indexes in a database. It explores the pros and cons of using UUIDs instead of sequential IDs and explains why UUID version 7 was faster than UUID version 4. The experiments and results are presented, along with an explanation of index locality and buffer pool in relation to the performance differences.

  9. 9
    Article
    Avatar of communityCommunity Picks·2y

    Tech stack rebuild for a new Facebook.com

    Facebook.com underwent a complete rebuild of its tech stack to improve performance and user experience. The improvements included reducing CSS, code-splitting JavaScript, modernizing data-fetching, and implementing faster navigation. The redesign is gradually rolling out to all users.

  10. 10
    Video
    Avatar of primeagenThePrimeTime·2y

    You dont know OOP

    This post explores various aspects of object-oriented programming (OOP) and addresses common criticisms and misconceptions associated with it. It highlights the importance of encapsulation, discusses the use of Getters and Setters, and compares performance between different programming paradigms. The author also emphasizes the need for practicality and simplicity in programming.

  11. 11
    Article
    Avatar of medium_jsMedium·2y

    Data Fetching in Vue

    Learn about data fetching optimization in Vue, including different types of API calls, fetching application data, fetching page-specific data, and managing loading states with Vue Suspense.

  12. 12
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How Work with RESTful APIs in React

    Learn how to work with RESTful APIs in React, including making API requests, displaying API data, CRUD operations, handling forms, authentication, performance optimization, testing, and best practices.

  13. 13
    Article
    Avatar of asayerasayer·2y

    Enhancing Performance with React Query's Caching

    Learn how React Query's caching feature can enhance performance by reducing unnecessary server requests. Understand the concepts of cacheTime and staleTime, and how to adjust them to meet the needs of your application. Improve user experience by customizing data query needs and decreasing load times.

  14. 14
    Article
    Avatar of hnHacker News·2y

    Teach Yourself Programming in Ten Years

    The post discusses the misconception that one can learn programming in a short time and emphasizes the importance of deliberate practice over a long period to develop expertise in any field.

  15. 15
    Article
    Avatar of awegoAwesome Go·2y

    Go directives

    The post discusses the use of directives in Go, specifically focusing on the `//go:nosplit` directive. It explains how this directive can be used to improve performance by skipping stack space checks. A contrived example is provided to demonstrate the performance gain.

  16. 16
    Article
    Avatar of awsplainenglishAWS in Plain English·2y

    4 Places Where You Can Cache Your Data to Optimize Your System

    This post explores different caching strategies, their benefits, and challenges in maintaining data integrity. It discusses client-side caching, CDN caching, remote cache using Redis, and database caching. It emphasizes the importance of striking a balance between performance optimization and data accuracy.

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

    Where Does the Time Go? Rust’s Problem with Slow Compiles

    Rust's slow compile times have been a frequent complaint among the community. The Oxide team investigated the issue and discovered various factors that contribute to slow compile times in Rust. They found specific tools and techniques to optimize compile times, although more work needs to be done.

  18. 18
    Article
    Avatar of awegoAwesome Go·2y

    High performance caching with Redis and Go

    The post discusses the need for high performance caching in web applications built with Go and introduces redjet, a Redis library that supports memory-efficient streaming. It highlights the limitations of popular Go libraries in terms of memory usage and presents benchmarks comparing redjet with other libraries.

  19. 19
    Article
    Avatar of logrocketLogRocket·2y

    Angular signals vs. observables: How and when to use each

    Angular signals and observables are both used for handling asynchronous operations. Signals are simpler to use and are best for UI and component logic, while observables provide more power and flexibility but have a steeper learning curve. Signals should be considered for making a UI responsive and reactive.

  20. 20
    Article
    Avatar of communityCommunity Picks·2y

    6 Tips for Resolving Common Java Performance Problems

    Tips for resolving common Java performance problems, including preventing memory leaks, avoiding thread deadlocks, and optimizing garbage collection.

  21. 21
    Video
    Avatar of primeagenThePrimeTime·2y

    4 Billion If Statements | Prime Reacts

    The article discusses the use of if statements in programming, the modulus operator, and the tradeoff between time and memory. The author explores the idea of checking if a number is odd or even using comparisons and shares their experience with implementing the algorithm in different programming languages. They encounter drawbacks with large numbers but manage to overcome them with a unique approach.

  22. 22
    Article
    Avatar of codemazeCode Maze·2y

    How to Compare Two Lists Through One Property in C#

    This post explores different methods to compare two lists in C#, including foreach loops, LINQ, join operator, and HashSet. It also provides benchmark results to determine the most efficient approach.

  23. 23
    Article
    Avatar of communityCommunity Picks·2y

    How the PostgreSQL optimizer works to speed up queries

    This post explains how the PostgreSQL optimizer works and highlights some important techniques it uses to speed up queries, such as constant folding, function inlining, join optimization, join order determination, join pruning, and optimized sorting for ORDER BY.

  24. 24
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Get the First Line of a Multiline String in JavaScript

    Learn the three best ways to get the first line of a multiline string in JavaScript, including using String.indexOf and String.slice, Array.split method, and String.match method with regex.

  25. 25
    Article
    Avatar of medium_jsMedium·2y

    System Design Cheatsheets: ScyllaDB

    ScyllaDB is a high-performance database gaining popularity, similar to Cassandra but with more efficient utilization of hardware resources.