HNHacker News
TopNewBestAskShowJobs

ccom

4 karma · joined May 5, 2021

submissionscomments
ccom··on Ask HN: a Postman but to simulate bad network conditions?
I'm using Ruby on Rails for most of my web applications. It's very rare that you don't rely on the core wrapper classes that detect all of these network and system errors for you.

So when you receive an invalid request, most of the time the client gets back the appropriate HTTP status code (e.g. bad request when the bytes do not match the size of the request).

When you send an HTTP request e.g. to a payment provider, you need to take care of possible exceptions. This is a bit tricky, since it's hard to know all possible exceptions in advance and need to decide:

* You want to be noticed about the exception

* You want to ignore the exception

* You want to run additional code e.g. a re-try

With this background the workflow is as following:

* Watch for unhandled exceptions in production / staging

* Stub the exception, write a test and handle the error

Returning back to your application: When I understand it correctly, this would only help developers, that e.g. build their own web server or web framework. So I see the number of users for such a service very limited. And nit: I like the approach to have such a service running locally in a docker container like it is possible for https://github.com/chromium/badssl.com, so you can use it for automated testing without network access.

ccom··on [dead]
This is ridiculous since Bitcoin was not climate friendly when Tesla announced to use them as asset & accepted payment. Imho Elon Musk misuses his influence to his own advantage, Tesla made approx. 100 million profit with buying and selling Bitcoins. Same pattern applies to Dogecoin.
ccom··on Ask HN: Reasons for missing mobile Firefox features?
Thanks @Nextgrid for this explanation. It's just weird for me when Firefox is making so much marketing about its privacy features, but most of them don't exist on mobile (which is approx. 50% of the whole internet traffic). For iOS I agree it's not their fault, but it's still a big issue.