Tutorials
WriteCodeEveryday/flynn_auto_scale: Let your Rails apps on Flynn scale to your business needs.
A gem that allows your Rails apps to self-scale as they need more and more resources under Flynn. Comes with an automated mode that can be used for "day to day" web hosting operations and a manual mode where you can control when scaling operations...
WriteCodeEveryday/darnbrokenrails: An attempt at a cybersecurity / code quality teaching tool for Rails.
An attempt at a cybersecurity / code quality teaching tool for Rails.The 'sqlite3' gem is used to prevent this Rails project being hosted in most major online hosts, but this application is 'insecure by design', so care should be taken when enabli...
Ruby Memoization: ||= vs. defined? - Ruby on Rails and Ember.js consultant
In the majority of the Rails applications or even Ruby gems you can find a lot of use cases where you need to memoize a result of some computation for performance benefits and to not compute it again if this result has already been computed. Seems...
Integrate a scratchpad file into your Rails dev workflow
As Rails developers, it is imperative that we be comfortable and productive in the console. The console is where we have the shortest feedback cycles, making it perfect for learning and tinkering. The Rails console is useful in debugging code, man...
Assert Multiple Differences in Minitest with assert_differences
There have been many times in my coding career that I've needed to test that multiple values change during an event.Maybe you want to check that a User, their Settings, and Posts all get deleted when a user removes their account. Technically you s...
Replacing Eval with Object.send and a self written Parser · Ramblings of a build engineer
A while ago, I was added as a curator for a Gem called JsonPath. It’s a small but very useful and brilliant gem. It had a couple of problems which I fixed, but the hardest to eliminate proved to be a series of evals throughout the code.You could o...