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.
As a new Rubyist What can I do?
I get asked this question a lot from developers I coach. Or I get the question in it’s other form, “So how do you learn to write clean, uncoupled ruby?” Or the other question, the one I get from people who disagree with me… “Why do you have such strong opinions? How did you choose your opinions?” [more inside]
worldcup2014.db - Pre-Built SQLite Database for Download (incl. Qualifiers)
Hello, For your convenience I’ve pre-built w/ the sportdb Ruby gem -worldcup2014.db - an SQLite database - using the open football public domain data sets. You’ll find the release on GitHub. (~ 1 Meg). The free database includes all qualifiers (200+ teams, 800+ matches) plus the upcoming final round kicking off on Jun/12 in São Paulo in Brazil. Enjoy. Cheers. Note: You can always build yourself an up-to-version using rake (e.g. issue $ rake build DATA=worldcup2014). That’s it.
Why I can TDD And why DHH Can't
At first, I HATED TESTING. I fought it’s adoption arguing the position DHH has returned to, browser testing by humans. I hated it because I sucked at it. But I always have a mentor, and I ended up with one who was a XP’er and an old small talker. That changed my life. [more inside]
Reading Ruby for Professional Development
This article by (Professor) Karl Stolley takes a very interesting look at applying professional reading techniques to reading code.
Rapidly compare gem versions in a Gemfile to their latest versions
Did you ever look at one of your project’s Gemfiles and notice you have 42 gems with semantic version locking and now you want to see if there are new versions of each gem? [more inside]
Strong Parameters by Example
Up until Rails 3, the solution was to list accessible fields right in your models. Then Rails 4 came along and introduced a different solution - strong_parameters, allowing you to take a greater control over the sanitizing process [more inside]
10 Free Ways of Learning Ruby
You should be able to begin picking up the very basics rather quickly, by learning Ruby from these resources and platforms, but I think that I’ll be making another one of these in the coming days, to cover some free Ruby books that you can download and study – because, books do add a little bit more in-depth to the art you’re trying to master. [more inside]
When is your code DRY enough?
You’re aware that duplicated code is a code smell. You know a couple of ways to dry it up, but it’s not easy to know how much you should. When is it enough? That’s the question I address in the blog post of today.
TDD isn't dead just because DHH Sucks At It
So I joined the RR Parley chat LAST WEEK. I have been a member on various Ruby forums since 2007. Today someone posts something to the effect of “TDD IS DEAD - What do you think”, to which I replied that DHH likes highly coupled, badly designed code. [more inside]
This Week in Rails: the Backstory
A blog post about the This week in Rails newsletter.
6 Books for Learning or Advancing your Rails Knowledge
I’ve made a list of 6 rails books for beginner or intermediate developers
Convert photographs to ASCII using Ruby
I just created a Ruby script to convert photographs to ASCII. This is just an initial spike of the idea so the quality can definitely be improved. Thoughts and feedback are welcomed. You can view the source code here and read the write up here. Enjoy!
Capistrano notifications for all team members via OSX Notification Center
I just launched gem capistrano-team_notifications which helps track deployments easily.
How do you get the TDD flywheel moving?
A reader had a question about getting started with TDD, so I answered it.
Free Ruby TDD Weekend Workshop
So I am in the middle of a lot of planning for “Ruby Workshops in the Tropics” this summer, where myself and a few other advanced programmers will be holding sessions to help you write tests, more concise, idiomatic ruby, and more…. [more inside]
How can a Ruby style guide help you write better code?
Why is a styleguide important and how can you make sure you stick to it? I have some thoughts on how a Ruby style guide can help you write better code.
Introducing Lotus::Model
Almost all the Ruby frameworks for the Model layer mix up business logic with database details. This kind of architecture leads to god classes, slow build times and to a general bad design. These problems are well known to legacy projects’s maintainers. [more inside]
How to customise serializer for ActiveRecord#serialize?
Don’t you know that ActiveRecord comes with the powerful serialize class method that help you to serialize column value into YAML or JSON? What if you want to customise the serializer? In this article, the author walks you through how to create a naive encrypted JSON serializer.
Rails Reloader: A Lesser Known Rails Hook
I wrote a new post on Rails Reloader: A Lesser Known Rails Hook. Hope you enjoy!
Jasmine-rails example
Just prepared an example Rails 4 application with jasmine-rails. So, what special about it? It shows step-by-step (actually, commit-by-commit) how to approach different testing situations. One thing that was solved there is loading HTML fixtures from Rails.
Top 5 Ruby IDE Solutions for Web Developers
I’ll be going over each of the Ruby IDE’s briefly, and if possible include a tutorial from someone who’s experienced with each platform more than I am. You can also submit your own, and I’ll consider adding it to the list. [more inside]
Logging improvements: Deployment logs
We would like to introduce you to a couple of cool new things we have added to our application logging: https://ninefold.com/news/deploy-logs/
iStats: A Ruby Wrapper to Grab CPU Temp, Fan Speeds and Battery Health on OS X
iStats is a Ruby gem that displays information about your system. It currently supports CPU temperature, fan speeds and battery health. The gem is a Ruby wrapper for a small C library that interacts with Apple’s IOKit library.
Ruby on Rails Introduction
Hi I was collecting data for my blog seaniea.I love to write on tech and developers story.During my research I found helpful post on <a rel=”” href=”http://solutionsformobility.blogspot.com/2014/04/ruby-on-rails-introduction.html” rel=”nofollow” >Ruby on Rails Introduction</a> and dazzling video on Rails Coach Podcast.I’m Imran founder of <a rel=”” href=”http://www.seaniea.com/” rel=”nofollow” >Seaniea</a> .