AngularJS Providers under the hood

2dfe415be676c9c3d41f75632193b456by Adrian Castillo|

Mar 18, 2015


When I started working with Angular, the concept of Angular Provider was confusing to me, especially since all the providers (Factory, Service Value and Provider) seem to perform the same work.

The first question you may ask yourself is "which one you should use?" You'll probably end up picking one, and just stick with it until it no longer helps you do the work you're aiming to do. Which is fine.


Parsing Ransack strings to SQL queries in Golang

2268931b9a4fded3c7e77201e6e0f9baby Carlos Eduardo Gutierrez|

Mar 10, 2015


Recently we were working on migrating a Rails app to Go but, just before we started working, we realized that the app we were migrating used ransack to do some basic search. We looked for a library that could do the same thing in Go but, we didn't find any.

We decided to implement a library that could take a Ransack-like string and parse it into a SQL query, then we could use it to do a normal query to a database in our Go code. And that's why we created Gransak for that task.


How to Clean Your Nested Layouts in 5 Minutes

89c6420fb99cb01bcf2e3502a7851da2by Carlos Muñiz|

Mar 04, 2015


As a front-end developer who have worked on many projects, I've seen a lot of content duplication in views.

Let's see an example:

For Spree applications, if we want to edit our Spree base layout, we should use Spree Deface to manipulate its contents since this is the recommended way. Another way is to copy, paste and update the layout content to make those little modification such adding some wrappers or titles. The real problem when using the second approach comes when you use those modified layouts as based for new section, then you realize you need another different layout with another small modification: you have to copy, paste and edit in order to generate another layout.