Computer programming & writing fiction: Art as a recruiting poster

IBM SelectricHow is computer programming like writing fiction? Is writing code anything like writing stories?

When I was young, perhaps seven or eight, I banged out my first short story on a second-hand IBM Selectric typewriter my mother brought home from her office. Powered on, the Selectric vibrated the whole desk and emanated a low mechanical hum, some unseen engine in the contraption idling. I still recall the smell of the ink in the typewriter ribbon and the satisfying, officious schock as the typeball jumped from its perch and tapped lettering onto the crisp onion paper I’d fed into the roller.

The story I wrote was a retelling of Richard Connell’s “The Most Dangerous Game” transplanted to a science-fiction setting. (In fact, I think I creatively titled it “The Most Dangerous Game in Space”.) My determination to spend hours coping with that unforgiving contraption went beyond an affinity for the classic short story. As an avid young reader, I’d come to wonder if I could pen my own fiction. My aspirations weren’t so bold as to imagine being published, only to see if I could write my own, but later that dream crept in too.

The Most Dangerous GameAround the same time (this would’ve been 1979), I cajoled my parents into buying a home computer. Silicon Valley was marketing home computers as personal productivity assistants, devices to balance one’s checkbook, manage a home mortgage, track stocks, and so on. Home computers were also being pitched as tools to give students an edge in school. I couldn’t care less about schoolwork—and I’ll be damned if that computer ever balanced my parents’ checkbook—but with a home computer I could play video games, my only real motive for wanting one.

Innumerable hours playing videos games led me to try to write my own. It was a natural progression, just as reading I, Robot set me to thinking of my own robot stories.

I never did write a video game, at least not one that anyone would want to play, but software development did become my career path, one I’m still following over 35 years later.

Likewise, although I didn’t finish that short story, writing fiction remains an important passion in my life, even more important than programming.

Walking these paths, I’m sometimes asked if writing software and writing stories are the same. Or, at least, if they bear any similarities. And my answer is, yes, there are commonalities between the two.

I’ll explore more parallels in the future, but already I’ve alluded to one thing they have in common. I’ve never met a good writer who wasn’t first an avid reader, and I’ve never met a good programmer who wasn’t first an avid computer hobbyist.

Art is a kind of recruiting poster for itself. An art attracts its own artists.

Next: Is coding art?

On Don Herron’s Fritz Leiber Tour

Our Lady of Darkness by Fritz LeiberSaturday I had the pleasure to take Don Herron’s Fritz Leiber Tour. Like his more famous Dashiell Hammett Tour, Herron recreates through personal research, recollection, and local points-of-interest Leiber’s life story and the circumstances that led him to spending his last years in San Francisco.

My attendance in the tour was accidental. In October, while talking with Nicole Gluckstern after the conclusion of the Bikes to Books Tour, I mentioned what can only be called a minor parallel in my life with Fritz Leiber’s, and how I’d been meaning for years now to learn more about this prolific author. Nicole told me she was in talks with Don Herron to have him lead a one-off, by-invite-only Fritz Leiber Tour. I eagerly jumped when she asked if I wanted to attend.

Leiber’s life defies a summary in brief. The child of actor parents (his father appeared in a number of early Hollywood productions), Leiber developed an avid readership over a career of decades with his wide-ranging work—science fiction, fantasy, sword-and-sorcery, horror & the occult, and more. In addition to experience in theater and acting, Leiber was an amateur astronomer and one-time editor of Science Digest, making him the rare science fiction writer with an actual background in science.

Fritz Leiber as Dr. Arthur Waterman in Equinox: Journey into the Supernatural (1965 or 1966). Will Hart, (CC BY 2.0)

Fritz Leiber as Dr. Arthur Waterman in Equinox: Journey into the Supernatural (1965 or 1966). Still by Will Hart (CC BY 2.0)

As a child and young man, I was familiar with Leiber through his science-fiction short stories (although I don’t recall reading any of his novels). His stories were featured in “best of” collections and back issues of science fiction magazines I dug out of dusty cartons in Livermore’s public library.

Then, via Dungeons & Dragons, I learned of a swords-and-sorcery series featuring Fafhrd and the Gray Mouser, a duo comprised of an oversized swordsman and a diminutive thief. When I saw this series was penned by someone named Fritz Leiber, I distinctly recall thinking, “What a coincidence—there’s a science-fiction writer with the same name.” No coincidence, it turns out. (According to Herron, Leiber coined the phrase “sword-and-sorcery.”)

A personal friend of Leiber and his second wife, Herron is a fount of history and insight into this prolific author. Much like his Hammett tour, Herron led us down and around Geary Street and the Tenderloin (names which might ring familiar to readers of Bridge Daughter). Then we boarded MUNI and trekked up to Corona Heights (and its stunning views of the city) in the Castro District. All locations have some connection to Leiber and his semi-autobiographical Our Lady of Darkness. It’s a Lovecraftian novel that takes place in 1970s San Francisco whose main character endures a battle with the bottle and grief over the death of his wife, just as Leiber was undergoing at the time.

I hope Herron considers permanently reviving the Fritz Leiber tour—but I suspect the only way that would happen is if there was a strong revival of interest in Leiber himself. Personally, I’ve already added Our Lady of Darkness to my reading list, and I plan on searching out more of his work.

About that parallel

When I earlier claimed a parallel with Leiber’s life, I should explain. I don’t mean some personal connection with the author or his work, only that Leiber wrote about an event in his life that rang similar to one of my own.

Eight years ago, after going through what can only be called a divorce immediately followed by a second relationship gone sour, my trials culminated with me busting up my shoulder in a bad accident. I severed all the tendons there, leaving me with a separated shoulder. (To this day it looks like I have “two” shoulder bones.)

I found myself bedridden for six weeks and unable to move my right arm. Day and night I consumed painkillers, delivery Chinese food, and—unwisely—whiskey. (I wrote about this episode for We Still Like‘s “Gravity” issue, a piece titled “Taylor & Redding”.) I spent my time in my apartment, alone, absorbed with Miles Davis and Cal Tjader. I spent my less stuporous hours reading whatever I could get my hands on. In particular, I located at the library a thick collection of Dashiell Hammett’s Continental Op stories, which I consumed cover-to-cover.

To keep from going stir-crazy, I took long walks up and down Nob Hill and through the Tenderloin, often at odd hours of night. Due to the painkillers, sleep was varied and sporadic. Some of these walks were as late as three in the morning, when the insomnia was too much to bear.

On these walks I discovered locations and buildings named in Hammett’s work, all mere blocks from my Geary Street apartment. The old part of San Francisco is rife with short streets and dead-end alleys, too insignificant to be incidentally included in a story for local flavor, yet Hammett would feature them prominently in his work. These names did not come off a map or phone directory, these were streets intimate to Hammett, a writer obsessed with specifics and verisimilitude. Some of the Continental Op’s stories are set in Chinatown. It got so I went out of my way to seek them out.

Humphrey Bogart and "the dingus." (CC BY-SA 2.0)

Humphrey Bogart and “the dingus.” (CC BY-SA 2.0)

This led me to reread Hammett’s The Maltese Falcon (which I’ve written about not just once but twice). There, in this single detective novel, I re-experienced in concentrate everything I’d experienced the prior weeks poring over the Continental Op stories. In The Maltese Falcon Sam Spade walks streets I walked every night, attends theaters down the block from my apartment, eats at restaurants still in operation. Sam Spade, living and breathing in San Francisco circa 2008. My front stoop was backdrop and stage for this classic of American literature.

It’s not merely the rush of casual literary association—similar to the rush of meeting a celebrity—that overwhelmed me. Details of the novel easily overlooked snapped into clear focus. That gunman Thursby is shacked up at Geary & Leavenworth suggests he’s residing on the hairy edge of the Tenderloin, an area rife with flophouses, while the supposedly-delicate Brigid O’Shaughnessy rooms on posh California Street. Sam Spade rides streetcars up and down Geary Street, a notion that defies imagination, as Geary in downtown San Francisco is narrower than the suburban lane I grew up riding my bike on. (The Geary streetcars were known as “Iron Monsters” and phased out in 1956 to make way for America’s love affair with automobiles.)

I’d been forced to move to Geary Street a few years earlier due to a bad break-up and the meager income I drew, living paycheck-to-paycheck tending bar. I wasn’t happy to reside a stone’s throw from the Tenderloin, infamous as San Francisco’s seediest neighborhood. It’s not—there’s a dignity in the TL easily overlooked—and Hammett’s work gave me a second sight, another way of reading my surroundings, and with it came another way to see my own circumstances. I say without qualification, Dashiell Hammett’s writings carried me through one of my lowest periods of my life.

Some time after my recovery—personal and monetary fortunes on the rise—I sat at the bar of John’s Grill in Union Square nursing a drink and waiting for my dinner to arrive. (“Jack LaLanne’s Favorite Salad”—a cold seafood salad with avocado slices, pure protein and fat.) On the back of the menu I found a newspaper article the restaurant had reprinted, “Stalking Sam Spade” written by one Fritz Leiber.

And I distinctly recall thinking, “That’s funny…there was a science fiction writer with that name.”

Stalking Sam Spade

Light reading while waiting for your steak medium-rare at John’s Grill.

After Leiber snapped out of the grief over his wife’s death and started drying up, he too rediscovered the city he lived in by reading it through Hammett’s lens. Geary Street, he wrote, is the “spine” of The Maltese Falcon, and he set out to locate its landmarks much as I’d attempted myself. Leiber was more organized about the project than I ever was, and “Stalking Sam Spade” does a much better job detailing his discoveries. Learning about San Francisco’s past through a detective novel led him to search for the history of the apartment house he lived in, culminating in his building becoming the nexus of Our Lady of Darkness.

Perhaps the allure of “rediscovering” a city through literature is not unique to San Francisco, but it’s certainly an active and avid pastime here. While some people move to San Francisco solely concerned about which address is currently beau chic or which nightspots are ripe for seeing-and-being-seen, I’ve encountered just as many who’ve found themselves ensnared in this game, the game I played those sleepless nights. It’s much as the Baker Street Irregulars “play the game” retracing Sherlock Holmes’ footprints as though he’d lived and breathed. With each step of the game comes the chill of revelation, the buzzing realization you’re walking the streets Hammett, Kerouac, Frank Norris, and others once trod daily. Each San Francisco writer is inspired in very different ways by the same city—a city that reinvents itself every generation, granting each artist who lands here a bed of fresh soil to sow and till. Some waste it, some fail to tend their seedlings. Others grow oak trees still standing today.

As Herron pointed out on our tour, Leiber got one fact wrong in “Stalking Sam Spade”: Spade’s apartment was most likely at Post & Hyde (not Geary & Hyde), the same location as Hammett’s apartment when he lived in San Francisco. A landmark plaque is on that building today, just as there is one at Burritt Alley—the location of the first murder in The Maltese Falcon—a plaque that did not exist when Leiber wrote his article.

Photo by Parker Higgins

Photo by Parker Higgins (CC0)

Another plaque that did not exist at that time is today placed on the Hotel Union at 811 Geary Street. It’s dedicated to Fritz Leiber and the book he wrote while drying up there, Our Lady of Darkness, a book inspired by his quest to re-walk the chapters of Hammett’s San Francisco and see the world anew.

Learn more about Don Herron’s tours and books at donherron.com

Bridge Daughter on sale for 99¢ all December

Bridge Daughter by Jim NelsonGo ahead, open before Xmas: As part of Amazon’s “120 Kindle books” promotion, Bridge Daughter is on sale the entire month of December for the bargain price of 99¢!

Jump straight to Bridge Daughter on Amazon to take advantage of this deal or visit Amazon’s “120 Kindle books” to see all books priced at 99¢. (Sale ends December 31st.)

“Thought-provoking story blends action, introspection, and social commentary.” – Publishers Weekly

“Intelligent, gripping, and hard to put down.” – The Drifting Paige

“My favourite novel of 2016.” – Katherine Hayton, author of The Three Deaths of Magdalene Lynton and Breathe and Release

The Drifting Paige reviews Bridge Daughter

The Drifting PaigeBook blogger The Drifting Paige recently published a flattering 5 out of 5 review of Bridge Daughter. To quote:

This is an incredible scifi novel that bridges (ha) the gap between religion and science. It is so emotionally superb and is not overhanded with any of the themes … Nelson achieved the nigh impossible. You learn and grow with Hanna, you come to understand the world she exists in and the choices that she has to make…

I would suggest this novel to everyone- it is intelligent, gripping, and hard to put down. … Nelson is a tried and tested author, and I genuinely suggest his book to all scifi and high fantasy lovers.

Read the entire review (which masterfully avoids dropping a single spoiler) at The Drifting Paige. If you haven’t already, download a preview of Bridge Daughter at Amazon.

Sherlock by train

Sherlock Holmes & Dr. Watson by Sidney Paget (1860-1908) (Strand Magazine)(Update: The events related in this blog post led to me writing A Man Named Baskerville, now available in Kindle and paperback.)

Last summer I had the great fortune to spend ten weeks in Japan. I traveled by train up and down the islands, from the agriculturally diverse Hokkaido to the richly historical city of Nagasaki at the southern tip of Kyushu. Japan is a fugue of culture, architecture, and landscape. The country never repeats itself, but is stitched together by interlocking themes.

On one leg of the trip I made the key mistake of failing to pack a second book, thinking B. Traven‘s The Death Ship was a hefty enough read until my return to Tokyo. Well, I ripped through The Death Ship in no time (a great novel, by the way) and found myself facing a long stretch of time on Japan’s shinkansen (bullet train) without a thing to read. Even if I understood Japanese, Japan’s trains are not like other systems where you might chance on a discarded newspaper or a light magazine in the seat-back pocket. The Japanese do not leave their detritus behind when they detrain. They even pick up their trash when they exit a baseball game.

Desperate, I searched my smartphone and discovered on my Kindle app The Adventures of Sherlock Holmes (1892), the first published collection of Holmes’ adventures. Most of the collection’s story titles are as well-known as books of the Bible: “The Adventure of the Red-headed League”, “A Scandal in Bohemia”, “The Adventure of the Speckled Band”, and more. The stories have fallen into the public domain, hence the collection is often the free sample book Amazon supplies when you buy a Kindle or install their app.

Before my trip to Japan, I was never a fan of Sherlock Holmes. I found the Victorian airs and British pleasantries stuffy compared to Holmes’ American counterparts. When I first read “The Adventure of the Dancing Men” at age ten or eleven, I was going through a boyhood codes-and-ciphers phase. By all rights I should have loved the story. Instead I felt a bit let down by its lack of focus on actual cryptanalysis. As I learned on that train ride, Doyle’s stories are often more concerned with a viscount’s ancestry or Tsarist intrigue or preserving the good name of the British Empire than the dead body lying at Holmes’ and Watson’s feet.

All this is to explain that although I’ve read mystery fiction my entire life, from Encyclopedia Brown at the age of seven to the adult pleasures of Chandler’s The Long Goodbye (which I reread every few years), on that bullet train ride I was not terribly conversant with the Sherlock Holmes corpus. I’d read The Hound of the Baskervilles a few years before at an acquaintance’s suggestion when I mentioned I’d enjoyed the neo-Gothic Rebecca. Other than some Sherlock Holmes movie spoofs and casual viewing of Jeremy Brett’s BBC series, my exposure to the detective was largely through cultural references and the turns of phrase that have entered our common language, much like someone ignorant in Shakespeare will recognize bits of Hamlet.

Something wonderful happened on that train ride from Tokyo to Kyoto. As these stories of detection and deduction spooled out before me, I realized much of Doyle’s contemporary British audience would have been reading these stories on trains as well. Since he was writing for Strand magazine, Doyle’s audience would’ve picked up a copy at a newsstand before boarding, the Victorian version of buying a thriller at an airport bookstore before a long plane ride.

The cadences and rhythms of Doyle’s stories almost appear crafted for train reading. The percussion of the shinkansen tracks below and the low whistle of the passing wind was the perfect white noise to accompany a Holmes mystery. More than once I started a story as our train left the station, and by the time Holmes was announcing his solution, we were slowing for our next stop. Obviously Doyle wasn’t timing his stories for bullet trains, but it felt he crafted them with a sense of being read in a single sitting between destinations, whether traveling by steam or horse or electromagnets.

How often does Holmes send Watson scurrying to locate a train schedule to confirm some paramount clue or destroy an alibi? How often does Holmes engage in mysterious research in London before setting off by train first thing in the morning, only revealing the details of his research to Watson on the ride north?

Holmes and Watson call for cabs, hire carriages and watercraft, borrow steeds, follow bicycle tracks, and so on. Freedom of mobility is vital to a Sherlock Holmes story. It’s the core question in “The Adventure of the Solitary Cyclist” and “The Adventure of the Copper Beeches”. A horse-and-carriage ride is the central puzzle in “The Adventure of the Engineer’s Thumb”. The climax of A Study in Scarlet involves, of all things, hailing a cab off Baker Street.

All fiction writers are writing to a perceived readership, whether they acknowledge it or not. This is distinct from a “target audience,” which commercial writers are all too familiar with. (A staff writer for Wired magazine will consciously know her target audience, which is distinct from the target audience for a sportswriter in a Midwestern farming community.) My notion of a “perceived readership” is more personal than a target audience, a writer’s internalization of their desired audience rather than a market demographic.

Some writers write with magazine editors and agents and publishers in mind—people they hope will publish the story they’re crafting. Some writers think of authors they admire or authors they desire to emulate. Some writers are thinking of friends and family whom they hope to impress, or at least earn their respect. Some writers are thinking of the public at large (whatever that abstract concept means) hoping to earn a wide audience.

Unlike “target audience,” it doesn’t mean the writer is actually writing for this perceived reader. The writer doesn’t actually believe only their friends will read their book, or that some big-name writer will pick it up, especially since that big-name writer may be dead. But just as painting a house requires a house to apply the emulsion, a perceived readership in the back of a writer’s mind gives the writer a kind of fuzzy target to aim for without committing to it.

By the time I returned from Japan, I’d devoured three Sherlock Holmes collections. For all the faults and stuffiness, Doyle is a generous writer, one who engaged with his readership and even challenged them a bit, but never denying them their desires. I suspect Doyle (like Dickens) read correspondence from his readers and was sensitive to their criticisms and praise. I don’t think it’s an accident Doyle modeled his first-person narrator as a physician, Doyle’s own intended profession, or that Watson wrote of Holmes’ exploits under the conceit of penning newspaper articles. Not only did it fill the public with the sensation Holmes was alive—many believed so at the time—but Watson’s audience also gave Doyle the house for which to apply the paint.

Doyle’s perceived readership began to coalesce with his target audience, like blurry double-vision sharpening into a single distinct form. I’m not arguing this is desirable or advantageous, but I do think it happened and that Doyle’s writing was the better for it. I also believe this is part of the reason for Sherlock Holmes’ character persisting as a vivid creative construct well into the 21st century. After all, Holmes’ as an individual is not some empty vessel for each generation of readers to pour their own ideals into. His persistence comes from being odd, unique, idiosyncratic, and ripe for reinterpretation.

This connection between author and perceived readership is a direct rebuttal to the 20th century myth of the “walled-off” author, the lone genius in a room with a typewriter penning works of high art unsullied by mammon or mass culture. While Nabokov, Faulkner, and Woolf may not have been writing for money and celebrity—although I think people are too quick to assume such things—I certainly believe all three were writing for a perceived readership, some idealized notion of the reader they wished to attract.

With the rise of ride-sharing like Uber and Lyft, and with the inevitable arrival of driverless cars in the future, we may experience a fresh resurgence of people with additional time on their hands to read. Who knows? Much as digital music led to the renewal of singles, there may soon be a burgeoning market for short stories and story collections, mysteries and otherwise, as people seek a brief form of entertainment while traveling.

What kind of story matches the cadences and rhythms of a self-driving car? And can America today produce writers as sensitive and generous as Doyle?

Quote

Publishers Weekly reviews Bridge Daughter

Publishers WeeklyPublishers Weekly has reviewed Bridge Daughter and I couldn’t be more pleased. An excerpt:

Nelson … smoothly realizes a provocative alternate present seen through the eyes of naive adolescent Hanna Driscoll. … Hanna is an engaging protagonist, and her thought-provoking story blends action, introspection, and social commentary in a stark but indirect critique of efforts to control female bodies and restrict reproductive rights.

I’m honored to be reviewed by Publishers Weekly, negatively or otherwise, and such positive comments are more than welcome. Read the entire review, and if you’ve not picked up a copy of Bridge Daughter, you can start by going here.

Status

Bikes to Books across San Francisco this Sunday

Bikes to BooksThis week marks the third anniversary of Bikes to Books, a self-guided bicycle tour of San Francisco’s literary history. Created by Burrito Justice and journalist Nicole Gluckstern, the seven-mile tour stops at every street in San Francisco named after a famed local author.

This Sunday (October 9th), as part of the LitCrawl festival, Nicole and Burrito Justice will be leading the tour themselves. They’ve arranged for live readings of the respective authors’ works at each stop along the way. The tour starts at 12:45pm at Jack London Alley and ends at 4pm at Jack Kerouac Alley in North Beach.

I’m honored to be one of the local writers reading an excerpt on the tour. I’ll be at Frank Norris St. (in Polk Gulch) reading a selection from his masterpiece McTeague, then joining the after-party at Vesuvio’s at 4pm.

So, if you’re in San Francisco, join the tour or just show up at Vesuvio’s to meet and chat with a lot of local authors and readers who love this city’s rich literary history. Cheers!

More information on Bikes to Books can be found at Burrito Justice and the LitCrawl web site.