Re:What happens when you search 'ugly hack' in GitHub
by madeofpalk on Thursday July 17, 2014 @08:36AM
(#8047118)
When I write it it usually means I know it sucks, but I'm reasonably happy with it - but if someone catches me out on it it's ok because I already criticised it myself
Re:What happens when you search 'ugly hack' in GitHub
by andrey-p on Thursday July 17, 2014 @10:06AM
(#8047564)
Excellently put. It's like lampshading[1], for code.
[1]: http://tvtropes.org/pmwiki/pmwiki.php/Main/LampshadeHanging
Re:What happens when you search 'ugly hack' in GitHub
by goblin89 on Thursday July 17, 2014 @07:31AM
(#8046910)
In my experience “ugly hack” means any technical debt that spans lines of code, as opposed to components of a system.
(Edited for clarity.)
Re:What happens when you search 'ugly hack' in GitHub
by DCKing on Thursday July 17, 2014 @07:39AM
(#8046931)
It's actually too general. What I mean with component here can be anything from a line of code to a class hierarchy.
In a sense, using the word 'component' here was an ugly hack. I should have gone for the proper solution and properly define it. You see now that it breaks down when the interpretation changes.
Re:What happens when you search 'ugly hack' in GitHub
by goblin89 on Thursday July 17, 2014 @07:50AM
(#8046965)
I guess I understand. I objected because I felt you were assuming too much of some context in your definition of “ugly hack” :) I can't imagine using the term “ugly hack” to describe some unfortunate high-level architectural decision.
Re:What happens when you search 'ugly hack' in GitHub
by mmahemoff on Thursday July 17, 2014 @07:29AM
(#8046901)
It's a worthy practice indeed. Bowing to the virtue of taking on some technical debt instead of deluding oneself that all code must be Pristine.
Re:What happens when you search 'ugly hack' in GitHub
by ebiester on Thursday July 17, 2014 @12:14PM
(#8048328)
Sometimes, instead of "I don't feel like doing the proper solution," it's "I haven't yet figured out the proper solution," or "A cleaner solution means adding 250 lines of code to address problems we may not have."
All of this is expressed in just two words :)