cm0002@lemmy.world to Programmer Humor@programming.dev · 7 days agowhat debugging regex feels likelemmy.mlimagemessage-square73fedilinkarrow-up1898arrow-down114
arrow-up1884arrow-down1imagewhat debugging regex feels likelemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 7 days agomessage-square73fedilink
minus-squareover_clox@lemmy.worldlinkfedilinkarrow-up8·edit-27 days agoThis 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.
minus-squareTrail@lemmy.worldlinkfedilinkarrow-up4·6 days ago Then you replace that buttplug with a unique buttplug. Rare buttplugs with good affixes are better than unique buttplugs.
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.
Rare buttplugs with good affixes are better than unique buttplugs.