-
帖子排序问题
2015-09-01 14:26目前黑客派使用的是 Reddit 的帖子排序算法:
/** * Gets Reddit score. * * @param ups the specified vote up count * @param downs the specified vote down count * @param t time (epoch seconds) * @return reddit score */ private static double redditScore(final int ups, final int downs, final long t) { final int x = ups - downs; final double z = Math.max(Math.abs(x), 1); int y = 0; if (x > 0) { y = 1; } else if (x < 0) { y = -1; } return Math.log10(z) + y * (t - 1353745196) / 45000; }这个算法很简单有效,具体分析网络上很多,请自行搜索~
-
没有管理经验去应聘项目管理
2015-08-31 13:00基本的方法论应该需要了解,没有实践经验我觉得问题不大,关键是看面试的时候能否过。。。。。一般的公司应该很少有专门设立这个职位的,要有的话大多数也是跟着项目走,而且还要参与开发。
-
这个会动的点,有什么特别的意义吗?
2015-08-31 09:52这个点的滑动展示了该帖子的实时热度:
- 如果有人进入/评论帖子,蓝点从左到右,表示热度 +1
- 如果有人离开帖子,蓝点从右到左,表示热度 -1
这个设计有可能是会造成浏览者视觉干扰,不过蛮好玩的~