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.
Numeric Bases and Defining Your Own
Explaining numeric bases, positional notation, and implementing your own number bases. http://6ftdan.com/allyourdev/2015/03/06/numeric-bases-and-defining-your-own/
Full Stack Fest Barcelona CFP open
I’m one of the organizers of Full Stack Fest, a conference born from joining the quite successful Baruco and FutureJS. It takes place in the wonderful city of Barcelona this September 1-5. We’re committed to making the conference as diverse as possible, and looking at the previous edition’s attendance statistics, we feel like we can do better. We definitely strive to have a speaker roster and attendee profile as diverse as possible, as this makes for a much richer experience and higher quality. Tickets will be on sale starting this next Monday at 10:00 CEST, and we already have a call for papers and workshops running (with blind selection - will be over on May the 1st). Send in your proposals and stay tuned for Monday!
Gem of the Week #10 - annotate gem - annotate your ActiveRecord models
Hello, over at the Planet Ruby the Gem of the Week series continues with #10 - annotate that lets you annotate your ActiveRecord models with comments about your table structure (schema information). Full article. Cheers.
Testing Ruby Mixins in Isolation
Testing mixin Modules doesn’t have to involve copying-and-pasting tests from one file to another or shared examples. You can write simple isolated tests for your mixins using this easy to understand technique.
All About Methods
A more advanced, and yet accessible look at methods in Ruby and the nuance that comes into play when defining methods on instances, singleton classes, classes, and modules. The secret: think of each as an instance method in the appropriate context. Read more…
Exporting Records to CSV format
In this video, I explain how to generate a CSV file containing attributes and serve it up in the browser using the send_data method in the controller. Watch the screencast on Exporting records to CSV in Rails
SOLID Review: Liskov Substitution Principle
Barbara Liskov introduced her substitution principle back in 1987 during her keynote titled Data Abstraction and Heirarchy. Today, it is one of the five SOLID principles in object-oriented programming. “Instances of any type should be replaceable by instances of its subtypes without creating incorrect behaviors.” How can we ensure that our classes abide by the Liskov Substitution Principle? [more inside]
New Finance gem
Mortgage and Loan calculations released in a gem https://github.com/kolosek/finance_math Number of others are pretty much outdated. If some explaination is needed regarding algorythm you can send message on http://kolosek.com
Setup your Rails app on Nitrous.io
Seeing how running Rails on Windows is not everybody’s cup of tea, here’s a quick guide on how to run a Ruby on Rails app on Nitrous.io, a cloud development box that you can access from wherever you have a browser.
[TUTORIALS] Auth Ruby Gem for the Javascript SDK using Sinch
You can use the gem sinch_auth to generate a user ticket that authenticates users through the Sinch Javascript SDK. Learn more in this tutorial.
A new release for `geo_pattern` is available
A new release of geo_pattern was shipped by @jasonlong. Look here for more detailed description.
Video Tutorial: PostgreSQL Backup & Restore
Use PostgreSQL as the database for your Ruby / Rails app? Check out this video tutorial on how to simply backup and restore it.
8 Things I Learned During 8 Years of Ruby and Rails
Summarized in a personal blog post.
Five Things I Knew About Programming Before I Did a Startup
After reading the Sorrows of a New Developer post, I realized that my attitude toward programming has changed over my career, and I decided to write up a piece of my own, on the ways that my coding practice has evolved.
Phusion Passenger 5.0.1 released, officially ready for production
The 5.x series of Passenger – aka “Raptor” – introduces many major improvements like much better performance, a new HTTP JSON API for better insights into server and application behavior, better logging and WebSocket support, and more. Read the release announcement to learn more.
New Datafiles for Top Football Leagues (en,de,es,fr,it) - e.g. use $ sportdb new top
Hello, I’ve added some more datafiles that let you build your own football.db - using free open public domain datasets - with a single command e.g. $ sportdb new fr2014-15. The new datafiles include: de.rb and de2014-15.rb; es.rb and es2014-15.rb; it.rb and it2014-15.rb; fr.rb and fr2014-15.rb; at.rb and at2014-15.rb; top.rb and top2014-15.rb (includes top leagues e.g. en,de,es,fr,it). Cheers.
CanCan Overview
CanCan was originally introduced by Ryan Bates in 2009 and was taken over by Bryan Rite. It’s been a while since I’ve seen a post about it so I decided to do a write up on my opinion of it. See the details at Thoughts on CanCan
You don't need to wait for your backend: Decisions and Consequences
Choosing to not wait for a backend while processing user actions on frontend has interesting consequences. We’ve made an analysis of pros and cons of two most common approaches. Interested? Take a look here!
How to Write Command-Line Applications in Ruby with GLI
I just published a post about writing command-line applications in Ruby with GLI. It allows to increase effectivity of your work as a software developer. Take a look here »
Ruby: The Case for Case
A more in-depth look at using case switching in Ruby. http://6ftdan.com/allyourdev/2015/03/03/ruby-the-case-for-case/
MagicCloud - Wordle-like word cloud
New gem, named magic_cloud, recently released. It allows to draw dense colourful word clouds from weighted words, similar to Wordle. It’s pretty stable, though not that fast.
Infinity in Ruby
Have you ever run into an infinite value in Ruby? This post takes a look at how Ruby handles infinity. […continue reading…]