1950年代には、当時の他のコンピュータ科学者やプログラマたちと同様、機械語ないし、FORTRANのような当時一般的だった非構造的な言語によってプログラミングをしていたが、その後早くから大規模なプログラムをバグが無いように書くことの困難さについて警鐘を鳴らした一人であった。1960年代後半に「構造化プログラミング」を掲げ、プログラミングの改善について多くの文献や発言を残した。当時のプログラミングでは、ループや条件分けなどの、あらゆる制御構造を「goto文一本槍」で書くしかなかったわけだが、その問題点を指摘した "A Case against the GO TO Statement"[1] という文章をしたためる(注: ダイクストラには、ホーアやクヌースなど、似た問題意識を持っていた他のコンピュータ科学者らとの手紙や学会関係の集まりでの交流にもとづき、改訂を重ねたことにより、いくつかのバージョンのある文章が多い)。
前述の "A Case against the GO TO Statement" はコンピュータ科学の国際学会ACMに投稿され、『Go To 文は有害とみなされる』("Go To Statement Considered Harmful") という刺激的な題名で学会誌(CACM)にレターとして掲載された(この出来事は、やはりクヌースによれば「go to文除去の話の二番目の場面は,多くの人たちが第一幕だと思っている事実」[3]となった)。刺激的な題名はダイクストラ本人が付けたものではなく、当時編集を担当していたニクラウス・ヴィルトが付けたもので、すぐに掲載できるレター扱いを決めたのもヴィルトである。これは後に、"considered harmful" というフレーズが業界の定番となった原点でもある。1972年には、アントニー・ホーアとオーレ=ヨハン・ダールとの共著で、"Structured Programming" という題名の書籍に、3人のそれぞれの主要分野(ホーアはホーア論理が著名なように形式手法、ダールはSimulaの設計者の一人であり、データ抽象(後のオブジェクト指向につながる)に関して解説した)に基づく、よりよいプログラミングについてまとめた。
以上のような立場から、BASICを教育に使うことにも強く反対し、(マイコン普及以前の1975年の時点で既に)mentally mutilated beyond hope of regeneration(回復の望みがないほどに精神をダメにされる)といった強い調子で否定する言葉を残している[4]。ほぼ同じことをマイコン普及初期の1984年にも述べている(EWD898)。これも、当時に少年期を過ごし、BASICを使っていた現代のコンピュータ科学者などが、「私は無事だったようです」等とネタにすることがある。
A confusion of even longer standing came from the fact that the unprepared included the electronic engineers that were supposed to design, build, and maintain the machines. The job was actually beyond the electronic technology of the day, and, as a result, the question of how to get and keep the physical equipment more or less in working condition became in the early days the all-overriding concern. As a result, the topic became —primarily in the USA— prematurely known as "computer science" —which, actually is like referring to surgery as "knife science"— and it was firmly implanted in people's minds that computing science is about machines and their peripheral equipment. Quod non.[9]
Program testing can be a very effective way to show the presence of bugs, but is hopelessly inadequate for showing their absence.
Edsger W. Dijkstra "The Humble Programmer (1972)"
(March 1968). “Letters to the editor: go to statement considered harmful”[※ 2]. Communications of the ACM11 (3): 147–148. doi:10.1145/362929.362947. ISSN0001-0782. (EWD215) - Go To 文は有害だと考えられる
(Aug 1972). “The Humble Programmer”[※ 3]. Communications of the ACM15 (10): 859–866. doi:10.1145/355604.361591. (EWD340) PDF, 1972年のチューリング賞講演
^Dijkstra, Edsger W. A Case against the GO TO Statement (EWD-215). E.W. Dijkstra Archive. Center for American History, University of Texas at Austin (original; transcription)
^Dijkstra, Edsger W. How do we tell truths that might hurt? (EWD-498). E.W. Dijkstra Archive. Center for American History, University of Texas at Austin (original; transcription)
^Dijkstra, Edsger W. Cooperating sequential processes (EWD-123). E.W. Dijkstra Archive. Center for American History, University of Texas at Austin (original; transcription)