3 ms·
That’s more or less what all iframed ads are. Plus most popular web sites load libraries for services where the site owners can’t easily see what’s happening un
by dahart 8y ago
That’s more or less what all iframed ads are. Plus most popular web sites load libraries for services where the site owners can’t easily see what’s happening under the covers. Google analytics would be an example of this, but there are many, and lots of sites use multiple such services.
- pc86 8y agoI see what you're saying and I agree for the most part, but all that code is written by someone, reviewed (maybe), and put to some form of a production environment. The code in StackOverflow is usually just typed right into the answer box and submitted. I know I've edited answers where there were compilation errors in the accepted solutions! Not strictly relevant to JS of course.
- wlesieutre 8y agoThat's how it should work with ad networks, but you really never know what code you're going to end up serving. https://www.trendmicro.com/vinfo/vn/security/news/cybercrime-and-digital-threats/forbes-readers-served-malicious-ads-after-asking-them-to-disable-adblocker https://www.trendmicro.com/vinfo/vn/security/news/cybercrime...
- template3 8y agoThis is unintentionally fucking hilarious. You already concede that review is a “maybe”... so we have to assume it won’t happen. So basically your argument boils down to web code meeting the high standards of being “written by someone” and put in “some form” of a production environment. Any http server on a routable ip address qualifies as “some form” of production environment.
- pc86 8y agoYou don't think there's the slightest bit of difference between production code written at even very dysfunctional organizations with mediocre developers, and random answers on StackOverflow? And you've only been here for a few weeks so I'll give you the benefit of the doubt, but calling something "unintentionally...hilarious" is usually taken as just another way of calling someone an idiot. I'd suggest you try to find ways to make your point without deriding those who don't share your view, especially on something so inconsequential.
- nothrabannosir 8y ago> You don't think there's the slightest bit of difference between production code written at even very dysfunctional organizations with mediocre developers, and random answers on StackOverflow? I do; a random SO answer will be miles better than anything coming out of an average organisation. To write an SO answer, you need to actually care about answering SO questions. To write code in an average company, you need to... have a pulse, it seems.
- template3 8y agoWell I speculated the that you were not going for hilarious. And I found it funny so that’s why I said unintentionally. And here’s why. Your general comment follows the classical salesman or marketing response to “why should I trust you?” And the expected response being oh well we have the finest, best trained developers from the best schools and everything is carefully reviewed, and we run everything on the best maintained equipment in a secure data center. Except what you said had those things with no minimum standard... basically demolishing your premise. I read it like a sales pitch and it made me chuckle. “Our code is written by someone, maybe reviewed, and runs on some form of production hardware.” And the serious thing is... there is no minimum standard for the code that will run on your browser and anybody that works in this field really should understand that. Anybody that believes anything other than the web is a 100% untrustable shithole is liable the type to architect the next Equifax. And I felt your comment inadvertently just supported this opinion, so there’s that. https://www.google.com/amp/s/www.networkworld.com/article/3021113/security/forbes-malware-ad-blocker-advertisements.amp.html https://www.google.com/amp/s/www.networkworld.com/article/30... Also yes I fully expect most code on stackoverflow to be of higher quality than most internal LOB code written (i’ve seen a lot of code at this point). If anything stackoverflow makes the mediocre shops better insofar as they copy from it.
- VBprogrammer 8y agoI'd go further. I'd be much more trusting of running and random JS found on stack overflow than the JS found on your average production environment. Stack overflow is heavily moderated. I think it'd be a challenge to put something malicious on there which lived for more than an hour or so. Compare that to your run of the mill PHP shared hosting. I know which side I'd rather take my chances with.
- seba_dos1 8y agoThat's exactly why I would rather trust code from random SO answers than from the ad network.
- Uehreka 8y agoOf note though, cross-domain iframes have intense restrictions on them to prevent them from XSS-ing the host page or its domain. Of course, if you’re running 3rd party ad scripts on your actual page, you’re at their mercy.