Created
June 20, 2013 19:13
-
-
Save blackxored/5825715 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=begin | |
Machine Learning study predicts the Backbone JavaScript framework as the most | |
successful emerging web technology, with reproduceable results. | |
Here's one of such reproductions. | |
=end | |
[29] pry(main)> !!defined?(Rails) #=> true | |
[30] pry(main)> User.count #=> 385 users | |
[31] pry(main)> User.where(:"profile.skills".in => ["forgery"]).size #=> 378 made-up users | |
[32] pry(main)> User.where(:"profile.skills".in => ["Ruby"]).size #=> 1 errrr, just me? | |
[33] pry(main)> User.where(:"profile.skills".in => ["Java"]).size #=> 71 wut? now they're trolling me | |
[34] pry(main)> User.where(:"profile.skills".in => ["Scala"]).size #=> 1 seriously, only one moved on? | |
[35] pry(main)> User.where(:"profile.skills".in => ["Python"]).size #=> 1 come on guys, python is awesome | |
[36] pry(main)> User.where(:"profile.skills".in => ["JavaScript"]).size #=> 72 now we're talking, everyone knows a bit of JS, do they? | |
[37] pry(main)> User.where(:"profile.skills".in => ["Node.js"]).size #=> 71 but not that much I think ;) | |
[38] pry(main)> User.where(:"profile.skills".in => ["Backbone"]).size #=> 308 @jashkenas is a billionaire | |
[39] pry(main)> User.new.career_recommendations.take(1) #=> "Backbone" indeed he is | |
__END__ | |
Lessons learned: | |
1. Forgery <3 Backbone | |
2. I <3 Backbone | |
3. Kernel#rand sucks ;) | |
4. You've probably been link-baited to a gist, not even w PPC :D | |
(C) 2013 TrollBeats Ltd.: "Trolling developers since the birth of C" | |
San Francisco, CA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment