David

Barcelona, Spain

davidmles.com/blog

Age: 34

I'm a passionate developer and entrepeneur, interested in good practices.

I have 10+ years experience in PHP. I also have 4 years using symfony/Symfony2 framework.

And now enjoying Ruby, Ruby on Rails and Sinatra since 2011.

I also enjoy administering UNIX machines.

Oct
27
comment `pg_tblspc` missing after installation of OS X Yosemite
In my case the .keep files should be directories, so I just executed this: mkdir -p /usr/local/var/postgres/{pg_tblspc,pg_twophase,pg_stat_tmp}/.keep
Oct
18
comment How to initialise a collection of decorators efficiently?
I would cache the decorated object: @decorated ||= MyModelDecorator.new self
Oct
17
accepted How to initialise a collection of decorators efficiently?
Oct
17
comment How to initialise a collection of decorators efficiently?
The decorator is, as you said, a plain old ruby object, with no constructor. My main concern was about memory usage, since there could be tens of results to be decorated per visit. Using a plain old Rails helper would be less expensive I think...
Oct
16
asked How to initialise a collection of decorators efficiently?
Oct
9
awarded Nice Answer
Sep
27
awarded Notable Question
Sep
15
comment Ruby on Rails 3 howto make 'OR' condition
I don't see any reason for parameterized values when using simple numbers.
Aug
22
awarded Famous Question
Aug
21
awarded Yearling
Aug
21
awarded Autobiographer
Aug
2
awarded Popular Question
Jul
15
comment Simple queue system with scheduling support
What about the overhead of having Delayed_Job + monit, or just Sidekiq?
Jul
15
comment Simple queue system with scheduling support
I have used Delayed_Job + whenever for a big project and I ran into issues with tasks not being executed. Simply restarting Delayed_Job fixed the problem, but it happened many times, so it's not reliable for me. Check their Github issues page, at this moment they have almost 200 open issues!
Jul
15
asked Simple queue system with scheduling support
Jul
14
awarded Benefactor
Jul
14
answered N+1 issue when updating a model with a relationship
Jul
14
comment N+1 issue when updating a model with a relationship
+1, accepted answer and bounty for you :)
Jul
14
accepted N+1 issue when updating a model with a relationship
Jul
11
awarded Promoter
1 2 3 4 5