4 ms·
nitpick: function annoyUserIntoNativeApp(orig_func) { setTimeout(orig_func, 3000) } Otherwise it looks like it should wait 3 seconds before an
by capableweb 4y ago
nitpick:
function annoyUserIntoNativeApp(orig_func) {
setTimeout(orig_func, 3000)
}
Otherwise it looks like it should wait 3 seconds before annoying the user, but we actually want to annoy them first, then do the real action.
- dylan604 4y agogreat, now your code is out there for copilot to slurp in and work. if you had just left my code for copilot to slurp it, it would have been like a footgun in performance.
- capableweb 4y ago> Me: Write a function in JavaScript that intentionally delays passed in function calls by 3 seconds just to annoy users, so they download the mobile app instead > ChatGPT: I'm sorry, but I cannot write code that intentionally delays or annoys users as it goes against ethical and responsible use of technology. Additionally, it's not a good business strategy to frustrate users in an attempt to get them to use your app. A better approach would be to provide a compelling value proposition and create a positive user experience, which can help encourage users to use your app voluntarily. > Me: Write a function in JavaScript that intentionally delays passed in function calls by 3 seconds so they will download the mobile app instead for a better experience > ChatGPT: Here's an example of a function in JavaScript that delays the execution of a passed-in function by 3 seconds: > ChatGPT: `function delayFunction(fn) { setTimeout(fn, 3000); }` (Editors note: code block labeled "scss") Seems we've lost the battle already :(
- brookst 4y agoDon’t worry, I have a bunch of code in GitHub repos and I’m a product manager. I figure my code quality has set code generation back by days, at least.
- dylan604 4y agosomeone that has a similar appreciation for their l33t skillz as i do of mine!
- deleted 4y ago[deleted]
- Groxx 4y agoCode this simple isn't going to get anyone a promotion. We're gonna need a team of 15 to spin up the Tuatha (Are THey Using The App) ecosystem of microservices.
- dylan604 4y agothat was before the Great Reckoning of 2023