Gollum to Programmer [email protected] • 9 months agoPOV: Working at Googlefeddit.deimagemessage-square15fedilinkarrow-up1615arrow-down121
arrow-up1594arrow-down1imagePOV: Working at Googlefeddit.deGollum to Programmer [email protected] • 9 months agomessage-square15fedilink
minus-square7heolinkfedilink25•9 months agoThat isn’t real. It wouldn’t pass peer review. Here is the actual code: function GetCookieValue(x) { return JSON.stringify(x); } user.cookies.agreed = Boolean(GetCookieValue(true)); if(!DarkPatternPopup()) { // Make sure we respect the user choice user.cookies.agreed = Boolean(GetCookieValue(false)); } if(user.cookies.agreed) CollectData(user);
That isn’t real. It wouldn’t pass peer review. Here is the actual code:
function GetCookieValue(x) { return JSON.stringify(x); } user.cookies.agreed = Boolean(GetCookieValue(true)); if(!DarkPatternPopup()) { // Make sure we respect the user choice user.cookies.agreed = Boolean(GetCookieValue(false)); } if(user.cookies.agreed) CollectData(user);