TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Is user a goat?

29 点作者 joshfarrant超过 9 年前

3 条评论

brenniemac超过 9 年前
A junior dev once thought it would be funny to quietly slip this into some code right before a release not realizing it had changed in lollipop. He was lucky I happened to have Goat Simulator installed and caught it.<p>if (!userManager.isUserAGoat()) { ... Super important business logic ... }
herbig超过 9 年前
public boolean isUserAGoat() { return mContext.getPackageManager() .isPackageAvailable(&quot;com.coffeestainstudios.goatsimulator&quot;); }
评论 #10268200 未加载
chillydawg超过 9 年前
Excellent :D Perhaps it should have been mountain goat, though?