In technical circles, such as engineering, this word is sometimes used to describe a "solution" that mostly works but is a really horrible, inelegant design.
The connotation is often intended to mean "yes, this works *today* to solve the immediate problem, but it's a lousy way to go in the long term."
That interrupt handler you wrote in Visual BASIC is pretty damned fugly!
You sealed the biocontainment chamber with duct tape? That's seriously fugly, and I think I'll wait outside while you finish the experiments.