Saturday, February 10, 2007

hollywood league

I have been watching "Justice League" and "Justice League Unlimited" via DVD. I don't feel that I have anything substantial to add to the reviews already on the Web--the show has incredible action, often-gorgeous animation, amusing wink-wink-nudge-nudge jokes, enthusiastic voice actors, blah, blah.

The part of the show that continually amazed me was the wealth of guest voices. Time after time I would hear a voice that was eerily familiar. Who needs six degrees of Kevin Bacon when so many people can all be connected to this show? Some of the ones that jumped out at me:
  • Carl Lumbly of "Alias" is J'onn J'onzz
  • Michael Rosenbaum of "Smallville" is the Flash
  • Robert Picardo of "Star Trek: Voyager" is Amazo
  • Rene Auberjonois of "Star Trek: Deep Space Nine" is Kanjar-Ro
  • Michael Dorn of "Star Trek: The Next Generation" is Kalibak
  • Most of the Firefly cast
  • Amy Acker of "Angel" is Huntress
  • Oded Fehr from the Mummy movies is Dr. Fate
  • Dennis Haysbert of "24" is Kilowog
  • Powers Booth, current vice-president on "24" is Gorilla Grodd
  • Julie Bowen of "Lost" (Jack's former wife) is Aresia
  • Lisa Edelstein of "House" is Mercy Graves
  • Kurtwood Smith of "That 70's Show" is a prosecutor
  • Neil Patrick Harris of "How I Met Your Mother" is Ray Thompson
  • John Rhys-Davies of the LOTR movies is Hades
  • Ron Perlman of Hellboy is Orion
  • J.K. Simmons of the Spider-Man movies is General Wade Eiling
  • Mark Hamill of some movie series or other is Solomon Grundy and the Joker
  • Enrico Colantoni of "Veronica Mars" is Gordon Godfrey
  • Brad Garrett of "Everybody Loves Raymond" is Lobo
  • And of course, Ed Asner!
Bonus musings: No commercials, fine quality, commentaries, episodes scheduled whenever I wish...I'm starting to wonder if I should just give up watching TV shows live, wait for reviews or the Internet-stream version to determine if a show is worthy of my time, and buy it. With that strategy, I'm only paying for what I want to watch, and I can watch those shows for years to come. But this strategy also would have less variety, novelty, and surprise, not to mention no sports or TV news (as if I regularly watched TV news). Then there's the social component. Unplugging myself would make it harder to participate in snarky conversations with those who remain plugged in.

Wednesday, February 07, 2007

the worst interview question

In my opinion, the worst interview question is "what is your greatest weakness?" The same goes for nigh-identical questions like "what are you bad at?" and "in what areas do you need improvement?". Interviewers can expect three responses: 1) a smooth-talking prospect manages to evade the question with as much finesse as a politician, 2) a desperate prospect offers a half-serious response guaranteed to be palatable ("I'm too willing to work weekends, darn it!"), 3) an honest/naive/confrontational prospect, who may in fact be a better employee than prospects 1 and 2, answers objectively thereby digging his own unemployment grave. In any of these cases, has the question done anyone any good?

The last person you should ask about his or her weaknesses is the person under consideration! It's like asking a person to self-incriminate. In Freakonomics or game theory terms, there is no incentive for answering honestly in such a situation. Answer honestly, and the interviewer, who is the other player in the game, may either 1) use the honest answer to stop considering the prospect altogether for a payoff of about -2000 or 2) accept the honest answer but have a diminished view of the prospect for a payoff of about -250. Lie or answer evasively, and the interviewer may either 1) accept the lie or evasion at face value ("gee, I can work him over the weekend, great!") for a payoff of about 250 or 2) reject the lie or evasion and have a diminished view of the prospect's honesty/self-reflection for a payoff of about -250. Lying or evasion is clearly the way to go!

Bad interviewers, bad!

this post may contain profanity in the future

I've noticed that the word "frack" is appearing more and more in the media I consume (what that says about what I read/watch/listen to is left as an exercise to the reader). The practice of using a fictional or unrelated word as a stand-in for usual profanity has a long, fascinating history, that naturally mirrors the history of profanity itself. The acceptability or respectablity of any given word can change over time. Taking all of this into account: what if a stand-in word, "frack", became so widely used as a replacement that it took on an equivalent stigma of impoliteness?

Better use frack while I can. I had better frackin' take my pile of frack, put that frack stuff in a case, and frack it to frack. For people who read this in the far future, please accept my humble apologies for the coarseness of the preceding sentence.

In related news: I also wonder whether frack's little companion "frick" will have similar high (low?) aspirations. If so, the rating of Merlin will need to be retroactively adjusted, as it has a character named "Frik".

Wednesday, January 31, 2007

five sentences for the price of one

My own pre-ordered copy of Star Wars: Allegiance is in transit, but I thought I'd look for some reviews. This gem is one of those. I appreciated the opinions expressed, as well as the level of detail, but man alive, is it a confounding piece to read. Here is one of my favorite sentences, yep, just one sentence:

After experiencing a most welcome and I thought a highly unlikely circumstance: two recent, highly recommended Star Wars efforts - written by Karen Traviss and Aaron Allston and both associated with the promising Legacy of the Force sequence - Zahn's effort fell short of those reading experiences, not undone by premise, as this nook in the EU - at least conceptually - represents an obvious draw to fans who have been waiting to see the exploits of a certain Mara Jade in her Imperial position and to what I think is a growing trend - the popularity of military-styled SF and Fantasy represented by Storm Troopers in Allegiance.
If there was a little public-domain "English Horror" icon similar to the "Coding Horror" icon in Code Complete, I would slap it up right beside that text. I try to suppress my schoolmarmish penchant for well-written prose, but I can't stop it from bursting out of my stomach sometimes ala Alien.

Then again, I remember being extremely annoyed by the arbitrary "each paragraph must have five or more sentences" rule in school, because I thought each of my compound-complex sentences should have counted as two or more simple sentences. Apparently I've met my match in whoever wrote that review.

Monday, January 29, 2007

the Super Bowl is the quintessential US holiday

Some point to the US's overindulgences at Christmas or Thanksgiving as proof that those holidays are the most important. While I can't argue against that, I think it's also true that there is one holiday which can claim to be still more emblematic, still more quintessential of the modern US: Super Bowl Sunday.
  • The holiday revolves around the top honors of a sport that simply hasn't spread as far or as deeply outside the US: American football, le football américain. Even the name has "American" in it. Tradition and pride, expressed by people colliding with one another, and working unbelieveably hard to accomplish a momentary blip of glory. Or, like some of the people I went to school with, feeling sufficient societal pressure to consent to merely sitting on the bench in uniform (but at least they had the privilege of exercising to the point of vomiting at practice!).
  • People across the nation gather around the TV. What could be more fitting, considering how much other time they spend there? The pregame show lasts for hours on its own, and the television show that comes on after the game receives instant recognition, if not viewership. Commercial TV is at its zenith, selling and displaying advertisements that will hopefully stimulate conversation and attention. The half-time show exhibits famous music stars in a performance spectacle that a variety of people will critique. National TV is one of the connecting threads, along with franchises and store chains, that bind the US into a gloriously bland whole.
  • Naturally, along with the TV-watching comes the food, fried and meaty and easily-prepared, not like that labor-intensive Thanksgiving stuff. As everyone knows, people can't be expected to gather together without eating. And if you're going to sit inertly for an extended period of time, you need to keep your hands busy doing something. What's the point of living in a country of plenty if you can't be decadent, at least on a holiday?
  • Some may say that the lack of gifts makes this a so-so holiday at best. I can't argue with that, but at the same time, the lack of gift-giving makes this holiday more similar to the way people act most of the time. In fact, the surge of entertainment-system upgrades that coincides with this holiday means that people have the chance to give to themselves. They give the gift that really keeps on giving: an enhanced portal to a rapid-fire, continually-renewed reality, an escape from drab everyday life. More sophisticated entertainment means more efficient happiness (at least, that's how I interpret the way the purchases in the Sims work). Quite American indeed.

Sunday, January 28, 2007

peeve no. 246 is the term Syntax Sugar

As peeves go, my personal dislike for the term "syntax sugar" doesn't register all that high. It's the psychological equivalent of making a lip twitch. And, like I wrote in the rant about the acronym AJAX, I have no trouble understanding the usefulness and accuracy of this term. It's an irrational peeve. My ire is aimed more at its connotation or implication than its denotation.

Here, what I mean by syntax sugar is "syntax that makes a programming language easier to use rather than more capable". Without syntax sugar, people could give the computer the same instructions; they would just need to work harder at achieving the necessary mindset for the translation from pseudocode to actual code. Syntax sugar is "sugar" because it makes a language sweeter without making it more substantial or filling, at least from the point of view of a compiler or language designer.

My gripe is that syntax sugar is worth more than the term implies. Syntax sugar is not empty calories, to extend the analogy. In fact, extending it further, syntax sugar is the "presentation" part of food preparation that you may have heard people harp on as being so important to the total effect. (Two foods may taste excellent together, but if you stuff 'em in a blender, gourmands may not touch the mixture with a ten-foot pole.)

Basically, the attack on the "syntax is unimportant" assertion has two flanks, one pedantic and the other empirical. First, fundamentally speaking, we know that a Turing Machine can simulate another Turing Machine. If my syntax expresses a Turing-computable algorithm, yours can too, even if the extreme case is writing a full-blown interpreter that translates my syntax to yours. So almost all syntax is syntax sugar in the theoretical computer science-y sense. All you need is the syntax of the Brainf*ck language. Clearly, we foolish humans want our syntax sugar for our algorithms.

Second, experience has proven that syntax is important, because syntax is the prime, perennial point of complaint.
  • Exhibit A: using indentation/whitespace to delimit code blocks rather than braces. As syntax arguments go, this one is more pointless than most because it's about mere delimiters, but otherwise rational folks will turn into raving nutters at the suggestion that braces be replaced.
  • Exhibit B: Perl's <> and $_ . These two little syntax entities are exceedingly common in Perl code. Both are cryptic as anything, but the sheer convenience factor more than makes up for this. Perl coders seem to almost always use them and take the resulting hit in readability. These two are syntax sugar of the purest kind, but nevertheless vital to many programmers.
  • Exhibit C: Huffman-coding of language constructs. I'm not referring to true Huffman information encoding, but the general concept as employed by language designers: a construct's frequency of use is inversely related to its length or ease of use. When programmers complain about writing full anonymous inner classes in Java for GUI event handlers, they are complaining about the faulty Huffman-coding of anonymous inner classes: "why must I type so much to accomplish something that comes up so often?". A similar phenomenon is programmers who are trying to switch from the imperative paradigm to the OO paradigm, and end up creating overstuffed classes because of the "bother of creating a new class just to do minor task X" (to some extent, they may be right). A more positive use of Huffman-coding is to make the programmer work harder to do things he probably shouldn't, such as global variables. Syntax must be more than just sugar, because it affects programmers so much.
Syntax matters. Give me some sugar.

Monday, January 22, 2007

someone else explained it better

A while back, after reading some blog posts by people on either side of the perceived Java/Ruby rift, I reached the insight that they can't find common ground because they have different values for the choice of programming language. Thus, using the flashiest title possible, what we have here is a clash of programming language civilizations.

Kevin Barnes' Code Craft blog, which I have favorable first and second impressions of, seems to express the same conclusion in the entry Freedom languages. But rather than two civilizations with two sets of values, there are two kinds of languages: freedom and safety (but note the section at the end entitled "Safety isn't safe and freedom isn't free"). Freedom languages encourage the programmer to do whatever he or she wants, and safety languages restrict the programmer or code in some way, whether to enforce contracts or teamwork or performance. I like the distinction because it's more general than the usual litmus test of static-vs-runtime data typing, which falls down in cases when a language offers both options.

Bonus link: I commented about Web continuations and Rife. Read here about why the idea may not be as spiffy as advertised.

Saturday, January 20, 2007

some advice in retrospect

I went on Wikipedia to do one simple thing: look up what the comic-book aficionados mean when they say "Golden Age" or "Silver Age". I have since realized this was a mistake. Don't do this unless you have time to burn! You see, as I was reading I found a link to another Wikipedia article that looked interesting. And in that article there were many links to more specific subject matter, so I opened up some of those, in new browser tabs...an exponential growth of tabs. And so forth, more or less, until I freaked out about what time it was. How much of that information will I remember a mere couple days from now? Very little - my knowledge-absorption reached saturation level all too soon. Curse you, Wikipedia, for the deluge of detailed minutiae presented by your army of interlinking editors!

Postscript: I was tempted to make a snide comment about the people who took the time to key in all this information about fiction, but I'm a grateful recipient. I don't have any motivation to complain. Remind me again how fan communities got by before the Web came along, and especially Wikipedia? For that matter, remind me how casual fans like I managed to understand anything in serialized entertainment without this valuable reference.

Post-postscript: Truth be told, I'm in awe of people who know certain topics so deeply. I'm not good at spotting continuity errors, but I'm intrigued by the lengths writers will go to reconcile contradictions. "No, no, Pooky only seemed to murder Wubbly. The murdered Wubbly was a clone of the real Wubbly, who was working behind the scenes with Razmatazz to undermine the progress of Necros. The Wubbly clone came about when Wubbly's DNA merged with the psychic shadow of Hermy in a tragic smelting accident."

Tuesday, January 16, 2007

peeve no. 245 is grouping programmers by language

It just happened again: some innocent shmuck wrote a blog entry wondering about how programmers in language camp X generally differ from programmers in language camp Q by some other characteristic. Fools. I can't speak for anyone else, but I have had the (un)fortunate pleasure of learning and/or using multiple languages in different contexts. Some for work, some for leisure. Anyone who wants to put himself in a box labeled "COBOL" or "C++" or "Unlambda" can go ahead. Code Complete, seemingly one of the most consistently recommended books in existence, has a section entitled "Program into Your Language, Not in It". The point is that just because a language happens to (not) have a feature, does not mean the programmer is doomed to thinking the way the language most easily supports. The famous Sapir-Whorf Hypothesis asserts that one's language affects the way one thinks. Don't prove it right!

That's why it's patently ridiculous and, dare I say, a tad unprofessional to stamp someone with a particular programming language. It's somewhat like identifying an individual, whether voter or legislator, with a political party. Does that person necessarily agree with every nail in the party platform? Nooooo. I'm a unique, precious flower, dammit. I suppose someone could try to correlate a "programming language of choice" with some other random statistic, but what's the point? I mean, honestly. A programming language is for ordering machines around.

On the other hand, I can fully understand being an active part of a community whose focus is a programming language. Like with anything else, a small number of people tend to do most of the work; the rest do a little here and there to help out. Without the true believers, the people who continually push a language forward, a programming language pretty much deserves to die in obscurity. Doubly so if the language is open-source rather than managed by a company. Hats off to those folks - the ones O'Reilly calls alpha geeks. But have you noticed that they're people who also have breadth? There are few truly new programming language ideas. The staunchest supporters of a programming language know other programming languages, too, because those other languages often have at least a couple ideas worth stealing. It's reasonable to group programmers by a language they contribute to. It's simplistic to group programmers by a language they happen to use or advocate.

I'm not a Java programmer. I'm not a C++ programmer. I'm not a Perl programmer. I'm not a Javascript programmer. I'm not a Groovy, Scala, Python, Ruby, Boo, C#, F#, VB programmer. My goal is to be someone who gets stuff done, to be the ultimate Ninja Turtle who can switch between the katana and bo and nunchuk and sai at a moment's notice. Of course, my resume indicates what my actual experience in each language consists of...

Monday, January 15, 2007

revisiting the concept of truthiness

Usual disclaimer: I'm not a serious scholar of philosophy. I'll be freely using ideas whose sources I can't even remember. I cannot claim originality for anything here, without being sure. Moving along...

Colbert's "Truthiness" is very much the little word that could, at least for the past couple years, and in the eyes of dictionary and news people. Truthiness has successfully brought a timeless philosophical topic, the issue of how truth is defined, into wide-reaching public awareness. I also consider it a symptom of one of the marks of a healthy/free society: debates not only about specific issues and questions but also paradigms and assumptions. However, the simple use of truthiness as a term of mockery overlooks several deep, thorny points. The following explanation will be reminiscent of what I wrote about truth and wikipedia.

As I understand it, truthiness means arriving at truth subjectively as opposed to objectively. The opposite of truthiness is only granting truth to the objective realm. Naturally, dividing up the world into two neat chunks of objective truth and subjective falsehood is nothing new; see Hume and Positivism and so on. It has also been a popular thing to argue about. Keeping in mind that I'm considering one lil' concept here, and not a robust philosophy, here are some indications that it is not all-sufficient:
  • Objective truth is deniable. I covered this point in the post about wikipedia. I don't mean that evidence is worthless. I do mean that evidence can be disputed - in fact, the strength of an item of evidence is how well it stands up to dispute. Conflicting evidence and the method of measurement are just two avenues of attack. This isn't a compelling downside, since almost all statements are deniable somehow (even if in some cases those denials would mark someone as clinically insane). I mention it merely as a reminder that if Alice and Bob are talking about Eve, and Alice refers to evidence from Carol, Bob can counter Alice by smack-talking about Carol's evidence-gathering abilities. On the other hand, many people can vet objective truth, so only the foolish would casually ignore it. And if someone is almost alone in denial, then he or she is likely mistaken.
  • Not all truth is objective. Some statements can't be evaluated objectively, but nevertheless have a definite truth value. Intuitions about someone else's state of mind fall into this category. And some people are correct far too often in order for this facility to be considered wild guessing. Sometimes the mind can extrapolate a large conclusion from an assortment of tiny, fuzzy data points - a process known as induction or gestalt reasoning. None of the individual signs would constitute conclusive proof, but taken together the case is strong. This truth is not achieved objectively but subjectively, because the mind of the observer plays such an important role that no two people would reach the same truth given the same data. Intuitions may be true or false just like any other statement, or half-true or mostly-false. One need only look at an optical illusion to realize that intuitive truth has its own weaknesses, however.
  • Consciousness exists but is not objective by definition. All philosophers, regardless of their opinions about the definition of truth, admit that thoughts and emotions have some degree of reality. In other words, the subjective realm exists, and therefore statements related to it can be true or false. If someone says he or she dreamed about yellow matter custard dripping from a dead dog's eye, no one else can evaluate the truth value of that statement, but the statement has a truth value because the dreamer can dream. To put it another way, suppose that someone created the ultimate android, an artificial lifeform that mimicked a person exactly. Could we determine if the android had consciousness? "Sure", you might say. "Just ask it about its consciousness." But if the android mimicked consciousness precisely, we could never know for sure. After all, we couldn't disassemble it to find its consciousness, no more than we can dice a brain and locate consciousness. Yet human consciousness exists, apart from objective truth.
  • The objective and subjective realms are not cleanly separated. I've been writing under the unstated assumption that the objective and subjective realms are disjoint - that is, the two realms have an empty "chasm" in-between. Not so. Just as someone employs binoculars to see a far place, the subjective realm is how someone observes (and interprets!) the objective realm. If event B occurred after event A, then did A cause B? The events A and B are objective, and A may or may not have "really" caused B. But causation is a subjective conclusion applied to these two objective events. A cause and effect relationship is a cooperation between the two realms. In the scientific method, there is a vitally important division between hypotheses and theories and laws (subjective) versus observations and experiments and measurements (objective). One, if not the prime, characteristic of science is a systematic joining of the subjective and objective. Ideally, the resulting synthesis is as objective as possible (Occam's razor). The subjective and objective are unavoidably linked.
  • Ethics always involves more than objective truth. This point is the clincher, although it's more tangential to truth per se. Facts do not compel someone to act ethically. Of course, any reasonable decision should be based on facts, but ethics is more about the question "now what?" than "what's going on?". For instance, two people may be in the middle of a miserable situation. One seeks to alleviate it; the other seeks to exploit it for personal advantage. Goals, values, and such are of the subjective realm. When people agree about a common (subjective) ideal, then they can use objective truth to argue for a specific course of action. And sometimes the facts are not in question, yet the ethical debate remains far from over.
Having flipped all these bits to get the above points off my chest, I feel like I should add that a milder application of the truthiness concept is less problematic (I think). Instead of defining truthiness as "arriving at truth subjectively", define "weak truthiness" as "disregarding disagreeable objective truth". Anyone who founds his or her beliefs on "weak truthiness" is clearly deluded to some degree, no matter what his or her beliefs or (ahem) political leanings may be. Or, to put it in more charitable terms, perhaps a person afflicted with this condition is engaging in wishful thinking or unjustified hope. In any case, truthiness in the strong sense (i.e., as defined other than this paragraph's "weak" sense) is a philosophically shaky invective since its opposite, granting truth only to the objective, isn't realistically tenable.