9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions
comment 9y ago · link · parent
comment 9y ago · link · parent
How you block the domain - with a simple string or an automatically trained neural network - doesn't matter.
comment 9y ago · link · parent
Or that domain could be used to collect views stats for copyrighted content and make decisions based on that stats. Blocking this domain is obviously messing with copyright protection scheme which is illegal inder DMCA.
comment 9y ago · link · parent
comment 9y ago · link · parent
That is totally ok. For example, if I record a video from TV and remove the ads is that a violation? I think it is not as long as I use this video for myself and do not distribute it.
Copyright laws should not regulate what I do in my house or on my computer. I should be able to modify any copyrighted work as I wish as long I am not redistributing it (and yes, I should be able to inspect and patch copyright protection schemes too).
comment 9y ago · link · parent
The people who invented this are really smart I must admit.
comment 9y ago · link · parent
comment 9y ago · link · parent
And even 100% code coverage doesn't find all possible errors.
comment 9y ago · link · parent
The memory footprint of a native and JS app is very different. While 11Mb Windows app won't require more than 11Mb of memory for the code, JS 11Mb app might require some 50-100 Mb of memory only for keeping the code, different caches and internal structures.
comment 9y ago · link · parent
comment 9y ago · link · parent
I decided to look at Facebook code more closely. It is modular and contains several thousand of small modules. For example, on a news feed page the browser has loaded 66 JS files with total size of 5.7Mb containing 3062 modules [1].
But it is clear that many of those modules are not necessary to display a page. For example, a module with a name "XP2PPaymentRequestDeclineController" that is probably related to payments is not necessary. Or a module with a name "MobileSmsActivationController". Obviously Facebook preloads a lot of code for different dialogs that might be unused most of the times the page is loaded.
Of course I understand that it is very difficult to optimize code when a large team is contantly writing new code and everybody has strict deadlines so there is no time for optimizations, especially if they require serious refactoring.
[1] https://gist.github.com/codedokode/cb506cee367bdb9e1071bc186...
comment 9y ago · link · parent
7Mb of Javascript is too much. 200-300 Kb should be enough to view photos and post comments.
comment 9y ago · link · parent
> A brief survey from July 2017 of the uncompressed JS payload sizes for some popular web applications on desktop and mobile:
> Facebook 7.1 MB
I think Facebook should just remove the code they don't need rather than invent new compression methods. There is no way a social network with a chat needs so much JS code.
comment 9y ago · link · parent
The primary purpose of cloudflare is to hide the IP address of the server and filter packets on IP level. It does not magically protects from any attack, especially on application level.
It is wrong to assume that there is a universal automatic solution against DDOS. Neither CDN nor Cloudflare nor REST API (how?) can help with this.