Logo
Real programmers count from 0.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Tree-shaking Memes

Posts tagged with Tree-shaking

Tree Shaking Maybe Works

React Javascript Programming Frontend Webdev
10 months ago 719.5K views 1 shares
Tree Shaking Maybe Works
You install one tiny date formatting library and suddenly your node_modules folder is the size of a 747. Then you build your "tiny React app" and somehow it's still pulling in half the internet despite tree shaking supposedly removing unused code. Tree shaking is that magical build optimization that's supposed to eliminate dead code from your bundle. In theory, it only includes what you actually import. In practice? Well, your final bundle is still mysteriously 2MB because some dependency deep in the chain decided to import the entire lodash library for one function. The ratio here is painfully accurate. You start with a massive airplane hangar of dependencies, shake the tree real hard, and end up with... a slightly smaller airplane hangar. But hey, at least webpack says it's optimized.

Today's picks

There Are 10 Types Of People, Binary Joke - Ceramic Mug, Black/White, 15oz

There Are 10 Types Of People, Binary Joke - Ceramic Mug, Black/White, 15oz

Affiliate
$18.49
Probably been done before.

Probably been done before.

Java
152.9K views 3 years ago
NordVPN

NordVPN

Sponsored
VPN