30+ Awesome Programming Quotes

I found these programming quotes on the internet and found them too good to share with you all. Enjoy !!

Java: write once, run away!


If Java had true garbage collection, most programs would delete themselves upon execution.

Robert Sewell

There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.

C.A.R. Hoare (British computer scientist, winner of the 1980 Turing Award)

If debugging is the process of removing software bugs, then programming must be the process of putting them in.

Edsger Dijkstra (Dutch computer scientist, winner of the 1972 Turing Award)

Measuring programming progress by lines of code is like measuring aircraft building progress by weight.

– Bill Gates

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.

Brian W. Kernighan

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

– Martin Golding

When debugging, novices insert corrective code; experts remove defective code.

– Richard Pattis

Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter.

Eric S. Raymond (American programmer, open source software advocate, author of “The Cathedral and the Bazaar”)

Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program.

Linus Torvalds

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

Rich Cook

Any fool can write code that a computer can understand. Good programmers write code that humans can understand.

Martin Fowler

Good code is its own best documentation. As you’re about to add a comment, ask yourself, ‘How can I improve the code so that this comment isn’t needed?’

Steve McConnell

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

Ken Thompson

Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structural integrity, but just done by brute force and thousands of slaves.

Alan Kay

Before software can be reusable it first has to be usable.

Ralph Johnson

It should be noted that no ethically-trained software engineer would ever consent to write a DestroyBaghdad procedure. Basic professional ethics would instead require him to write a DestroyCity procedure, to which Baghdad could be given as a parameter.

Nathaniel Borenstein

No matter how slick the demo is in rehearsal, when you do it in front of a live audience the probability of a flawless presentation is inversely proportional to the number of people watching, raised to the power of the amount of money involved.

Mark Gibbs

Don’t include a single line in your code which you could not explain to your grandmother in a matter of two minutes.


The best thing about a boolean is even if you are wrong, you are only off by a bit.


Good design adds value faster than it adds cost.

– Unknown

Simplicity and elegance are unpopular because they require hard work and discipline to achieve and education to be appreciated.

— Edsger Dijkstra

Cherish your exceptions.

– Unknown

A complex system that works is invariably found to have evolved from a simple system that worked.

– Unknown

Walking on water and developing software from a specification are easy if both are frozen. 

Edward V Berard

First, solve the problem. Then, write the code.

John Johnson

Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration.

Stan Kelly-Bootle

Linux is only free if your time has no value.

–  Jamie Zawinski

Programs must be written for people to read, and only incidentally for machines to execute.

Abelson / Sussman

Programming can be fun, so can cryptography; however, they should not be combined.

Kreitzberg and Shneiderman

Copy and paste is a design error.

David Parnas

Any code of your own that you haven’t looked at for six or more months might as well have been written by someone else.

Eagleson’s law

It’s hard enough to find an error in your code when you’re looking for it; it’s even harder when you’ve assumed your code is error-free.

– Steve McConnell

I hope you like these Java Programming Quotes.


Notify of
Most Voted
Newest Oldest
Inline Feedbacks
View all comments

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.