Friday, June 16, 2006

Cargo Cult Programming

Sadly, I know a lot of people and companies that have this style of programming:

Threads are a big issue with me. Too many people use threads for the wrong reasons. If you think you need another thread, you better think careful and hard about alternatives because most applications can run just fine single threaded if done properly. Multithreaded programs introduce far more complexity that may outweight its benefits. Of course there are times when multithreading is absolutely necessary but UNDERSTANDING when the right time and wrong time to use threading makes the difference between a good programmer and not so good programmer.