Re:Julie Ann Horvath Describes Sexism and Intimidation Behin...
by gaius on Sunday March 16, 2014 @02:28PM
(#7410554)
Because the spelling wasn't the root cause it was a symptom of a culture that had gone so badly wrong that people engaged in petty arguments just as a way to score points.
Re:Julie Ann Horvath Describes Sexism and Intimidation Behin...
by bmelton on Sunday March 16, 2014 @04:02PM
(#7410982)
To be fair, a search and replace for "dialog" would also match patterns like, y'know, "dialogue" too, at least in all the naive replace-all algos I've seen in IDEs.
So, the traditional CTRL+F, or :%s/dialog/dialogue/g would have resulted in at least some instances of 'dialoguegue' as a result. Yeah, the obvious remedy there is :%s/guegue/gue/g, but that too could lead to unintended results, etc.
Not that I don't agree with the intent of your statement, search and replace across 20k lines of code, over however many files, is likely a more involved process than it sounds like.
Re:Julie Ann Horvath Describes Sexism and Intimidation Behin...
by Crito on Sunday March 16, 2014 @05:02PM
(#7411262)
To match dialog but not dialogue in vim:
dialog\>
...in other regex systems: dialog\b
"dialog" as part of a variable name with underscores: :%s/dialog_/dialogue_/g
"dialog" as part of a variable name with CamelCase: :%s/\([dD]\)ialog\([A-Z][A-z]*\)/\1ialogue\2/g
You don't need to capture every case in a single regex substitution, you can use a handful to cover pretty much every case though. This sort of change should not take more than a few minutes max of developer time.I don't have experience with them, but I imagine an IDE with refactoring support should make these sort of changes trivial.
Re:Julie Ann Horvath Describes Sexism and Intimidation Behin...
by nitrogen on Sunday March 16, 2014 @04:35PM
(#7411141)
Maybe some thing like s/dialog\([^u]|$\)/dialogue\1/g
Or use variable renaming in an IDE that actually parses the code.
Re:Julie Ann Horvath Describes Sexism and Intimidation Behin...
by arghbleargh on Monday March 17, 2014 @05:01AM
(#7413899)
You can always replace dialoguegue with dialogue again afterwards.
I don't understand how these guys were "deadlocked" for weeks.