Ruby

  • Most Topular Stories

  • A Survival Guide for Legacy Rails Apps

    RubyFlow
    28 Jul 2014 | 10:55 am
    I wrote an article on some tips I picked up with working on legacy Rails apps. I hope you like it!
  • How to use jQuery UJS for AJAX requests

    RubyFlow
    28 Jul 2014 | 8:24 am
    I just released a new screencast about using jQuery UJS and AJAX in your Rails apps.
  • Tips for keeping a monolithic Rails app in check with principles from DCI

    RubyFlow
    27 Jul 2014 | 8:46 pm
    Scalable code without bloat: DCI, Use Cases, and You
  • How to create link aggregation site in Rails: Adding, editing, deleting links

    Masteruby
    6 Jun 2014 | 12:00 am
    In this post we’ll create link aggregation that look like Hacker News. Here’s how it’ll be look like: In this tutorial we’ll cover: Design our page with HTML, CSS Creating authentication with Devise How to create, edit and delete links How to show link user and time when post was submitted. Design our page Before we start to add real code, we’ll start with html and css. First create application named mlink. rails new mlink We’ll start with designing how our page will be look like. Add slim gem to your Gemfile Gemfile gem 'slim-rails' Slim is template language, that strips…
  • Solitary Unit Test

    Jay Fields' Thoughts
    Jay Fields
    16 Jul 2014 | 12:55 pm
    Originally found in Working Effectively with Unit TestsIt’s common to unit test at the class level. The Foo class will have an associated FooTestsclass. Solitary Unit Tests follow two additional constraints: Never cross boundaries The Class Under Test should be the only concrete class found in a test. Never cross boundaries is a fairly simple, yet controversial piece of advice. In 2004, Bill Caputo wrote about this advice, and defined a boundary as: ”...a database, a queue, another system...”. The advice is simple: accessing a database, network, or file system significantly increases…
  • add this feed to my.Alltop

    RubyFlow

  • A Survival Guide for Legacy Rails Apps

    28 Jul 2014 | 10:55 am
    I wrote an article on some tips I picked up with working on legacy Rails apps. I hope you like it!
  • How to use jQuery UJS for AJAX requests

    28 Jul 2014 | 8:24 am
    I just released a new screencast about using jQuery UJS and AJAX in your Rails apps.
  • Tips for keeping a monolithic Rails app in check with principles from DCI

    27 Jul 2014 | 8:46 pm
    Scalable code without bloat: DCI, Use Cases, and You
  • github_api v0.12.0 just released!

    27 Jul 2014 | 11:58 am
    I've released github_api gem after few months of rewriting internals. It has magical unicorn logo! The most notable improvements are in parsing of method arguments to allow for flexibility when specifying required parameters. Many new api calls have been added to match current GitHub API. Some major bugs have been fixed connected with making requests. Please see changelog for specific changes. I'm looking forward to your feedback as this library is heading towards 1.0.0 release.
  • Football Data - 10+ Leagues (Premier League, Bundesliga, ..) 10+ Seasons - Plain Text (CSV) Fixtures

    27 Jul 2014 | 9:51 am
    Hello, Using a Ruby build script (that is, Rakefile) I've built up a GitHub org, that is, football.csv - for open football data in the CSV (comma-separated values) format, that is, plain old text. Leagues include the English Premier League, Championship, Bundesliga, Eredivisie, Süper Lig, Primera División, Pro League etc. for 10+ seasons (e.g. 2013/14-1993/94). Cheers.
 
  • add this feed to my.Alltop

    Jay Fields' Thoughts

  • Solitary Unit Test

    Jay Fields
    16 Jul 2014 | 12:55 pm
    Originally found in Working Effectively with Unit TestsIt’s common to unit test at the class level. The Foo class will have an associated FooTestsclass. Solitary Unit Tests follow two additional constraints: Never cross boundaries The Class Under Test should be the only concrete class found in a test. Never cross boundaries is a fairly simple, yet controversial piece of advice. In 2004, Bill Caputo wrote about this advice, and defined a boundary as: ”...a database, a queue, another system...”. The advice is simple: accessing a database, network, or file system significantly increases…
  • Working Effectively with Unit Tests Rough Draft Complete

    Jay Fields
    30 Jun 2014 | 5:48 pm
    I finally put the finishing touches on the rough draft of Working Effectively with Unit Tests. It's been an interesting journey thus far, and I'm hoping the attention to detail I've put into the rough draft will translate into an enjoyable read. What I did poorly: I'd written the book's sample before I ever put it on leanpub. Before a book is published you can collect contact and price information from those who are interested. However, once you publish and begin selling, you no longer have the ability to collect the previously mentioned information. I published and began selling my book…
  • Working Effectively with Unit Tests

    Jay Fields
    21 May 2014 | 4:29 am
    Unit Testing has moved from fringe to mainstream, which is a great thing. Unfortunately, as a side effect developers are creating mountains of unmaintainable tests. I've been fighting the maintenance battle pretty aggressively for years, and I've decided to write a book that captures what I believe is the most effective way to test. From the PrefaceOver a dozen years ago I read Refactoring for the first time; it immediately became my bible. While Refactoring isn’t about testing, it explicitly states: If you want to refactor, the essential precondition is having solid tests. At that time, if…
  • Weighing in on Long Live Testing

    Jay Fields
    19 May 2014 | 9:52 am
    DHH recently wrote a provocative piece that gave some views into how he does and doesn't test these days. While I don't think I agree with him completely, I applaud his willingness to speak out against TDD dogma. I've written publicly about not buying the pair-programming dogma, but I hadn't previously been brave enough to admit that I no longer TDD the vast majority of the time. The truth is, I haven't been dogmatic about TDD in quite some time. Over 6 years ago I was on a ThoughtWorks project where I couldn't think of a single good reason to TDD the code I was working on. To be honest,…
  • REPL Driven Development

    Jay Fields
    27 Jan 2014 | 9:53 am
    When I describe my current workflow I use the TLA RDD, which is short for REPL Driven Development. I've been using REPL Driven Development for all of my production work for awhile now, and I find it to be the most effective workflow I've ever used. RDD differs greatly from any workflow I've used in the past, and (despite my belief that it's superior) I've often had trouble concisely describing what makes the workflow so productive. This entry is an attempt to describe what I consider RDD to be, and to demonstrate why I find it the most effective way to work. RDD CycleFirst, I'd like to…
  • add this feed to my.Alltop

    Polishing Ruby + Software Releases - zenspider.com

  • ruby_parser version 3.6.2 has been released!

    ryan davis
    18 Jul 2014 | 4:19 pm
    ruby_parser (RP) is a ruby parser written in pure ruby (utilizing racc–which does by default use a C extension). RP’s output is the same as ParseTree’s output: s-expressions using ruby’s arrays and base types. As an example: def conditional1 arg1 return 1 if arg1 == 0 return 0 end becomes: s(:defn, :conditional1, s(:args, :arg1), s(:if, s(:call, s(:lvar, :arg1), :==, s(:lit, 0)), s(:return, s(:lit, 1)), nil), s(:return, s(:lit, 0))) Tested against 801,039 files from the latest of all rubygems (as of 2013-05): 1.8 parser is at 99.9739% accuracy, 3.651 sigma 1.9 parser…
  • flog version 4.3.0 has been released!

    ryan davis
    18 Jul 2014 | 4:17 pm
    Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is in. Changes: 4.3.0 / 2014-07-18 1 minor enhancement: Added methods_only param to FlogTask. (jocranford) home: http://ruby.sadi.st/ code: https://github.com/seattlerb/flog rdoc: http://seattlerb.rubyforge.org/flog vim: http://github.com/sentientmonkey/vim-flog
  • omnifocus-redmine version 1.2.6 has been released!

    ryan davis
    18 Jul 2014 | 4:14 pm
    Plugin for the omnifocus gem to provide synchronization with Redmine Issues. This plugin uses the Redmine REST API. It must be enabled by an administrator for the plugin to work. The first time this runs it creates a yaml file in your home directory for the configuration data. redmine_url is required. This is the base url for the redmine repository. user_id is required. To find your user id login and go to the my account page. Your user_id is the number at the end of the url for my account. username is optional. It is used if the redmine server requires authentication. password is optional.
  • minitest version 5.4.0 has been released!

    ryan davis
    7 Jul 2014 | 2:37 pm
    minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking. "I had a class with Jim Weirich on testing last week and we were allowed to choose our testing frameworks. Kirk Haines and I were paired up and we cracked open the code for a few test frameworks... I MUST say that minitest is *very* readable / understandable compared to the 'other two' options we looked at. Nicely done and thank you for helping us keep our mental sanity." -- Wayne E. Seguin minitest/unit is a small and incredibly fast unit testing framework. It provides a rich set of…
  • ZenTest version 4.10.1 has been released!

    ryan davis
    7 Jul 2014 | 2:27 pm
    ZenTest provides 4 different tools: zentest, unit_diff, autotest, and multiruby. zentest scans your target and unit-test code and writes your missing code based on simple naming rules, enabling XP at a much quicker pace. zentest only works with Ruby and Minitest or Test::Unit. There is enough evidence to show that this is still proving useful to users, so it stays. unit_diff is a command-line filter to diff expected results from actual results and allow you to quickly see exactly what is wrong. Do note that minitest 2.2+ provides an enhanced assert_equal obviating the need for unit_diff…
 
  • add this feed to my.Alltop

    Vinsol - Ruby on Rails, iOS, Android Consulting and Development

  • Vinsol Introduces ShopSpree: First iOS App for Spree Commerce

    Mayank Tandon
    24 Jul 2014 | 3:31 am
    We understand the preferences of shoppers have changed globally. Today, consumers prefer shopping in the most convenient ways: anywhere, anytime and on the move. This changing landscape has given birth to the world of mobile and applications. The statistics prove the increase in mobile internet usage is on the rise, now standing at 65% globally. Around 32% of all online purchases have been done through mobile. Mobile commerce is looking promising, and expects the spending to be $200 billion USD by the end of 2014, reaching an approximate 50% growth from 2013. Predictions indicate that by…
  • Bank Transfer Extension for Spree

    Mayank Tandon
    16 Jul 2014 | 7:21 am
    After we started using Spree for development of e-commerce stores for our clients, we often found the clients looking for different modes for achieving more conversion. From statistics it was visible that end users need more convenience in their hands while shopping online, particularly in the developing nations where credit card penetration is relatively low. In such environment, Bank Transfer appears to be another practical way by which consumers shopping online can make payments for their order. Vinsol is SpreeCommerce Premier Partner. View Vinsol’s Services Bank Transfer or BT, is a…
  • Custom model callbacks in RubyOnRails

    Akhil Bansal
    7 Jul 2014 | 1:04 am
    RubyOnRails provides us with many model callbacks around the object’s lifecycle when object is being created, updated or destroyed. For example: before_create, after_create, before_update, after_destroy etc. We use them to write & run our code around the object’s lifecycle by defining a method and associating them as one of the callbacks. But then how can we make a piece of code execute as a callback for any another defined method except create, update, save and destroy? For example, let’s say we have a model Article and we want to execute something just before and…
  • Reasons to consider Spree when choosing an e-commerce platform

    Mayank Tandon
    4 Jul 2014 | 1:17 am
    Don’t select your next e-commerce platform without reading about these 13 factors first. Online business has become a dominant and growing force. Global sales through e-commerce topped $1 trillion in 2012, with North American and Asia-Pacific nations accounting for nearly 70% of it. Projections are that global e-commerce sales will reach $1.5 trillion in 2016. “Conduct better due diligence of the platform” Over 60% of medium to large e-commerce site owners claim they should have done better due diligence on the platform they selected for their store. Much too often do…
  • Research firm SourcingLine publishes Vinsol in the list of top Ruby on Rails developers across the globe

    Mayank Tandon
    26 Jun 2014 | 8:35 am
    The new research identifies leading web & application developers that work extensively with Ruby on Rails. WASHINGTON, Updated At: June 25, 2014 – Today SourcingLine published new research on leading web and application developers with extensive Ruby on Rails experience. The top firms inaugurated into the Ruby on Rails Developers Leaders Matrix are as follows: Vinsol, Quick Left, Idyllic Software, philosophie, Burnside Digital, Perfectial, DevMynd Software, CognitiveClouds, and VeriQual. Analysts reached out to firms with a demonstrated history of successful projects for both…
  • add this feed to my.Alltop

    Ruby on Rails Blog

  • 4 important concepts any front end developer should know

    Vinod Sobale
    20 Jul 2014 | 4:07 am
    Note: I picked these 4 concepts because I feel they would build a strong foundation of understanding for you and it is entirely my opinion and I also understand that every front end developer may not feel the same way. Also, purpose of this article is to only briefly explain about these concepts so you can dig deeper when you know enough. Event Propagation Event Delegation Document Fragment CSS Specificity Lets begin… Event Propagation Event dispatching in DOM tree – (image source – W3C) Event (event object) must determine the propagation path (refer to the diagram below)…
  • Require.js with Rails

    Vinod Sobale
    15 Jul 2014 | 2:33 am
    If you know what require.js does and Ruby on Rails is your thing, then you have come to the right place. If not, I encourage you to read up on following topics: Modular approach to writing JavaScript AMD and JavaScript Dependency management, Module Loading and Lazy Loading Installation and Setup Add ‘requirejs-rails’ gem in the Gemfile of your project. It relieves you from some manual labour. Get rid of everything from your application.js which is located under /assets/javascripts/application.js Now locate your application layout under views/layouts/application.html.erb Replace your with…
  • Computer Science vs Hair-Saloon

    Shashank Singh
    2 Jul 2014 | 1:12 am
    Humans are a essentially a “Problem solver” species. Evolution pitted us against giants , microbes and everything in between but we survived. Left alone, clueless and to our own devices we were to defend ourselves. Defend we did, with our intelligence and problem-solving abilities, in this game that ran for thousands of years. Arguably we did falter sometime over the eons but then we picked up dusting off moving towards a better future. Thats is demonstrated, every time you take a tight turn on corner of street, Decide to get that fancy haircut after all, go on a world tour on a whim you…
  • Capacity: The biggest challenge for High Growth Companies

    Jinesh Parekh
    27 May 2014 | 1:08 am
    So you’ve just gotten 3M in funding. Is that good news? Here are the hypothetical terms of getting funding: You get your first 400K right now. That’s good news of course! You get  600K if you hit 100 paying customers in next 3 months and build 20 new features. This is bad news. You get other 1M if you hit your second milestone. Current Situation: Your team size is just three, two of you being the founders of the company. If you both sit and code then who will procure the 100 customers? Time to ramp up. And that is why it’s not so good news, but it’s bad news. As a…
  • Silver Bullet – The Problem

    Jinesh Parekh
    10 May 2014 | 8:10 pm
    We’re working on a very interesting scheduling application MVP which was initially focused on one of the B2C industry. As we began the work, our customer asked us to build the system so generic that it can scale to any industry. Now this would make complete sense to any one and you would think that it would be the right architecture to go for. However, we proposed to our customer otherwise. We told the customer that they are aiming at a silver bullet and that can lead to a certain death for their startup. We highlighted below problems for them: BRAND MESSAGING Every industry has a…
 
  • add this feed to my.Alltop

    Masteruby

  • How to convert Ruby source code to pdf in Linux

    9 Jul 2014 | 12:00 am
    In this post I want to show to convert source code to pdf using Linux. We’ll use file base.rb from Sinatra framework as example. Converting Ruby source code to HTML First thing we need to is to convert our source code to html. To convert it we’ll use code2html. Install it right now: sudo apt-get install code2html We want to convert base.rb file from Sinatra source code. We want to include line numbers in our conversion so we’ll use flag -n to add them. Let’s convert it. code2html -n base.rb base.html Code2html will take work for conversion. Look at our converted file in browser.
  • How to create digital clock in Ruby Shoes

    29 Jun 2014 | 12:00 am
    In this post I want to show how to create digital clock using Shoes. Clock is first in following series of tutorials about using Time library in Shoes. Next time we’ll look at stopwatch and timer. You can find out example code on github Here’s what we’ve in front of us. First we’ll add current time with Ruby Time library and append in to title element Then we’ll add automatic update to current time And we’ll add some styling to our clock Adding current Time to our app. First thing we need to do is add current time. We’ll use Time library for this. Create ruby file clock.rb and…
  • How to create post-it notes app in Ruby Shoes

    16 Jun 2014 | 12:00 am
    In this post I want to show you how to create post-it notes app something like Tomboy Notes in Linux. Final product will be look like this: Design app First thing we’ll do is to design our app. At the top of page we’ll have three buttons, new, open, and save, so let’s design it. require 'green_shoes' require 'yaml/store' Shoesapp height 200 width 200 title "Post-it notes app" do flow do button "New" do end button "Open" do end button "Save" do end end end You certainly noticed that I’ve added line require yaml/store in top of the…
  • How to create link aggregation site in Rails: Adding, editing, deleting links

    6 Jun 2014 | 12:00 am
    In this post we’ll create link aggregation that look like Hacker News. Here’s how it’ll be look like: In this tutorial we’ll cover: Design our page with HTML, CSS Creating authentication with Devise How to create, edit and delete links How to show link user and time when post was submitted. Design our page Before we start to add real code, we’ll start with html and css. First create application named mlink. rails new mlink We’ll start with designing how our page will be look like. Add slim gem to your Gemfile Gemfile gem 'slim-rails' Slim is template language, that strips…
  • 7 Websites to Get Latest News About Ruby

    30 May 2014 | 12:00 am
    In this post I want to show you some ruby news websites. It includes some ruby newsletters, blog directories and link aggregation sites. 1. Ruby Weekly Ruby Weekly is a email newsletter curated by Peter Cooper. If you subscribe you get into your emailbox every week collection of videos, tools and news from last week. 2. Ruby Daily Ruby Daily is a daily newspaper website about Ruby by Nick Kugaevsky. It covers wide range of Ruby related subjects for example: Sinatra, Ruby on Rails, Heroku, RVM, TDD and more. 3. Alltop Ruby section of Alltop collects stories from Ruby related blogs. If you want…
Log in