Ryan's cog tips, and Theoden's code tips

Tuesday 8 February 2005

Ryan (not sure of his last name) is using Cog and has written up some tips on Code Generation with Python, Cog, and Nant. It's the first article I've seen about Cog, so I'm flattered.

Also on Ryan's blog are amusing coding tips from his brother Theoden. Tip #1:

litter your code with unused variables and assignments — if you have too few variables it'll make your application too light and it'll float away

and tip #2:

if you have a logical grouping of business logic, split the logic into two separate functions. Like so:

eoc_check_toxicity()
eoc_toxicity_checks()

that way if you accidentally delete one of the functions, at least some of the logic will still be there

Comments

Add a comment:

name
email
Ignore this:
not displayed and no spam.
Leave this empty:
www
not searched.
 
Name and either email or www are required.
Don't put anything here:
Leave this empty:
URLs auto-link and some tags are allowed: <a><b><i><p><br><pre>.