[Sussex] Code-writing methods

Mike Diack mike_diack at hotmail.com
Fri Nov 17 12:22:50 UTC 2006


Don't forget to use lint if you are writing C code and valgrind is handy too.
 
See:
http://www.splint.org/
 
Though the best by a mile is Gimpel's Flexelint (costly but obfuscated source) or PCLint (about 170 quid but runs under wine as well as DOS, OS/2, Win32).
 
Mike



> From: b_whelan at mistral.co.uk> To: sussex at mailman.lug.org.uk> Subject: Re: [Sussex] Code-writing methods> Date: Fri, 17 Nov 2006 11:17:20 +0000> > I agree that comments are vital where something is complicated or a "clever"> bit of code is included. Almost all programs need to be changed, extended or> the code re-used at some point. If I pick up one of my own programs after> several months, or even years, I find that the comments help.> > Programming languages vary and hence the amount of commenting needed should> be adjusted accordingly. I would suggest that PHP is an easier, and more> intuitive, language to learn that C. I first wrote a program in about 1968> using punched cards and FORTRAN II. (For the historians amongst you, I never> actually knew Charles Babbage but Ada Lovelace was a close friend). My> advice would be to choose a good language, keep code simple and adopt a> straightforward logical structure. That way you will be able to understand> your own programs and have others maintain them economically.> > Brendan> > > > __ > Sussex mailing list> Sussex at mailman.lug.org.uk> E-mail Address: sussex at mailman.lug.org.uk> Sussex LUG Website: http://www.sussex.lug.org.uk/> https://mailman.lug.org.uk/mailman/listinfo/sussex
_________________________________________________________________
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.lug.org.uk/pipermail/sussex/attachments/20061117/3ddc851c/attachment.htm 


More information about the Sussex mailing list