Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

setTimeout(annoyUserIntoNativeApp(),3000);


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.


Code 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.


that was before the Great Reckoning of 2023


great, 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.


> 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 :(


Don’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.


someone that has a similar appreciation for their l33t skillz as i do of mine!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: