Category Archives: JavaScript

Learning by example: how bad code propagates

Studying code is one of the best ways to learn about programming. Experienced programmers use published algorithms and sample code; writing everything from scratch is foolish. Less experienced programmers often start with code they find in a book or on a web site and tinker with it to learn and solve their particular problem. Casual programmers cobble things together from code samples they don’t understand. It’s easy to find amateurish Visual Basic or PHP or Java code to make fun of.
Continue reading