All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Understanding 'Shredding' in Programming: Aggressive Code Refactoring

By

Kerrick

5mo ago· 4 min readenInsight

Summary

The article introduces the programming concept of 'shredding' - a more aggressive form of code refactoring that involves complete deletion and rewriting of code sections rather than incremental changes. It contrasts shredding with traditional refactoring, describing shredding as embracing destruction by deleting multiple load-bearing functions at once and recreating them from scratch to achieve better results.

Key quotes

· 4 pulled
What it means is to rewrite code. To take something apart — to feed it into the shredder — and put it back together again, but in a different, better way.
It's refactoring, but switching the scalpel for a sledgehammer.
Shredding, on the other hand, means to embrace destruction.
To go on a shred is to delete five load-bearing functions all at once and recreating them.
Snippet from the RSS feed
Here’s a bit of lingo that I learned working at Zed: shredding.

You might also wanna read