If you want to go somewhere, goto is the best way to get there.

Meaning of the quote

The quote suggests that the programming command "goto" is the most effective way to reach your desired destination or goal. It means that using the "goto" statement, which allows you to jump to a specific location in your code, can be the quickest and most straightforward path to achieving your programming objective.

About Ken Thompson

Ken Thompson is an American pioneer of computer science who worked at Bell Labs and Google. He designed and implemented the original Unix operating system, invented the B programming language, and co-developed the Go language. He has also made significant contributions to computer science, including his work on regular expressions, text editors, computer chess, and the UTF-8 encoding.

More about the author

More quotes from Ken Thompson

When in doubt, use brute force.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

I think the major good idea in Unix was its clean and simple interface: open, close, read, and write.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

We have persistant objects, they’re called files.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

One is that the perfect garden can be created overnight, which it can’t.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

Grant, if we edited Fortran, I assume that you’d put a column thing in there.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

On the one hand, the press, television, and movies make heroes of vandals by calling them whiz kids.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

You can’t trust code that you did not totally create yourself.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

It is only the inadequacy of the criminal code that saves the hackers from very serious prosecution.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

A well installed microcode bug will be almost impossible to detect.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

I wanted to have virtual memory, at least as it’s coupled with file systems.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

So maybe I can go back to being a Gardeners’ World addict again.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

The X server has to be the biggest program I’ve ever seen that doesn’t do anything for you.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

I wanted to separate data from programs, because data and instructions are very different.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

If you want to go somewhere, goto is the best way to get there.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

I still have a full-time day job, which is why it took me five years to write An Ear to the Ground, and why I won’t have another book finished by next week.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

I also have an idea for a book on biodiversity, and why and how we should be conserving it.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

We tried to avoid, you know, records. We were told over and over that was probably the most serious mistake and the reason was the system would never catch on, because we didn’t have records.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

The average gardener probably knows little about what is going on in his or her garden.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

Unauthorized access to computer systems is already a serious crime in a few states and is currently being addressed in many more state legislatures as well as Congress.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

I wanted to avoid, special IO for terminals.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

In college, before video games, we would amuse ourselves by posing programming exercises.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

It’s always good to take an orthogonal view of something. It develops ideas.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

No amount of source-level verification or scrutiny will protect you from using untrusted code.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

There’s a lot of power in executing data – generating data and executing data.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

One of my most productive days was throwing away 1000 lines of code.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

I am a programmer.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

I have to keep up with the scientific literature as part of my job, but increasingly I found myself reading things that weren’t really relevant to my academic work, but were relevant to gardening.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

There are no projects per se in the Computing Sciences Research Center.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

In fact, we started off with two or three different shells and the shell had life of its own.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

That brings me to Dennis Ritchie. Our collaboration has been a thing of beauty.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system

I am a very bottom-up thinker.

Ken Thompson

American programmer and computer scientist, co-creator of the Unix operating system