Best of Performance — February 2023
- 1
- 2
builder.io·3y
Use Maps More and Objects Less
Objects in JavaScript can be replaced with maps for better performance, easier iteration, and key-value manipulation. Maps are optimized for frequently adding and removing keys, unlike objects. They also solve issues of objects being polluted with built-in keys and provide better iteration methods. Maps can be easily copied, converted to objects, and vice versa. They can also be used for associating metadata with objects. Sets, another similar data structure, provide a better-performing way to create unique lists of elements.
- 3
- 4
DBconvert·3y
MySQL vs PostgreSQL in 2023.
PostgreSQL and MySQL are both reliable, secure and scalable databases that have been around for decades. They each have different strengths and weaknesses that make one more suitable for certain use cases than the other. This article will compare them to aid in making an informed decision in 2023.
- 5
- 6
builder.io·3y
How To Improve Lighthouse Scores by Avoiding <img> Layout Shifts
Improving Lighthouse scores can be achieved by setting the correct aspect ratio on images. Cumulative Layout Shift (CLS) is a metric that measures layout adjustments. Two recommended approaches to solving image CLS issues are using the aspect-ratio CSS property and setting width and height attributes on the img tag.
- 7
asayer·3y
Why you should use Go for the Back End
Go is the perfect programming language for the backend of your front-end application. Go's compilation speed is rumored to be faster than C++, making it a good choice for large-scale projects. Go’s concurrency features produce an impressive performance for high data traffic since Go allows programs to take advantage of modern multi-core processors.
- 8
Community Picks·3y
Announcing a new TypeScript ORM
Announcing Orchid ORM, a new TypeScript ORM that offers type safety, flexibility, ease of use for complex cases, and performance. The ORM addresses the limitations of raw SQL and query builders and provides a more powerful and TypeScript-friendly alternative.
- 9
Community Picks·3y
Why I Quit a $450,000 Engineering Job at Netflix
When you stay at a job that you’d rather quit only for the money, it's the riskiest choice of all. Netflix’s transparency around all of its product decisions was one of the best perks of working there. It contrasts with the more secretive culture at Apple and Amazon.
- 10
- 11
- 12
DigitalOcean Community·3y
How To Scale Node.js Applications with Clustering
This tutorial explains how to scale a Node.js application using the cluster module, which creates multiple copies of the same application on the same machine. It demonstrates how clustering can improve performance by distributing the load among processes and provides a comparison between a single-instance app and a clustered app.
- 13
asayer·3y
A Guide to React's useEffect Hook
A Guide to React's useEffect Hook Back React’s hook is one of the trickiest and most powerful hooks in functional components, allowing you to perform side effects. In React, side effect effectively means any operations that affect something outside the component, such as making a REST API call, updating the DOM, etc.
- 14
DEV·3y
Rethinking the Modern Web
Frontend has an engineering problem! The average website performance is regressing and the average developer productivity is grinding to a halt. The vibrant ecosystem in frontend is not translating to more accessible, functional apps for users or more speed and productivity for developers. The article discusses the counterintuitive equations in frontend development, the paradigm shift towards JavaScript-first approaches, and the need for a rethink in the modern web.
- 15
The Verge·3y
Best laptop 2023: 15 best laptops you can buy
Best laptop of 2023: 15 best laptops to buy in 2023 can come with a variety of brands, prices, and features. We've got the rest of the best laptops, Windows 10 business notebooks, gaming laptops, Chromebooks, laptops for school, and 2-in-1 convertibles.
- 16
Hugging Face·3y
Fast Stable Diffusion for Mac
Diffusers for Mac is a native app that uses state-of-the-art diffusion models to transform text into images. It offers significant performance upgrades and a user-friendly interface. The app is open source, supports Core ML models, and runs on all compute devices in your system. Performance benchmarks show that Diffusers 1.1 can be up to twice as fast for Text-to-Image Generation.
- 17
Community Picks·3y
How to be Better with Performance Optimization in React
Learn how to improve performance in React applications by using techniques such as shallow comparison and shouldComponentUpdate, as well as built-in optimizations like React.PureComponent and React.memo(). Discover common performance issues in React and ways to mitigate them. Explore other performance strategies like server-side rendering, lazy loading, and using Web Workers. Discover tools for monitoring and optimizing React app performance.
- 18
Chrome Developers·3y
What's New In DevTools (Chrome 110)
DevTools in Chrome 110 introduces various updates and improvements. The Performance panel now clears the screenshot and trace on reload, providing a better measurement start. The Recorder now offers split code view, customization of selector types, and the ability to edit user flow during recording. The Sources panel has improved syntax highlighting and inline previews for Vue, SCSS, and more. Autocomplete in the Console is now more ergonomic and consistent. Other highlights include automatic in-place pretty print, better syntax highlighting, and various fixes.
- 19
- 20
builder.io·3y
Bloom Filters Can Speed Up Your Code
Bloom filters are probabilistic data structures that determine whether a given key has been seen before. They are faster and more memory-efficient than hash maps and can be used to optimize performance when searching for data that might not exist in a large set.
- 21
DZone·3y
Mobile App Development Trends and Best Practices
Mobile app development is an evolving field with new trends and best practices. Trends include artificial intelligence, cross-platform development, internet of things, progressive web apps, and wearables. Best practices include user-centered design, performance optimization, security in deployment, testing, and continuous improvement.
- 22
Community Picks·3y
10 Best Practices for Flutter in 2022
Learn about best practices for Flutter development in 2022, including refactoring code into widgets, making the build function pure, using state management, defining a theme, following the effective Dart style guide, selecting packages carefully, using async/await, using MediaQuery/LayoutBuilder wisely, using streams only when needed, and using the const keyword whenever possible.
- 23
- 24
- 25
Medium·3y
5 Python Scripts I Found Useful for Data Processing Operations
Some useful data preprocessing scripts in Python 5 Python Scripts I found useful for Data Processing Operations. The scripts below may aid you in removing your loops, particularly data processing operations. The script below can allow you to deliver different names for various aggregations using a single column: Filtering Nested Dictionaries.