cm0002@lemmy.world to Programmer Humor@programming.dev · 9 days agowhat debugging regex feels likelemmy.mlimagemessage-square73fedilinkarrow-up1905arrow-down114cross-posted to: programmerhumor@lemmy.ml
arrow-up1891arrow-down1imagewhat debugging regex feels likelemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 9 days agomessage-square73fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareover_clox@lemmy.worldlinkfedilinkarrow-up8·edit-29 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·8 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.