Joined May 2011
·
Posted to
Create new github repo from command line
over 1 year
ago
As already stated, Hub is a really great library for this kind of thing.
Posted to
Rails Quick Tips - Random Records
over 1 year
ago
@natebird Thanks for pointing out randumb. I've seen this in the past but never used it. It is DB agnostic as much as my described implementation is. The gem is only using either of two database functions ('RANDOM() and RAND()'). You always need to evaluate your options when it comes to your specific scenario... in regards to high record count and performance.
Thanks again for checking out the article!
Posted to
Rails Quick Tips - Random Records
over 1 year
ago
@narkoz I just threw together the examples that would be worse than the end implementation. You are correct though, sample
would have been a better choice to implement that way.
Thanks!
Achievements
215 Karma
14,353 Total ProTip Views
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Altruist
Increase developer well-being by sharing at least 20 open source projects
Charity
Fork and commit to someone's open source project in need
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
Forked
Have a project valued enough to be forked by someone else
Thanks @spilliton for going through your thought process on this. I'd have loved to see those benchmarks.