Best of Performance2022

  1. 1
    Article
    Avatar of communityCommunity Picks·4y

    Making a fast website is SUPER EASY

    For a website whose goal is to convert customers by selling goods or services, the website should be attractive to look at. Images take up a huge part of the website's total size. As of August 2022, images made up on average 45% on desktop and 44% on mobile of a page’s total weight. Optimizing the images can therefore result in big and easy wins.

  2. 2
    Article
    Avatar of joshwcomeauJosh W Comeau·4y

    Why React Re-Renders

    This tutorial is written to help beginner-intermediate React developers get more comfortable with React. It's the only “trigger” in React for a component to re-render. In React, every state change in React forces an application-wide render, but this isn't true. In this case, it sees that our paragraph has a text node that changed from 0 to 1.

  3. 3
    Article
    Avatar of medium_jsMedium·3y

    React JS Best Practices

    The React style guide is a set of recommendations for writing clean, maintainable code with React. Hooks are a new feature in React that allow you to use state and other React features without writing a class. The React memo higher-order component is a way to optimize the performance of your functional components.

  4. 4
    Article
    Avatar of communityCommunity Picks·3y

    Is React going anywhere?

    React will be 10 years old on the 29th of May 2023 (finally recruiters are able to ask for 10 years of experience, without being a laughing stock) React is getting old, and when applications start to get old, you start finding issues, loads of them.

  5. 5
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    Best Practices for Scaling Your Node.js REST APIs

    Use throttling at the first junction point between your application and the News Feed Service. Use the ELK stack for setting up a good logging and alerting pipeline. If a request goes through multiple services during the lifecycle, you can pass along a unique ID in the logs to capture a particular request across all the services.

  6. 6
    Article
    Avatar of devgeniusDev Genius·3y

    The Programming Language(s) of the Future

    C, C++, and Rust are not that easy, they force you to think about object lifetimes, dynamic allocations, etc. But even just in 3 categories, there are lots of differences and blurry decisions. If we consider the ease of use, and power of the implemented structures, the results will get more blurry. Until now, what have we learned? We compared the languages.

  7. 7
    Article
    Avatar of communityCommunity Picks·4y

    Make your React apps fast again

    Profiler can help you improve performance of a React application. We will go over ways to improve the performance of an app, including some pre-optimization techniques. We can use the Profiler in the React DevTools to measure performance of our apps. To use the profiler, you must Some are asynchronous, such as background HTTP calls, while others occur by user or You.

  8. 8
    Article
    Avatar of communityCommunity Picks·3y

    Is Flutter better than React Native?

    Flutter and React Native are natural competitors as two of the most used multi-platform mobile app frameworks. The answer lies not in the technical aspects of React Native and Flutter at all. Hiring developers is famously difficult right now, but the pool of developers to draw from is far larger than Flutter's.

  9. 9
    Article
    Avatar of communityCommunity Picks·4y

    React re-renders guide: everything, all at once

    Re -render happens when React needs to update the app with new data. Preventing re-renders with composition is an anti-pattern that can be the biggest performance killer. On every re-render React will re-mount this component (i.e. destroy it and re-create it from scratch), which is going to be much slower than a normal re-rendered. This pattern can be beneficial when a heavy component manages state.

  10. 10
    Article
    Avatar of asayerasayer·4y

    Working with Dates and Times with Day.js

    Day.js is a straightforward JavaScript tool for manipulating, displaying, and validating dates and times. It can be used in client-side and server-side rendering and works flawlessly in both scenarios. When we run Day. JS in the browser, the.format() method returns a string in ISO format. This is fairly similar to the vanilla JavaScript’s to ISOString() date constructor method.

  11. 11
    Article
    Avatar of logrocketLogRocket·4y

    Vite 3.0 vs. Create React App

    Vite is built on top of esbuild, a JavaScript bundler written in Go, which bundles dependencies 10-100 times faster than JavaScript-based bundlers. Vite leverages the browser’s native ESM to parse and compile your code as the browser requests it. The browser only needs to pre-bundle your dependencies.

  12. 12
    Article
    Avatar of communityCommunity Picks·3y

    Introduction to Micro-frontends

    Micro-frontends is the beginning of the micro frontends journey. The idea behind Micro Frontends is to think about a website or web app as a composition of features which are owned by independent teams. Each team should be able to choose and upgrade their stack without having to coordinate with other teams.

  13. 13
    Article
    Avatar of devtoDEV·4y

    Two lines of CSS that boosts 7x rendering performance!

    Website's nowadays need to be optimal and performant, users on the web have very short attention span. Most common use cases for this is when you have huge list/grid of data that needs to render at the mount of the application. With progressing web development it will soon be supported in all browsers too.

  14. 14
    Article
    Avatar of pointerPointer·4y

    The baseline for web development in 2022

    Alan Dávalos is a front-end engineer at LINE. He analyzed the changes in the web between 2021 and 2022. The biggest change that happened in 2021 was the retirement of Internet Explorer (IE) The new baseline for web development in 2022 is: low-spec Android devices in terms of performance, Safari from two years before in Terms of Web Standards, and 4G.

  15. 15
    Article
    Avatar of communityCommunity Picks·4y

    What Is Bun.js and Why Is the JavaScript Community Excited About It?

    Bun is the third of its kind after Node.js and Deno.js, created by Jarred Sumner using the Zig programming language. Bun advances to provide new levels of speed and enhanced complexity.

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

    Meet Bun: A JavaScript Runtime for the Whole Dev Lifecycle

    Bun is a drop-in replacement for running JavaScript and Typescript applications. It was designed to be an all-in-one tool for bundling, transpiling, and running code at lightning speed. It processes about three times more HTTP requests per second than Node.js when rendering React server-side.

  17. 17
    Article
    Avatar of communityCommunity Picks·4y

    HTML is all you need to make a website

    At the dawn of Web 1.0, there was only HTML. At the heart of every website is pure, unadulterated HTML. The first website ever is still online, and yes — it's just HTML.

  18. 18
    Article
    Avatar of hnHacker News·4y

    Astro 1.0

    Astro v1.0 is a web framework for building fast, content-focused websites. Over the last 16 months, Astro has grown from an empty repo to over 13,000 stars on GitHub and 30,000 early users around the world. Astro has already been Addy Osmani, Software Engineer, Google Chrome Astro’s fast performance is even more noticeable to end users.

  19. 19
    Article
    Avatar of communityCommunity Picks·3y

    Why use NextJS?

    Next.js allows you to develop fast and user-friendly web applications and static websites using React.js. It is a ReactJS framework for building server-rendered web applications. It includes a number of features out of the box, such as Automatic code splitting, filesystem-based routing, hot code reloading and universal rendering.

  20. 20
    Article
    Avatar of communityCommunity Picks·4y

    Islands Architecture

    Islands architecture borrows concepts from different sources and aims to combine them optimally. Marko is an open-source framework developed and maintained by eBay to improve server rendering performance. Astro: Astro is a static site builder that can generate lightweight static HTML pages from UI components built in other frameworks such as React, Preact, Svelte,

  21. 21
    Article
    Avatar of sitepenSitePen·3y

    Intro to HTML-first Frontend Frameworks

    Qwik API allows Qwik to bootstrap with a very small amount of framework code. Qwik is used for builder.io which is a complex, interactive, stateful web application. Marko 6 is in the works and it will be interesting to see what they achieve.

  22. 22
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    Big O Cheat Sheet – Time Complexity Chart

    Big O, also known as Big O notation, represents an algorithm's worst-case complexity. Big O defines the runtime required to execute an algorithm by identifying how the performance of your algorithm will change as the input size grows. In plain terms, the algorithm will run input + 2 times, where input can be any number.

  23. 23
    Article
    Avatar of syncfusionSyncfusion·3y

    JavaScript Debounce vs. Throttle

    JavaScript Debounce and throttling are two simple, yet powerful techniques we can use in JavaScript applications to improve performance. In this article, I will introduce debounce and throttle in JavaScript, and discuss why we need to use them. The concept of debounce is pretty straightforward.

  24. 24
    Article
    Avatar of pointerPointer·4y

    facebook/lexical: Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.

    Lexical is an extensible JavaScript web text-editor framework with an emphasis on reliability, accessibility and performance. Lexical aims to provide a best-in-class developer experience, so you can easily prototype and build features with confidence. Combined with a highly extensible architecture, Lexical allows developers to create unique text editing experiences that scale in size and functionality.

  25. 25
    Article
    Avatar of vsVisual Studio Blog·3y

    Visual Studio 2022 17.4 is now available!

    This is our first GA release to support Arm64.NET 7, enterprise support for setup including rollback, and much more detailed below. We welcome your feedback in the threads to this post or through Developer Community. You can use Microsoft Endpoint Manager (formerly known as Intune) to manage all of this.