Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
zlice360769d@melezorus34 does perl work in vim???
edit :'\<i\>' does =0
edit 2: ':%s/\<i\>/c/g'
lol -- for a solution, someone frequents stack overflow -
Oktokolo701769dIf there is a sea of loops having 50 references to some variable, the actual problem is not the name of that variable...
-
lbfalvy1035069dHave you considered using a real IDE? Literally all of them have a feature to rename symbols which respects shadowing and all other rules because it's backed by a language server.
-
lbfalvy1035069dApparently there's a Vim plugin to connect language servers, so this isn't a dig at Vim even though I originally intended it as one. But really. Don't use DIY software if Y can't be assed to DI properly.
-
can't sed/regex standalone "i"
lol of course you can.
anything else than letter, "i", anything else than letter.
look up regex syntax for "anything else than letter".
you're welcome. -
FreeBasic4067dAh I love short var names...
void plot(uint32_t *s, int x1, int y1, int x2, int y2, uint32_t c){
....int x, y, o;
....for(y = y1; y <= y2; ++y){
........o = y * s->p;
........for(x = x1; x <= x2; ++x){
............s->m[o + x] = c;
........}
....}
}
:-) -
melezorus34319667d@FreeBasic s is not a struct tho, how are you pointer accessing a variable like m or p
Related Rants
i have grown to HATE short variable names
nevermind all the generic names like thing/item/object/component
int i;
cute, good enough...oh wait it's referenced here 50 times in a sea of some loop? well fuk...how do... nope highlighting wont work - int, idkwtftonamethisvar, it's a common vowel. can't sed/regex a stand alone 'i' just...gg. gl finding or recognizing a single letter
about to start using iii or i_cnt
rant
naming
coding
variables