4 ms·
Given that all the comments I'm seeing are of the “‘makeFooReady’ makes foo ready” ilk, I wonder how these tools fare on incorrectly-named things. Would it pick
by lelandfe 3y ago
Given that all the comments I'm seeing are of the “‘makeFooReady’ makes foo ready” ilk, I wonder how these tools fare on incorrectly-named things. Would it pick up on ‘asyncRemoveFoo’ being neither async nor a function that removes foo?
- jlund-molfese 3y agoAuto-generated comments ("foo takes bar and returns baz") have been a thing in Java IDEs for a very long time...but most people just consider them to be clutter and don't use them. A product that scans your repo and identifies mis-named functions would be compelling, though.
- deleted 3y ago[deleted]
- ben_w 3y agoReminds me of something I learned of over a decade ago: isUserAMonkey Added in API level 8 public static boolean isUserAMonkey () Returns "true" if the user interface is currently being messed with by a monkey. - https://developer.android.com/reference/android/app/ActivityManager.html#isUserAMonkey%28%29 https://developer.android.com/reference/android/app/Activity...
- no_wizard 3y agoI wonder why this exists. What is this code for. How would they even know its a monkey?! I'm sure its a joke of sorts, or clever moniker if you want to be charitable, but unclear to me in any case
- r3trohack3r 3y agoA quick Kagi search revealed that this checks if the user is a simulated user in for stress tests: https://developer.android.com/studio/test/other-testing-tools/monkey https://developer.android.com/studio/test/other-testing-tool... My guess is that the name shares its etymology with other Monkey references in tech, like Chaos Monkey. Where a being that has no understanding of the purpose of anything in the environment is given access to the environment and allowed to wreak havoc as a form of resilience testing. This monkey appears to generate system events and user input events in a pseudo-random (deterministic) way to help with fuzzy-like testing of an app.
- mgkimsal 3y agohttps://developer.android.com/studio/test/other-testing-tools/monkey https://developer.android.com/studio/test/other-testing-tool...
- deleted 3y ago[deleted]
- deleted 3y ago[deleted]
- deleted 3y ago[deleted]