The Millions

To Your Left Is Coding, to Your Right Is Safety: Programming Stories

1.
The logic of novice programming goes something like this:

Run function (x, y)

If x is greater than y:

Do this

Else if y is greater than x:

Do that

Else:

Something else happens.

I quickly learned that computers don’t like choice, and they don’t like the unexpected. If you fail to anticipate every scenario or condition—say, that x and y might be the same number—it will shout at you and stop working. If you tell the computer that x is A and y is 6 it will shout at you and stop working. As a bad novice programmer, I know this from experience. Treat the computer like someone you don’t trust to turn off the lights and lock the door without careful instructions. Be that micromanager who tells his employee what font to use and how to stack the coffee cups. Forget all you’ve heard about AI and machine learning and algorithms. Novice programming is a bit like running army drills. First do this, then that. Then loop back and do it again.

I have a humanities brain, or at least it’s trained that way. I told myself I was a bad programmer could not resist a touch of Victorian sentiment. The marriage was not simply a logical consequence of the death of the first Mrs. Rochester. First this, then that.

Você está lendo uma amostra, registre-se para ler mais.

Mais de The Millions

The MillionsLeitura de 9 minsPolitics
The Sex Worker Next Door
A writer learns of her grandmother's secret past, inspiring a novel's worth of research about the working women of contemporary China. The post The Sex Worker Next Door appeared first on The Millions.
The MillionsLeitura de 7 mins
States of Strangeness and Wonder: A Great American Road Trip
Maybe that is the essential truth about America: there’s no giving up on it. There is always the possibility of reinvention and rebirth. The post States of Strangeness and Wonder: A Great American Road Trip appeared first on The Millions.
The MillionsLeitura de 11 mins
Philosophizing the Grave: Learning to Die with Costica Bradatan
He offers us a claim about how some brave souls die for ideas, how their sacrifices illuminate those malignancies that threaten a society in collapse. The post Philosophizing the Grave: Learning to Die with Costica Bradatan appeared first on The Mill