3 ms·
> Now we need app developers to log off their fiber-served wifi when writing messenger apps or also any web app. In a Rails app I recently started working on
by pmontra 3y ago
> Now we need app developers to log off their fiber-served wifi when writing messenger apps
or also any web app.
In a Rails app I recently started working on for a customer I saw many controller actions starting with a call to a method called simulate_delay_for_development. I checked the code and when run in development mode it basically sleeps for a random value between 0.1 and 3.0 seconds.
I'm sure that there are gems for that or proxy servers sitting between the browser and the server, but it's a cheap and effective way to make every developer experience delays with zero installation costs.
- helb 3y agoBrowsers can simulate that without a proxy too: https://firefox-source-docs.mozilla.org/devtools-user/network_monitor/throttling/index.html https://firefox-source-docs.mozilla.org/devtools-user/networ... Chrome can also throttle the CPU power: https://www.wikihow.com/Throttle-Your-Browser-for-Testing https://www.wikihow.com/Throttle-Your-Browser-for-Testing