Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword or section
Like this

Table Of Contents

Reuse Names
When To Use i
Conventions Schemtions
Lower Case l Looks A Lot Like Digit 1
Reuse of Global Names as Private
Recycling Revisited
Recycle Your Variables
Cd wrttn wtht vwls s mch trsr
Misleading names
o_apple obj_apple
Hungarian Notation
Hungarian Notation Revisited
Obscure film references
Code That Masquerades As Comments and Vice Versa
Hide Macro Definitions
Look Busy
Arbitrary Names That Masquerade as Keywords
Code Names Must Not Match Screen Names
Don't Change Names
How to Hide Forbidden Globals
Hide Instances With Synonyms
Long Similar Variable Names
Similar-Sounding Similar-Looking Variable Names
Overload and Bewilder
Choosing The Best Overload Operator
Overload new
Compiler Directives
Samuel Butler (1835 - 1902)
Lie in the comments
Document the obvious
Avoid Documenting the "Obvious"
On the Proper Use Of Documentation Templates
On the Proper Use of Design Documents
Documenting Variables
Disparage In the Comments
Monty Python Comments
Java Casts
Exploit Java's Redundancy
Never Validate
Be polite, Never Assert
Avoid Encapsulation
Clone & Modify
Use Static Arrays
Dummy Interfaces
Giant Listeners
Too Much Of A Good ThingTM
Friendly Friend
Use Three Dimensional Arrays
Mix and Match
Wrap Wrap Wrap Some More
No Secrets!
The Kama Sutra
Permute and Baffle
Theme and Variations
Static Is Good
Cargill's Quandry
And That's Final
Eschew The Interface
Avoid Layouts
Environment variables
Modify Mom's Fields
The Magic Of Global Variables
Globals, We Can't Stress These Enough!
Side Effects
Backing Out
Local Variables
Configuration Files
Bloated classes
Subclass With Abandon
Obfuscated C
Find a Forth or APL Guru
I'll Take a Dozen
Jude the Obscure
Foolish Consistency Is the Hobgoblin of Little Minds
The Nested Switch
Exploit Implicit Conversion
Raw ints
Use Octal
Convert Indirectly
Numeric Literals
C's Eccentric View Of Arrays
L o n g L i n e s
When To Use Exceptions
Use threads With Abandon
Lawyer Code
Early Returns
Avoid {}
Tabs From Hell
Magic Matrix Locations
Magic Array Slots revisited
Never Beautify
The Macro Preprocessor
Exploit Schizophrenia
Hide Error Recovery Code
Pseudo C
Confounding Imports
Toilet Tubing
Om I. Baud
Never Test
Never, Ever Do Any Performance Testing
Never Write Any Test Cases
Testing is for cowards
Ensuring It Only Works In Debug Mode
Ludwig Wittgenstein
Avoid Ada
Inline Assembler
MASM call C
Jean-Paul Sartre -- No Exit 1934
Subvert The Help Desk
Keep Your Mouth Shut
Baffle 'Em With Bullshit
Book Of The Month Club
Roll Your Own BNF
Roll Your Own Allocator
Edsger Wybe Dijkstra
SQL Aliasing
SQL Outer Join
JavaScript Scope
Visual Basic Declarations
Visual Basic Madness
Delphi/Pascal Only
Perl Only
Lisp Only
Visual Foxpro Only
Don't Recompile
Foiling Debuggers
S.I. vs American Measure
About Box
Ch ch ch Changes
Put C Prototypes In Individual Files
No Skill Required
Carry Only One Hammer
Standards Schmandards
Reverse the Usual True False Convention
Third Party Libraries
Avoid Libraries
Create a Build Order
More Fun With Make
Collect Coding Standards
IDE, Not Me!
Bypassing Company Coding Standards
Compiler Warnings
Combine Bug Fixes With Upgrades
Change File Formats With Each Release Of Your Product
Compensate For Bugs
Use Spin Locks
Sprinkle sync code liberally
Graceful Degradation
Custom Script Language
Compiler Dependent Code
A Real Life Example
How To Fix Unused Variable Errors
It's The Size That Counts
A Picture is a 1000 Words; A Function is 1000 Lines
One Missing File
0 of .
Results for:
No results containing your search query
P. 1
How to Write Unmaintainable Code

How to Write Unmaintainable Code

Ratings: (0)|Views: 2,646|Likes:
Published by Omega6288

More info:

Published by: Omega6288 on Aug 15, 2011
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See More
See less





You're Reading a Free Preview
Pages 5 to 42 are not shown in this preview.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->