Coding Standards SO IRRITATING 
2009.07.16 10:04 - Whining, Work-related
Visual Studio will let you specify an external settings file which can contain a blue million different settings, including coding style bits and pieces. This is probably a good idea, as there's also menu shortcut that lets you reformat whole files on demand, which will make whatever poor soul that winds up responsible for merging branches in your source code repository endlessly happy. (ISTR stumbling across a checkbox somewhere in the application's bowels that let you reformat a file whenever you saved it, but can't find it now. Perhaps that misfeature was removed.)

I'm still irritated that it includes settings for brace style, and that they're all wrong0. The only thing I find more irritating than having the Wrong Brace Style1 foisted on me for no good reason is having a SQL query I've already written completely reformatted because the other developer couldn't figure out how to make an isolated change without running the whole thing through some code generator.2

And if you think that this seems petty, trivial, and boring ... well, I never promised anything.

Footnotes
0. Where 'wrong' is defined as 'not the way I do things'. I just can't put every brace and flow-control keyword on a separate line. It's pointless. It makes an if-else-if-else construction take up four extra lines that say nothing. It's like inserting dramatic pauses into a reading of a grocery list.
Me Them
if (foo) {
    blah;
} else if (bar) {
    blah++;
} else {
    baz;
}
if(foo)
{
    blah;
}
else if(bar)
{
    blah++;
}
else
{
    baz;
}
Anyway, I hate it.
1. Where, again, wrong == !mine.
2. It's usually painfully obvious, too, because I use a somewhat verbose formatting style in SQL:
Me Them (often, not always)
select
    f.foo_bar,
    f.foo_baz,
    b.bar_foo,
    b.bar_baz
    from
        foo f
        inner join bar b
            on      f.foo_id = b.foo_id
                and f.blah = 'MAGIC_NUM'
    where
            f.foo_id = 1
        and b.bar_id = 2
        -- or whatever
SELECT F.FOO_BAR, F.FOO_BAZ, B.BAR_FOO,
    B.BAR_BAZ
FROM FOO F INNER JOIN BAR B ON F.FOO_ID
    = B.FOO_ID AND F.BLAH = 'MAGIC_NUM'
WHERE F.FOO_ID = 1 AND B.BAR_ID = 2
It's certainly more compact, but God help you trying to read anything non-trivial that's formatted like that. It's worse if they've done it by hand, so that the indentation is both inconsistent and achieved with a combination of spaces and tabs.

  |  [ 0 trackbacks ]   |  permalink
Maybe It's Me 
2009.07.10 19:46 - Meatspace Stupidity
Driving back from the grocery store a few minutes ago, I got honked by some guy driving a large pickup. Apparently, in the thirty seconds between my stopping at the red light and looking up the street to determine if the blue minivan coming this way was getting onto the highway (thus not going through the intersection), this guy drives up behind me and the light turned green. It cannot have been green long; there were cars in the left-hand lane and they had not moved. I guess he was in a hurry, though, because he honked twice before the other lane started moving. I happened to look over at the next intersection to discover that the impatient guy seemed to be watching me from his pickup truck, and possibly cursing me (it wasn't that far from the previous light).

In ten years, I've had other drivers honk at me about five times, I think. Four of the five times, I have been convinced that the other driver was an intemperate jackass.
  |  [ 0 trackbacks ]   |  permalink
Less Stressed Out Now. 
2009.07.08 11:26 - Entertainment, Microcode, Internet Stupidity, Meatspace Stupidity, Miscellanea, Zombie Preparedness
Apparently, two hours of zombie killin' on Monday night was darned cathartic.
  |  [ 0 trackbacks ]   |  permalink
Stressed. Out. 
2009.07.06 18:45 - Meatspace Stupidity, Miscellanea, Site/Meta
Holy Jehoshaphat.
  |  [ 0 trackbacks ]   |  permalink
Sometime this weekend, I will see a terrible movie. 
2009.06.25 19:15 - Entertainment, Movies, Internet Stupidity
So, Transformers 2 is in theatres. Truth is, once you get past the spectacle, I found the previous one alternate boring, vapid, and crude (often two or more at the same time), and the paid critics are generally suggesting that this one will be just like that, only more so. Perhaps the theater will have a bar.

In the meantime, this mostly means that the Transformers fora are busily churning on an argument that can be summarized thusly:

Party A: Michael Bay has directed a bad film, and should feel bad.
Party B: BUT ITS MAKING SO MUCH MONEY THAT YOU MUST BE WRONG.

As generally sympathetic as I am to the idea that markets offer a good approximation of real value, I think it should be obvious that this is nonsense on stilts. It only gets more stupid when both parties get wound up. Party A suggests that Party B is a mouth-breathing moron with no taste to speak of, Party B suggests that Party A doesn't want Party B to have nice things and is also a pretentious jerk, a bore, and, additionally, nobody likes Party A and why doesn't he shut his stupid mouth.

Now, both sides might be right about those things, and I wouldn't be surprised if the film's review score had been a little higher if someone else's name had been credited as director. None of that really addresses the question of the film's quality, though.
  |  [ 0 trackbacks ]   |  permalink

Back Next