Hack vs Kludge: definitions
- Merriam-Webster definitions
a usually creative solution to a computer hardware or programming problem
kludge or kluge noun
a system and especially a computer system made up of poorly
- Both terms connote an imperfect solution to a problem.
Hack vs Kludge: connotations
A hack often suggests that a real solution is possible,
but requires changes that the programmer cannot make.
This hack gets around the limitations of HTML.
- Sometimes a hack just means the programmer is too lazy
to code up a real solution.
It's just something we hacked together in the last minute.
A kludge implies that the program is unnecessarily and overly
What a kludge! He should just make status mutable.
Hack vs Kludge
Some hacks are ugly.
Other hacks are actually clever solutions, but do not work in
any other situation.
i = 0 ;
while ( a[i++] = b[i] ) ;
Kludges are always ugly, often very ugly.
People might actually be proud of the hacks they put together.
No one is ever proud of a kludge.
The Problem with Hacks
They are hard to reuse.
They are hard to maintain.
They are hard to extend.