News for hackers. Stuff that matters.
Re:Hack: a new programming language for HHVM by encoderer on Thursday March 20, 2014 @01:07PM (#7436920)
Something I didn't really learn in school, that I only picked up much later in my career, is that when applicable, applications should be built on top of mathematical models. A very contrived example would be.. would you build an ad rotator by keeping counts of all banners served and picking the next banner based on those counts and your weighting rules, or would you build the rotator on a foundation of statistics and probability with a little extra logic for handling caps and edge cases?
Re:Hack: a new programming language for HHVM by yid on Thursday March 20, 2014 @01:09PM (#7436939)
> would you build an ad rotator by keeping counts of all banners served and picking the next banner based on those counts and your weighting rules, or would you build the rotator on a foundation of statistics and probability with a little extra logic for handling caps and edge cases

Actually, building on a foundation of solid statistics and probability will often result in an algorithm that essentially counts views and applies weighting rules.

As another example, Pagerank has a nice theoretical basis, but power iteration reduces to perhaps 5-10 lines of C.

Re:Hack: a new programming language for HHVM by linc01n on Thursday March 20, 2014 @02:23PM (#7437540)
I built an ad engine base on probability. But I am not sure which way is better.