r/technology • • Dec 10 '13

By Special Request of the Admins Reddit’s empire is founded on a flawed algorithm

http://technotes.iangreenleaf.com/posts/2013-12-09-reddits-empire-is-built-on-a-flawed-algorithm.html
3.9k Upvotes

2.2k comments sorted by

View all comments

2.4k

u/[deleted] Dec 10 '13

That was a really nice write up. I know fuck all about programing but understood the author. Nice find OP

628

u/CarolinaPunk Dec 10 '13

It really was, I'm amazed a reddit developer can't fix this problem though easily by not counting votes for a period of time after a link is submitted. If I am interpreting this correctly.

1.0k

u/forcefielddog Dec 10 '13

It's more of a "won't" than a "can't."

535

u/maxximillian Dec 10 '13

Agreed. I just had a software engineering exam. There was a question about Egoless Programming, a concept discussed by Gerald Weinberg. I think a lot of people should read up on it.

Some developers have a tendency to hear any criticism about their code as though someone said their baby is ugly.

321

u/critically_damped Dec 10 '13

Some people take criticism of their children's appearance the same way. I'm just saying plastic surgery isn't always the wrong choice for a five-year old...

→ More replies (19)

42

u/johndoe42 Dec 10 '13

They should have critiques like we do in design. After a while you lose your ego after realizing that your creation belongs to the people when you intend it to be consumed.

→ More replies (14)
→ More replies (37)

137

u/[deleted] Dec 10 '13

Either?

0

u/[deleted] Dec 10 '13

[deleted] — view deleted comment

221

u/JesusIsCumming Dec 10 '13

It's a UNIX system. I know this.

149

u/throwwhatthere Dec 10 '13

Ah ah ah. You didn't say the magic word.

139

u/fuzzynickers Dec 10 '13

sudo give me access to the mainframe

94

u/[deleted] Dec 10 '13
root@mainframe:~# 
→ More replies (20)
→ More replies (3)
→ More replies (32)
→ More replies (9)

0

u/[deleted] Dec 10 '13

[deleted] — view deleted comment

0

u/[deleted] Dec 10 '13

[deleted] — view deleted comment

271

u/casualblair Dec 10 '13

You have a gun to your head. You will be killed if you don't hack the firewall in one minute.

BETTER PROPERLY COMMENT MY CODE LOL BEST PRACTICES MOTHERFUCKER

205

u/Torgamous Dec 10 '13

You'd better properly comment your code if someone's going to kill you after a minute of coding. You're dead either way, but at least the next programmer they bring in doesn't have to start from scratch.

90

u/cmasterflex Dec 10 '13

Might as well add some unit tests while you are in there, wouldn't want the next hacker to break anything.

→ More replies

59

u/[deleted] Dec 10 '13

Q. How many programmers does it take to write the right code when a gun's placed to do their head?

A. None. On an average though you will find 87 programmers die before a programmer with martial arts shows up and breaks the hand that holds the gun.

→ More replies
→ More replies (2)

140

u/PsychoM Dec 10 '13

What do you call a developer who doesn't properly comment their code?

A developer.

133

u/hoodoo-operator Dec 10 '13

If it was hard to write it should be hard to understand.

→ More replies
→ More replies (5)
→ More replies (6)
→ More replies (16)
→ More replies (2)
→ More replies (16)
→ More replies (1)
→ More replies (15)

167

u/LostBob Dec 10 '13

I believe the author's intent is that this: return round(order + sign * seconds / 45000, 7) should be this: return round(order * sign + seconds / 45000, 7)

→ More replies (148)
→ More replies (24)

476

u/misnamed Dec 10 '13 edited Dec 10 '13

Thanks, I try! Here's the enhanced version for anyone interested!

272

u/[deleted] Dec 10 '13

That scared the fuck out of me

→ More replies (30)

52

u/sinister_exaggerator Dec 10 '13

I don't know if anyone stayed as long as I did, but it seems the longer you stay the more there is and the bigger they get.

65

u/misnamed Dec 10 '13

They also multiply, respawn and expand if you click on them.

→ More replies (21)
→ More replies (56)
→ More replies (39)