3 ms·
> Imagine your boss asks you to display how many other visitors are viewing a nearly sold out item to convert sales Yeah, you could say “no, such overt manipul
by chrismorgan 5y ago
> Imagine your boss asks you to display how many other visitors are viewing a nearly sold out item to convert sales
Yeah, you could say “no, such overt manipulation is definitely unethical”.
But on a more technical side, I like to be a progressive enhancement purist (though sometimes it’s not the pragmatic option) and I don’t see any good reason why client-side scripting should be required for an online store. Can LiveView be used as a progressive enhancement, producing traditional HTML with links, form submissions and all that will work without client side scripting? If not, I don’t think LiveWire is suitable for that specific sort of site; and if it is, then surely you can’t know how many visitors there are on a given item? To be sure, the estimate will still be more accurate than the likes of (30 + 20 * Math.random())|0 which is maliciously manipulative, but it’s not correct any more.