Add Me!Close Menu Navigation

Hi, I'm Alfredo Matos, a research engineer, programmer and entrepreneur from Portugal. This is my old (and closed) blog. It exists only as an archive. For more information head over to alfredomatos.com or follow me on twitter.

Add Me!Open Categories Menu

Writing code – Think carefully before doing it!

Today i wrote probably the stupidest program i have ever done. After all these years using Linux (around 5 or 6 by now), with some knowledge of bash, python, sed, awk, of all the things in the world, i got the bright idea to write a C program to parse the text output of a program. Next time, i’ll stick nails in my forehead instead of doing a program of 3 or 4 chained for cycles, with scanf‘s and printf‘s.

The final solution ? 10 or 20 lines on a bash script will solve my problems. There goes 3 hours down the drain!

Posted By alfmatos

2 Responses to “Writing code – Think carefully before doing it!”

  1. Diogo says:

    It’s not about knowing the tools, it’s about finding out which is the best one for the job.

  2. Don’t hammer a nail with a stapler. Just use the hammer.

About Me

Hi, I'm Alfredo Matos. I'm a research engineer from Portugal, with a passion for inventing new things and working on future technologies. I'm also a programmer and entrepreneur. For more information check out my main website alfredomatos.com.