Tutorials

![[ALPHA] TraceSpy is a wrapper around TracePoint](/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTIxODIsInB1ciI6ImJsb2JfaWQifX0=--b9a99e2cdbd21f6e9887073d063a7e520c43252c/open-uri20190208-16430-1ypkbvs.avif)

Using the Find module to count the LOC of a Rails application
In this post, we’re going to explore the content of this library and use it for counting the LOC* of a Rails application. This means that this library is packaged with Ruby and it’s available.Traversing a directory tree is a pretty common tasks in...

“!” 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...

