Currently browsing

April 20, 2012

Write Code for Humans not Machines

Programmers spend more their time reading someone else’s code than reading or writing their own. This is why it is important that whoever writes the code pays particular attention not only to what it does but also to how it does it. For a compiler, it makes no difference if …

DRY – Don’t Repeat Yourself

Of all the principles of programming, Don’t Repeat Yourself (DRY) is perhaps one of the most fundamental. The principle was formulated by Andy Hunt and Dave Thomas in The Pragmatic Programmer, and underlies many other well-known software development best practices and design patterns. The developer who learns to recognize duplication, and …

PHP Best Practices

PHP is the most widely-used language for programming on the web. Here are fourteen best practices that every programmer should know and code according to this guidelines. 1. Turn on Error Reporting for development Error reporting is a very handy function in PHP. By enable it, you might spotted the …

Make your own universal AVR programmer serial port

Make your own universal AVR programmer (serial port) Two types of AVR programmers can be built : 1)Parallel port 2)Serial port Serial port programmer(reference: At-Prog) is shown here. Main advantage of using serial port is you can have cable length upto 2m. You can use PonyProg2000 software to program your …