Tutorials

“!” and “?”: Understanding one of Ruby’s coolest naming conventions
First of all, from an implementation standpoint, naming a method with ! or? at the end has no effect in the method’s functionality. With that, I mean that a method whose name ends with these marks is just as ordinary as any other. You are not boun...


Best Practices for Optimizing Postgres Query Performance · pganalyze
Learn how to get a 3x performance improvement on your Postgres database and 500x reduced data loaded from disk. DBAs and developers use pganalyze to identify the root cause of performance issues, optimize queries and to get alerts about critical i...

Replace Timecop With Rails’ Time Helpers in RSpec
Time-sensitive tests can be a pain.Thankfully, for many years the timecop gem served as a way to “freeze” time and “time travel” during tests, so that any time that elapsed during the running of your tests did not affect the results.It’s such a go...




Using OAuth for a simple command line script to access Google's data
I needed to write a simple script to pull some data from a Google website. Since I was grabbing some private data, I needed authorize myself to do that. I found it much more work than I expected, not because it's hard, but because there wasn't muc...
