1. [OT] How to write unmaintainable code

Just for fun: How To Write Unmaintainable Code and ensure a job for life.

I'm only partway through the list.

new topic     » topic index » view message » categorize

2. Re: [OT] How to write unmaintainable code

Hi

That's actually spooky!

Chris

new topic     » goto parent     » topic index » view message » categorize

3. Re: [OT] How to write unmaintainable code

Roedy Green said...

Toilet Tubing

Comments at the top of procedures should use templates that are at least 15 lines long and make liberal use of blank lines. Here's a handy template:

/* 
/* Procedure Name: 
/* 
/* Original procedure name: 
/* 
/* Author: 
/* 
/* Date of creation: 
/* 
/* Dates of modification: 
/* 
/* Modification authors: 
/* 
/* Original file name: 
/* 
/* Purpose: 
/* 
/* Intent: 
/* 
/* Designation: 
/* 
/* Classes used: 
/* 
/* Constants: 
/* 
/* Local variables: 
/* 
/* Parameters: 
/* 
/* Date of creation: 
/* 
/* Purpose: 
*/ 

I like how "Purpose" and "Date of creation" are specified twice, while "Intent" is basically the same as "Purpose" and "Designation" seems entirely irrelevant.

I'm sure it goes without saying that while this template should certainly exist in the code, it should most definitely never be used. grin

-Greg

new topic     » goto parent     » topic index » view message » categorize

4. Re: [OT] How to write unmaintainable code

I thought it was a fun read, but I found a lot of repetition in the variables section.

Then again, about mid-document, there were a lot of purely EVIL suggestions.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu