Olivier Robert
Olivier Robert
## Why The template has a workaround to precompile assets for the `production` env. Since Rails seems to require all env variable to be set, the following add a dummy...
## Why While Postgres is used in all client projects we do, not much attention is put on performance beyond n+1 queries (via the gem [bullet](https://github.com/flyerhzm/bullet)). Besides, if a project...
Over the years, we have rarely used caching with Rails. And when we did, it was added afterwards in the life of the project, not at the beginning. But performance-wise,...
For speed improvements, an easy win is to use `dns-prefetch` for the application assets host and core third-party domains: ``` ``` More info: https://rubyplus.com/articles/5001-Speeding-up-Page-Load-in-Rails-Applications
How about adding [colorize](https://github.com/fazibear/colorize) in development? It adds different colors to the logs.
## What happened - [x] Update the text content. - [ ] Update the image content. ## Insight `WIP` ## Proof Of Work `WIP`
While the CLI tool works, using the package in-app fails with the following error: ``` ERROR in ./node_modules/appversion/appversion.js Module not found: Error: Can't resolve 'fs' in '/node_modules/appversion' @ ./node_modules/appversion/appversion.js 4:11-24...
The below code seems to imply that if no data is found for `total_results`, no scraping info is returned: https://github.com/hudsonbay/google_scraper_live_view/blob/22ee211c8df4d802fe0879824e005b05ebb4aa95/lib/google_scraper.ex?_pjax=%23js-repo-pjax-container%3Afirst-of-type%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%3Afirst-of-type%2C%20%5Bdata-pjax-container%5D%3Afirst-of-type#L66-L79 Why make the control flow this way? Would not it...