background preloader

Programming

Facebook Twitter

Top 6 List of Programming Top 10 Lists. Signs that you're a bad programmer - Software Engineering Tips. Why was this written?

Signs that you're a bad programmer - Software Engineering Tips

Most of these faults were discovered the hard way by the author himself, either because he committed them himself or saw them in the work of others. This paper is not meant for grading programmers, it was intended to be read by programmers who trust their ability to judge when something is a sign of bad practice, and when it's a consequence of special circumstances. This paper was written to force its author to think, and published because he thinks you lot would probably get a kick out of it, too. 1. Top 6 List of Programming Top 10 Lists. Dijkstra Archive: A Short Introduction to the Art of Programming (EWD 316), Chapter 9. 9.

Dijkstra Archive: A Short Introduction to the Art of Programming (EWD 316), Chapter 9

The problem of eight queens The problem is to make a program generating all configurations of eight queens on a chess board of 8 * 8 squares, such that no queen can take any of the others. This means that in the configurations sought no two queens may be on the same row, on the same column or on the same diagonal. We don't have an operator generating all these configurations: this operator is exactly what we have to make. Now a (very general!) Dijkstra Archive: A Short Introduction to the Art of Programming (EWD 316), Chapter 9.