The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Gosu and Chingu together to build a game
Gosu, a game development library for Ruby, and Chingu, a layer written in the top of Gosu, make the development of games easy in Ruby, check this Megaman game if you want look a real example of Gosu and Chingu working together.
Metaprogramming Dynamic Methods: Using Public_send
Metaprogramming is super cool, but it’s also super tough to learn when you’re first starting out. This blog post takes a look at metaprogramming through dynamic method calls, and explains and implements the public_send method in a real-life example of code abstraction.
Lotus and Microservices
Lotus default architecture is designed for quick dev iterations and easy microservices extraction. http://bit.ly/1ENaSp9
What's new in Rails 5
Check out these new features available in Rails 5 https://medium.com/evil-martians/the-rails-5-post-9c76dbac8fc
Object-to-Object Transformations with Representable
The new Representable 1.2.6 release allows you to directly transform objects to objects, making it simple and fast to map deeply nested object graphs to your desired format. My 3-minutes blog post explains how.
RailsConf 2015 talks that you should watch
Over the weekend I watched a lot of talks from RailsConf 2015 and these are my favourites (so far). You can check them out here.
Idiosyncratic Ruby: Episode 1-4
Idiosyncratic Ruby is a new resource about weird stuff in Ruby. There will be a new blog post every day in May! The first days covered the following:
Best Ruby resources worth following.
Offline over the weekend? [more inside]
Integrate Rubocop in your workflow
Let Rubocop help you to enforce your styleguide: https://intercityup.com/blog/integrate-rubocop-in-your-workflow.html
time_boots.gem - simple time steps
I’ve recently published the gem for tasks like “round time to edge of day”, “advance time by 4 weeks”, “generate ‘each hour’ sequence” and so on. Small, no dependencies, no monkey-patching.
pluck_to_hash gem
A simple gem, adds pluck_to_hash method to ActiveRecord.. returns hash instead of array
https://github.com/girishso/pluck_to_hash
Awesome ActiveRecord (Goodies, Libraries, Tools, Extensions, Guides, etc.) List
Hello, I’ve started yet another awesome collection on GitHub over at the Planet Ruby. What’s news? The awesome-activerecord repo collects ActiveRecord goodies, libraries, tools, extensions, guides, etc. Anything missing? Contributions welcome. Cheers.
Private Module Methods in Ruby
After years of not finding this solution; it turns out it’s really quite simple. http://6ftdan.com/allyourdev/2015/05/02/private-module-methods-in-ruby/
Having fun with opal and sprockets
Blog post about setting up an environment to play with opal.
Mutant and CI
Mutation testing is another form of checking the test coverage. As such it makes sense to put it as part of our Continuous Delivery process. In this blog post I’ll show you how we started using mutant together with TravisCI in the RailsEventStore project.
Ruby, recursion and AI
Find out all possible chess knights movements using minimax algorithm: http://blog.diatomenterprises.com/ruby-and-recursion-to-find-out-all-possible-chess-knights-movements-using-minimax-algorithm/
Ruby on Rails Podcast 189: @dhh RailsConf 2015 Keynote Discussion
Eric Steele joins Sean Devine to discuss @dhh’s RailsConf 2015 keynote on episode 189 of the Ruby on Rails Podcast on 5by5.
[CODE & TUTORIAL] How to build an SMS Voting System with Rails, Sinch & Chartist
Full code and tutorial. Build a simple SMS voting system that you can use at events, meetups, and more. Uses Sinch SMS to receive responses, Ruby for the backend, and Chartist to display the results as a nice looking graph. Try the tutorial here.
Effective Rails Development with Vim
Want to setup Vim for effective Rails development, here you go. Check this tutorial I wrote on SitePoint, from this link.
Treating ActiveRecord's interface as private using FigLeaf
The fig-leaf gem from Avdi Grimm’s Objects causes ActiveRecord’s methods to be treated as a private interface. In this post, I apply this approach to a production Rails app and explain its benefits, as well as some of the challenges encountered.
Handling RabbitMQ publisher failures
Example of handling RabbitMQ publisher failures for your publishing app, an example, when you experience a connection problem because broker(RabbitMQ) for any reason is down, you need to handle this case because the bunny is synchronous and your app may get stuck. http://warolv.net/blog/2015/05/01/handling-rabbitmq-publisher-failures/
Send and receive Tweets using SMS
A 3 part blog series on setting up, sending and receiving Tweets by SMS using Sinatra, EventMachine, Twilio and the Twitter REST and streaming API.
Live Stream — Code Dojo: To-Do List
We’re live streaming this weeks Made Tech Code Dojo on YouTube