this post was submitted on 14 Feb 2025
874 points (98.6% liked)

Programmer Humor

20039 readers
1521 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] over_clox 7 points 5 days ago* (last edited 5 days ago) (1 children)

This is basically code refactoring on a simplified level. You're basically renaming a whole bunch of functions/tokens at once.

Let's say you're renaming the variable 'count' under the method 'buttplug'. First off, what do you rename it to?

You start by replacing every instance of buttplug.count with a unique token, let's say tnuoc.gulpttub.

Then you replace that buttplug with a unique buttplug.

Simple.

[โ€“] Trail 4 points 5 days ago

Then you replace that buttplug with a unique buttplug.

Rare buttplugs with good affixes are better than unique buttplugs.