1. [OT] How to write unmaintainable code
- Posted by jaygade Oct 13, 2014
- 1359 views
Just for fun: How To Write Unmaintainable Code and ensure a job for life.
I'm only partway through the list.
2. Re: [OT] How to write unmaintainable code
- Posted by ChrisB (moderator) Oct 14, 2014
- 1268 views
Hi
That's actually spooky!
Chris
3. Re: [OT] How to write unmaintainable code
- Posted by ghaberek (admin) Oct 14, 2014
- 1251 views
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.
-Greg
4. Re: [OT] How to write unmaintainable code
- Posted by jaygade Oct 14, 2014
- 1270 views
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.