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:

Ignore this:
Leave this empty:
Name is required. Either email or web are required. Email won't be displayed and I won't spam you. Your web site won't be indexed by search engines.
Don't put anything here:
Leave this empty:
URLs auto-link and some tags are allowed: <a><b><i><p><br><pre>.