Although good programming is not a science, there is always value in learning from the mistakes of others. Below are a few links to resources which are hopefully helpful or interesting. Try things out with your own programming, but beware of the anti-pattern. http://en.wikipedia.org/wiki/Anti-pattern
Sometimes the best advice is to see how others organize their software
Do you really want to know all the details all the details on why 0.1 + 0.2 != 0.3 then you should read "What Every Computer Scientist Should Know About Floating-Point Arithmetic" http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html
Basic references for programming in a few select scientific programming languages
In case you need to cite something (or just want to read more) the following are good books and articles about programming.