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.
Avoid these traps when nesting Ruby modules
But buried within Ruby’s nesting implementation - and Rails’ autoload system - are a few traps that can cause your code to fail in strange and wonderful ways. In this post, we’ll discuss the origin of these traps and how you can avoid them. http://blog.honeybadger.io/avoid-these-traps-when-nesting-ruby-modules/
Exposing the code school lie
Take a look at a typical code school, and you’ll find a huge curriculum and a promise: “Work through our lessons, and you’ll be ready to work as a professional developer!” What actually happens…? - RubySteps
Creating an IRB-based Read-Eval-Print-Loop-console for your project
Recently I added a Read-Eval-Print-Loop-Console (REPL)-console to the aruba-project as playground for our users similar to the one you find in rails. This article first shows you aruba’s console a bit and then describes how you can build your own console in Ruby with some help of IRB.
Fit Commit: A Git hook to validate your commit messages
Based largely on Tim Pope’s authoritative guide. Read more
How To Install Memcached On A Vps Server Or A Dedicated Server?
Memcached is a Unix daemon written in C that exposes a specified amount of memory space as a hash table on the network using a dedicated text or binary protocol. Read full article on RailsCarma Blog
encapsulate complex business logic with the specification pattern
I wrote a blog post with Ruby example on how to encapsulate complex business logic conditions in to intention revealing classes using the specification pattern
Express yourself
Just published a blog post about some points on Ruby’s expressiveness and using it. Check it out here.
Alias method for #call()
This is a cool thing I just found out. Ruby has an alias to the #call() method which I didn’t know about. Read more
Working with Ruby exceptions outside of the rescue block
It’s often useful to be able to get the most recent exception, even if your code doesn’t control the lifecycle of that exception. In this post we explore a few of the ways to do this. http://blog.honeybadger.io/working-with-ruby-exceptions-outside-of-the-rescue-block/
Optimise your Ruby logging with blocks
When peppering your code with logging statements, you could be adding overhead even when your application’s log level is set to display only critical errors. Switching to passing blocks to your log commands may help.
Wisper 2.0 Survey
Using Wisper? I have a few questions which will help with choices regarding Wisper 2.0, thanks.
New gem: i18n-backend-side_by_side
Tired of jumping between language files when translating keys? Stop jumping and have all the languages side by side.
Domain Driven Design, Where the real value lies
Exploring the strategy and tactics of Domain Driven Design. Its similarities with Hexagonal Rails and Clean Architecture as its compatibility with the Rails Stack. http://insights.workshop14.io/2015/08/20/domain-driven-design-where-the-real-value-lies.html
CQL (Cassandra query language) builder in OOP style.
The query_builder gem that can be used on top of the official datastax ruby driver for Cassandra.
Managing Redis Reconnections From Ruby
Learn lessons of stability and reliability through an exploration of how the redis-rb client manages reconnection:
Just launched WeWorkRemotely Clone
Use Stripe Test Credit Card (4242424242424242) and play with my jobs board clone
The Big List of View Specs
The source code from 250+ view specs gathered from real world Rails apps for a little bedtime reading:
Unlocking Ruby Keywords: Begin, End, Ensure, Rescue
Ruby keywords are important to understand, but can be confusing to learn all at once. This blog post looks at four important keywords that can be used within a single block: begin, end, ensure, and rescue.
football.db - New 2015/16 Seasons - English Premier League, Bundesliga, etc.
Hello, The plain text football fixtures for leagues, teams, match schedules, stadiums, and more
that you can read with the sportdb gem into your SQL database of choice now includes the 2015/16 seasons for the English Premier League, the Deutsche Bundesliga, and more. Any league missing? Add your league. Use Datafiles to build youself a copy e.g. $ sportdb new en2015-16.
All data, code and samples public domain. Enjoy the beautiful game. Cheers.
Cabernet Gem 0.1.1 Released
This version adds tests and hides implementation details. For details : README
The Neo4j.rb Project
The Neo4j.rb project has been around for a while but I recently created a series of short screencasts to introduce it. If you’re already familiar with ActiveRecord and/or Mongoid you might want to start with episode four to learn what’s different about Neo4j. Read more
Introduction to Microservices
Microservices is an approach to application architecture and development wherein an application is built in smaller, separate pieces. Each service is developed, tested and deployed independently. See more at:
Sending email from your Jekyll static site
I use Jekyll to publish my blog. In this post I explain how I send emails from my blog
"KAInstagram, Episode #3 | KAI-Console
I’ve just published this movie this’s about console Instagram like client authorised by OAuth2. Just for fun :)