News for hackers. Stuff that matters.
Re:My best commit, ever. by ajanuary on Friday November 29, 2013 @10:08AM (#6819627)

  My math does the same as the guy's before...
No it doesn't. It returned 0.0 for 69.0 before, now it returns 6900.0.
Re:My best commit, ever. by nichochar on Friday November 29, 2013 @10:12AM (#6819635)
Right. We used to handle that in an exception in which the function ran. So my math is theoretically better!
Re:My best commit, ever. by pchander on Friday November 29, 2013 @10:13AM (#6819638)
See here for an explanation about musical notes vs currency notes.

http://www.reddit.com/r/ProgrammerHumor/comments/1rpm41/my_f...

Re:My best commit, ever. by ralmeida on Friday November 29, 2013 @10:50AM (#6819809)
From your comment at reddit, I can't tell if you're joking or serious. Which one is it? (serious question)
Re:My best commit, ever. by nichochar on Friday November 29, 2013 @11:36AM (#6819990)
I'm joking in the sense this commit is funny, it's just ridiculous how complicated the previous code was. So complicated that people had left it there refusing to touch it!
Re:My best commit, ever. by ralmeida on Friday November 29, 2013 @12:02PM (#6820110)
Are you aware that your code fails to produce the correct value for any note? http://www.tonalsoft.com/pub/news/pitch-bend.aspx
Re:My best commit, ever. by atoponce on Friday November 29, 2013 @11:19AM (#6819926)
Hahahahahaha!!! I can't stop laughing! My sides hurt so bad! I'm crying, it's so funny!
Re:My best commit, ever. by nichochar on Friday November 29, 2013 @11:35AM (#6819984)
ahaha yeah in the office we were rolling on the floor too :}