Getting to know AWS Cloud Formations and building custom resources using the cfn-bridge gem mauricio.github.io
mauriciolinhares — 11 posts
How using object factories and mixing mutable and immutable state can lead to bugs in your code and mauricio.github.io
Using factories is nice to simplify your specs, but you should be careful with the mutable objects you could be reusing there.
The "don't use a small gem" fallacy mauricio.github.io
Much is said about code reuse, when to reuse and how to reuse, but there's a strong movement about not depending on a gem if it's small or if you can write one that does the same yourself. Is it really an improvement to write one yourself?
Public methods are your public API and be careful with what you include and inherit from others mauricio.github.io
When building APIs you should be careful with what you actually allow people to see since anything that's out there could possibly be called by someone. Read more about it here.
Going down the rabbit hole of Ruby's object conversions mauricio.github.io
Sometimes too much magic might be a problem for your Ruby codebase, check out how Ruby's implicit and explicit object conversions work and how you can use or remove them from your codebase.
Using foreman and environment variables to run your apps in development mauricio.github.io
Tired of having dozens of services running in your mac but only using a fraction of them at a time? Then stop doing it and start using foreman to do the job of managing them for you.
Never match against Ruby's default exceptions at your tests mauricio.github.io
While fixing a bug at rspec-mocks, the real issue was a code smell, matching against generic exceptions at your tests. So, learn why you should not do it and how to fix it if you see code like that.
Learn how to implement object comparison in Ruby, the operators available and gotchas you might find while doing it.
If you have to handle various ruby projects with various different rubies and you don't want to go crazy managing the dependencies, you should start using read this tutorial and start using RVM. If you don't have this need yet you should also read it as RVM makes playing with new and different rubies and gems a breeze!
If you're looking for a better way to search your application's text and knows that relational databases usually can't handle the job, Solr and Sunspot are here to help you. In this simple tutorial you'll learn how to use Solr and Sunspot to add real world full text search to your Rails applications.