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

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
m_
o_apple obj_apple
Hungarian Notation
Hungarian Notation Revisited
Obscure film references
Roedy
Code That Masquerades As Comments and Vice Versa
namespaces
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
#define
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
Gotchas
Documenting Variables
Disparage In the Comments
COMMENT AS IF IT WERE CØBØL ON PUNCH CARDS
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
Packratting
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
Casting
The Nested Switch
Exploit Implicit Conversion
Raw ints
Semicolons!
Use Octal
Convert Indirectly
Nesting
Numeric Literals
C's Eccentric View Of Arrays
L o n g L i n e s
Exceptions
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
FØRTRAN
Avoid Ada
Use ASM
Use QBASIC
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
Anonymous
Don't Recompile
Foiling Debuggers
S.I. vs American Measure
CANI
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,702|Likes:
Published by Omega6288

More info:

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

Availability:

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

07/01/2013

pdf

text

original

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

Activity (3)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads

You're Reading a Free Preview

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