<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/sources/bit/best-of/2021/08" -->

---
title: Best Bits and Pieces posts — August 2021 | daily.dev
description: The most upvoted Bits and Pieces posts from August 2021, curated by the daily.dev community.
canonical: https://daily.dev/sources/bit/best-of/2021/08
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/bit/best-of/2021/08
og:type: website
og:site_name: daily.dev
og:title: Best Bits and Pieces posts — August 2021 | daily.dev
og:description: The most upvoted Bits and Pieces posts from August 2021, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of Bits and Pieces — August 2021

1. 1  
[](https://daily.dev/posts/javascript-require-vs-import-v0u3hwmcm "JavaScript Require vs. Import")  
Article  
![Avatar of bit](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/bit)Bits and Pieces · 5y  
JavaScript Require vs. Import  
Require and import are used to refer to JavaScript dependencies. In this article, we will discuss the usage of require and import and answer some of these common questions. We will first discuss the different types of JavaScript modules available. Then we will compare and contrast them with a deeper level of contrast.  
52
2. 2  
[](https://daily.dev/posts/nodejs-performance-optimization-with-clustering-773v7uv-p "NodeJS Performance Optimization with Clustering")  
Article  
![Avatar of bit](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/bit)Bits and Pieces · 5y  
NodeJS Performance Optimization with Clustering  
NodeJS runs in a single thread by default. Cluster module creates several child processes that operate parallelly sharing the same server port. Advantages: The use of all the available cores for application execution improves scalability. Disadvantages: Session management isn’t possible; instead, a developer must handle the alternatives, which adds to the complexity.  
20
3. 3  
[](https://daily.dev/posts/common-npm-mistakes-every-developer-should-avoid-8v2mcdbe0 "Common NPM Mistakes Every Developer Should Avoid")  
Article  
![Avatar of bit](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/bit)Bits and Pieces · 5y  
Common NPM Mistakes Every Developer Should Avoid  
NPM is the world’s largest package manager, and using it in practice is relatively straightforward. But, when adding custom configurations or using its advanced features, many things could go wrong. Learn how to avoid common mistakes when managing dependencies, publishing packages, and more.  
14
4. 4  
[](https://daily.dev/posts/image-loading-best-practices-load-your-web-app-s-images-the-right--mfbehkxma "Image Loading: Best Practices. Load your web app’s images — the right…")  
Article  
![Avatar of bit](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/bit)Bits and Pieces · 5y  
Image Loading: Best Practices. Load your web app’s images — the right…

93.7% of websites on the internet use at least one type of image file format. Unoptimized images affect the website’s performance, user experience, and SEO. Nethmi Wijesinghe discusses best practices to optimize image loading for websites.  
10

[See all Bits and Pieces archives](/sources/bit/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/sources/bit/best-of/2021/08#page","url":"https://daily.dev/sources/bit/best-of/2021/08","name":"Best Bits and Pieces Posts — August 2021","description":"The most upvoted Bits and Pieces posts from August 2021, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/bit/best-of/2021/08#items","numberOfItems":4,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/javascript-require-vs-import-v0u3hwmcm","name":"JavaScript Require vs. Import"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/nodejs-performance-optimization-with-clustering-773v7uv-p","name":"NodeJS Performance Optimization with Clustering"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/common-npm-mistakes-every-developer-should-avoid-8v2mcdbe0","name":"Common NPM Mistakes Every Developer Should Avoid"},{"@type":"ListItem","position":4,"url":"https://daily.dev/posts/image-loading-best-practices-load-your-web-app-s-images-the-right--mfbehkxma","name":"Image Loading: Best Practices. Load your web app’s images — the right…"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sources","item":"https://daily.dev/sources"},{"@type":"ListItem","position":3,"name":"Bits and Pieces","item":"https://daily.dev/sources/bit"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/bit/best-of"},{"@type":"ListItem","position":5,"name":"August 2021"}]}]}
```

