@[email protected] to Programmer [email protected] • 9 days agowhat debugging regex feels likelemmy.mlmessage-square73fedilinkarrow-up1895
arrow-up1895imagewhat debugging regex feels likelemmy.ml@[email protected] to Programmer [email protected] • 9 days agomessage-square73fedilink
minus-square@[email protected]linkfedilink8•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-square@[email protected]linkfedilink4•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.