TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Is user a goat?

29 pointsby joshfarrantover 9 years ago

3 comments

brenniemacover 9 years ago
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 ... }
herbigover 9 years ago
public boolean isUserAGoat() { return mContext.getPackageManager() .isPackageAvailable(&quot;com.coffeestainstudios.goatsimulator&quot;); }
评论 #10268200 未加载
chillydawgover 9 years ago
Excellent :D Perhaps it should have been mountain goat, though?