News for hackers. Stuff that matters.
Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by Pacabel on Sunday March 16, 2014 @08:34AM (#7409208)
Why was it so critical to spell it "dialog", rather than "dialogue", as the higher-ups in the project apparently preferred?
Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by buro9 on Sunday March 16, 2014 @08:37AM (#7409213)
It wasn't, there was no business justification for it at all. He just invented a rule "all names and variables must be in UK English".
Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by krick on Sunday March 16, 2014 @11:42PM (#7412867)
It's completely OK to have such a rule, your behavior is much more disturbing. It doesn't really matter if you use UK or US english, but you should use one and that must be pressured from above. If project standard is UK you use UK, not what you like.

Quitting because of that is just stupid. In my company CS rules are almost opposite to my preferences (and to common style for that language community of course). I use every opportunity to grumble about it, but it would be much worse if everybody (me included) shaped the code based on personal preferences, not style guide.

Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by Pacabel on Sunday March 16, 2014 @09:06AM (#7409295)
What's the business justification for using "dialog" when the project leader(s) have requested "dialogue", however?
Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by phaus on Sunday March 16, 2014 @12:48PM (#7410097)
Let's assume that the debate was legitimate, doesn't that still put us one "replace all" away from fixing the problem?

I don't understand how these guys were "deadlocked" for weeks.

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.
Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by nailer on Tuesday March 18, 2014 @01:13PM (#7423289)
Or use an AST and do a structural replace, rather than use text.
Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by gphilip on Sunday March 16, 2014 @08:53AM (#7409256)
GP asked the converse.
Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by buro9 on Sunday March 16, 2014 @09:06AM (#7409294)
Good spot (I missed it).

I spelled it in consistency with everything else in the source code at that time... US English. It was a British company, and I understood that the UI should be UK English, but did not comprehend/believe that variables should be too. Especially as one can't force CSS to stop calling it color.

Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by ZoF on Sunday March 16, 2014 @10:25AM (#7409497)
Heh, you've basically avoided fully answering this question twice, possibly because it wasn't properly phrased. Let me give it one more shot.

What was _your_ reasoning for losing a job over a completely semantic argument?

Did the illogicality of it all really irk you so much that you couldn't stand to change it? What do you mean by saying that you couldn't 'comprehend' why variables should be written in UK English? It seems pretty clear that they should be in UK English because that's what you were told to write them in... at your job...

If this happened as described then I would have loved to be a coworker watching this hilariously petty feud unfold.

Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by buro9 on Sunday March 16, 2014 @10:59AM (#7409620)
> What was _your_ reasoning for losing a job over a completely semantic argument?

I wanted a reasonable work environment that was delivering product to the customers, for the business.

The work in question was 20k lines and involved the whole stack. As it bled into web page stuff that actually had calls to browser open "dialog" commands, no find and replace was going to safely work to now make it comply with the clarification on the coding standards (UK English var names). We would spend weeks changing it and re-testing, weeks in which we were not delivering it.

I felt we were no longer working for either the customer or business, when we were willing to hold back an improvement that would immediately create revenue, for a petty argument.

It wasn't the first time I'd seen this architect do that to others, but I never thought it would happen to me so long as the product was good, the code was good, deadlines were met.

I was no longer convinced it was possible to create work that wouldn't fall foul of some rule or other. And the architect had managed to position himself on the org structure outside of a chain of command, so there was no-one to appeal to.

There are too many good jobs, and good companies, that want to ship product to their customers and build a great business to even consider staying somewhere that doesn't.

It was a very easy decision.

Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by ZoF on Sunday March 16, 2014 @11:22AM (#7409704)
Wow, yeah, seems like it was.

I still would like to see someone that ridiculous operate... Sounds like the most incompetent architect/engineer I have ever heard of.

Sorry for the snark fellow human.

Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by deong on Sunday March 16, 2014 @09:41AM (#7409375)
I still don't think that's actually the question that was being asked. It's not, "why do you think your spelling was preferred?" but rather "given that the complaint is how inflexible the senior tech was on the issue, why were you just as inflexible?"

Particularly given that it's a UK company, the request may be arguably wrong, but it's at least semi-reasonable. Why make such a huge deal over it from either side?

Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by moron4hire on Sunday March 16, 2014 @11:10AM (#7409664)
Maybe he figured the work was done and wanted to move on to something else. It should have been a trivial issue, either way, and he wasn't the one making it a non-trivial issue. But the architect's propensity for blowing it out of proportion was a good signal that his working relationship with that architect was never going to be good, if something as simple as that was a problem.

I would have done the same thing. If someone is hanging your job over your head over spelling in source code, then the issue is no longer about spelling in source code. It's about dick wagging.

Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by asdkl234890 on Sunday March 16, 2014 @10:26AM (#7409500)
given that the complaint is how inflexible the senior tech was on the issue, why were you just as inflexible?"

Software engineers are a stubborn bunch. It's kind of necessary given the nature of programming. However, if promoted to an architect, stubbornness is a real problem, with little to no upside.

Architects will usually stick mostly to design and not do a lot of debugging. So that stubbornness is not useful. But it sure can rear its ugly head when it comes to pointless conflicts like this one. And the problem is, all the junior developers are also stubborn.

Welcome to software development. What you want in in a software architect is primarily a diplomat. Not someone who is stubborn.

Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by deong on Sunday March 16, 2014 @10:35AM (#7409530)
I disagree. Before I went back to academia, I had both job titles at various times. The whole point of having someone in one of these "architect" roles is that they're supposed to be there to exercise judgment they have demonstrated to you as a company to be reliable.

If there's a disagreement that can't be resolved between the two of them, the architect is the one whose stubbornness I value more. You have managers to be diplomats. You have technical leadership to say, "they pay me more than you because they trust my judgment more than yours. I've heard your argument; I found it not compelling enough to overrule my own experience and judgment, and the decision has been made."

Ideally you have more than one such person to help surface the cases where the architect was wrong, but if you're routinely treating them as though they're no more reliable than junior developers, why are you paying them so much?

Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by xenophonf on Sunday March 16, 2014 @02:04PM (#7410455)
As an architect myself, I'm sure that some of the decisions I make look like bikeshedding - and maybe they are, but they're born out of a desire to make our services easier to implement and manage at scale. I do try to avoid arguments over trivia, but it's a fine line to walk. When you have a small system, the kinds of convention, indirection, and abstraction you'd see in large ones don't make a lot of sense, except when it comes time to scale out.
Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by Kell on Sunday March 16, 2014 @09:45AM (#7409383)
> Especially as one can't force CSS to stop calling it color.

Actually... It's (jokingly) possible :)

http://spiffingcss.com/

Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by aurumpotest on Monday March 17, 2014 @12:47PM (#7416195)
Strange, their 'Download it, Sire!' button isn't clickable, despite it being a link. They also have 4 h1s on the page.
Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by Wintamute on Sunday March 16, 2014 @02:17PM (#7410506)
> Especially as one can't force CSS to stop calling it color.

You can get pretty close :)

http://spiffingcss.com/

Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by bluedino on Sunday March 16, 2014 @08:56AM (#7409264)
Was it that way before you worked on the code? If so" that's perfectly reasonable.
Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by cunac on Sunday March 16, 2014 @12:55PM (#7410137)
did you know about rule before start writing piece of code in question ? If yes, I really don't see how you can say in good faith that it wasn't your mistake to be fixed.
Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by whyme on Sunday March 16, 2014 @11:36AM (#7409778)
I once worked at a company that made code to be owned by the gov't of Canada. I'm not sure if the government imposed the rules, but we did have strict rules to use Canadian word versions. Though this was like 1999 so I'd be shocked if that's still the case.

Edit: not to imply a reason for the noted situation, just an example to lend some credence/reasoning elsewhere