9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions
comment 9y ago · link · parent
That is not important. In Russia even private ISP are required to install a firewall to block access to sites that are spreading illegal information (and they are also required to install a device that is monitoring whether the blocking policies are followed). There is also a law that will oblige ISPs record and keep customers' traffic in the future.
> When you're say Comcast, you only see the connections your customers make and accept, you can't see what VPN servers are doing.
A user of VPN typically has a single outgoing connection to a data center IP and that is easy to detect for an ISP. There is no need to see the VPN server's connections if you see the user's ones.
> where government control is less prevalent and the government is overtly democratic, false positives will result in anger in the populace
In those countries there will be no censorship and no need for a VPN. Also, most people don't use tools like VPNs and use Internet mostly for sites like social networks. Even if there are 1% of annoyed customers that cannot use VPN or SSH, the rest 99% won't notice that.
comment 9y ago · link · parent
I don't think so. Chinese firewall can block VPN. For example, the easiest way to see if the user is using a VPN is to count a number of IP addresses they connect to.
> and false positives will be extremely bad for the ISP.
How exactly?
comment 9y ago · link · parent
comment 9y ago · link · parent
For example, US doesn't have to block access to online casinos - they just order the banks and financial institutions not to work with such sites.
But Russia doesn't have such authority over Facebook or Skype. It cannot issue a NSL to Google for example. Therefore they are looking for other methods of controlling those companies (such as laws requiring to keep russian users' data in Russia).
China blocks many foreign web services and as a result they have their national messengers, search engine, social networks that will comply with national laws.
I do not approve Russian or China (especially China) policies, I just want to notice that Internet being an international medium without borders and customs creates new problems for applying national legislation (like taxation or spreading information violationg the laws).
comment 9y ago · link · parent
If you want threads, then make a syntax or API for them rather than implement hacks nobody will want to deal with later.
comment 9y ago · link · parent
Building an encrypted messaging app is knowingly assisting crimial activities ... all you'd need is standard communication privacy laws, not actual encryption.
comment 9y ago · link · parent
And by the way videos in Twitter and Vimeo don't work in both Chromium and Firefox on Windows XP. Because HTML5 video cross-platform compatibility is not perfect and developers have chosen not to encode videos in formats supported on this platform.
comment 9y ago · link · parent
Also I remember reading somewhere that the earlier you find the error the cheaper it is to fix it.
> why did my app just disappear, did I do something wrong?
Usually operating system reports that there was an error in the application. If the application crashes often, the users will complain to developers and they will fix it.
> Debuggers are a terrible user experience, we don't need to force every user to live in a debugger
You should test your app properly before releasing it.
> There are disastrous consequences to bad multi-threaded code during "fail fast" teardowns of threads not privy/cause to the error.
I cannot agree with this. Usually the OS releases all locks, closes all files, frees memory when the process terminates. I don't see what can go wrong here and how you can get a deadlock because some process has terminated. Also if you use locking you should add some kind of timeout. For example, MySQL has lock timeouts and can even detect and fix deadlocks.
> "Fail fast" in day-to-day operation isn't the right solution, at the very least for making users possibly hate you because you'll never properly handle 100% of exceptions
The users will probably hate you more if the app will silently hang or show incorrect data.
comment 9y ago · link · parent
In PHP we usually have a version range in libraries' dependencies and lock file that specifies exact dependency versions for the entire application. So you can be sure that you get tested combinantion of libraries.
comment 9y ago · link · parent
I think the reason is because some developers have a kind of exception-phobia and they prefer to hide errors (make developer check for them explicitly) rather than let them bubble up.
I see this in other platforms too. For example, in .NET if a background thread crashes because of unhandled exception then nothing happens to the main thread, no error is reported. The developer must check for an error and of course most developers won't care about this.
Another example is how error reporting is done in a browser. JS errors are never shown to the user so if a rich JS app has an error the user won't know about it, the app will just stop working or show invalid data.
comment 9y ago · link · parent
Try googling "fail fast" if you want to see more reasons to use this principle.
> Tearing down an entire application immediately due to an asynchronous exception has the possibility to leave the system in a deadlock or worse.
It should not. Because application can crash anyway - for example, if there is memory access violation or out-of-memory error. And synchronous applications crash on uncaught exception, I don't see why asynchronous applications should not.
comment 9y ago · link · parent
> Catching unhandled errors is by design and it works great.
I don't think that it's great because by default I would prefer to terminate the application if there is an unhandled error or rejection. This is called "fail fast" principle. What promises developers suggest is to continue running the application even if it's broken.
comment 9y ago · link · parent
Why make a new non-standart event instead of just throwing an error and handling it with default error handler? That is poor design - because initially there was no reporting of unhandled errors at all and only later a workaround was added.
comment 9y ago · link · parent
> The service worker fetch event is a promise,
By the way promises is another poorly designed technology: they catch unhandled errors and do not report them in any standard way [1].
[1] https://stackoverflow.com/questions/28001722/how-to-catch-un...
comment 9y ago · link · parent
Also a service worker would add additional process in Chrome and require 30-40 Mb of RAM. I don't want service workers in my browser.
Well, web standards have always been this broken and illogical as long as I rememeber.