Live data from Hacker News

What happens when you search 'ugly hack' in GitHub

github.com

41–50 of 69 posts

Re: What happens when you search 'ugly hack' in GitHub

#41
post #23
post #21

Earlier quoted context omitted.

So, HN's hate-child PHP is funnier, more beautiful, less ugly and less confusing than sexy JavaScript. Although Python rules them all.

To be fair, PHP has a well-known problem of a lot of people not being able to properly judge the quality of the code they write ;) [1] [1] Of course I don't mean you, my dear PHP writing comment reader.

And no other widely used language has that problem ;)

Re: What happens when you search 'ugly hack' in GitHub

#42
post #37

Some results normalized by overall language popularity. Specifically, the entry in row R and column C is 1000 * (hits for C in language R) / (hits for "the" in language R) or "---" if either the numerator or denominator was small enough not to make the top-10 list on github. All the scraping was done by hand and the numbers rounded to a limited number of places in the process, so there may very well be mistakes. [EDI…

The &lol; entities are the "Billion laughs" attack: http://en.wikipedia.org/wiki/Billion_laughs

Re: What happens when you search 'ugly hack' in GitHub

#43
post #20

Pretty interesting/amusing to see the language breakdown of various words (with big grains of salt): https://github.com/search?q=beautiful&type=Code https://github.com/search?q=ugly&type=Code https://github.com/search?q=lol&type=Code https://github.com/search?q=wtf&type=Code

As you said, big grains of salt... It would be probably more helpful if they were normalized by the percentage any particular language is used overall on Github.

Re: What happens when you search 'ugly hack' in GitHub

#44
post #40

Earlier quoted context omitted.

In my experience “ugly hack” means any technical debt that spans lines of code, as opposed to components of a system. (Edited for clarity.)

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.

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

#47
post #37

Some results normalized by overall language popularity. Specifically, the entry in row R and column C is 1000 * (hits for C in language R) / (hits for "the" in language R) or "---" if either the numerator or denominator was small enough not to make the top-10 list on github. All the scraping was done by hand and the numbers rounded to a limited number of places in the process, so there may very well be mistakes. [EDI…

I read your table and immediately jumped to a different conclusion: That python programmers are more sensitive to ugly hacks and more likely to call them out. Not saying I'm right, but I don't know that the data can distinguish the hypotheses.

Re: What happens when you search 'ugly hack' in GitHub

#48
post #37

Some results normalized by overall language popularity. Specifically, the entry in row R and column C is 1000 * (hits for C in language R) / (hits for "the" in language R) or "---" if either the numerator or denominator was small enough not to make the top-10 list on github. All the scraping was done by hand and the numbers rounded to a limited number of places in the process, so there may very well be mistakes. [EDI…

The &lol; entities are the "Billion laughs" attack: http://en.wikipedia.org/wiki/Billion_laughs

bwhaha that's insane

Re: What happens when you search 'ugly hack' in GitHub

#49
post #37

Some results normalized by overall language popularity. Specifically, the entry in row R and column C is 1000 * (hits for C in language R) / (hits for "the" in language R) or "---" if either the numerator or denominator was small enough not to make the top-10 list on github. All the scraping was done by hand and the numbers rounded to a limited number of places in the process, so there may very well be mistakes. [EDI…

I literally laughed out loud at C++ in wtf column.
Post reply on HN