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.
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> .
Easy way to get IDs from social network links. IDs, please
I’ve released v1.0.0 of IDs, please. Get social network IDs or screen names from links to social network accounts.
Uplink Latency of WiFi and 4G Networks
WiFi makes no latency promises; 4G incurs scheduling costs but offers more stable performance. To minimize latency, don’t trickle data!
On Documentation-Driven Development 📝
Popular development approaches don’t emphasize the design process. You may be familiar with the concepts of test-driven development and behavior-driven development, but let’s talk about the lesser-known concept of documentation-driven development.
Local Notifications in RubyMotion - Keep your users engaged
By using local notifications you can remind your users about your application, notify them with reminders, and use the notifications for all kinds of creative ways of enhancing the user experience and engagement with your application. In this episode we round off the functionality of our Tasker application by implementing local notifications to remind them of due tasks. [more inside]
mongoid-observers for mongoid 4.0
Because this gem doesn’t exist and I need to use it very often. Therefore, I extract the code from mongoid on my own. It’s basically the same code from mongoid before it’s removed. Try it out, https://github.com/chamnap/mongoid-observers.
Never use ActiveRecord persistence methods in Rails controllers
Rails controllers are a mess. There’s one relatively simple practice I’ve adopted that helps improve their code significantly: Never use ActiveRecord persistence methods in Rails controllers, and never, ever use ActiveRecord filters.
Don't just dump code into your models
A few years ago there used to be a motto saying Skinny controllers, fat models. It was good at the time, because people thought all of the application code belonged into the controllers, and it helped them realize that it’s good to have just a simple controller layer and push things down. The problem with this motto is that it’s wrong. Continue reading
configure macbook for ruby/rails development
My instructions on how to configure Macbook Pro on Mavericks to work with ruby and rails.
Writing Software that is Easy to Change
I have been on a journey for some time now. It started when I was a 8 year old kid who decided to take his Dad’s Betamax apart to see how the movies got in there. It continued when I was 10 and I got a Commodore and played tape-drive games like Red Baron. My future was forever set in stone when I arrived at a new Jr. High School @ 13 and they had AppleIIes in my home room, math lab, and computer lab. [more inside]
Rake tasks from a Rubygem
Short blog post on exposing new Rake tasks to an application, through a gem. [more inside]
Backend app & client, hooking it into rack and a server, 43sloc
While working on a client to consume an app, I needed to figure out how to test it. A little research and a little playing around led to this proof of concept. [more inside]
Why Git's Post-Receive Hooks are Broken (and a Ruby-Based Fix!)
Git hooks can be useful, but they’re arcane and obscure… And written in Bash. OnLive has written a nice Ruby-based library to fix that… [more inside]
Useful Gems for Rails Developer. Part 1: Development
I just published the article about usefull gems in development for Rails developers. Hope, you’ll have fun reading it!