17 April 2014

The Ruby Reflector

Topic

Ruby

  Source Favicon
By Peter Cooper of Ruby Inside over 3 years ago.
Email

…directly from rules defined using standard Ruby syntax ( Treetop has its own Ruby- esque grammar language). Parslet's error messages are also significantly nicer than Treetop's when you inevitably run into trouble with your grammar as they're generated by Parslet itself and don't spring from Treetop's internally generated code.

So if you need to build a parser (or think you might ), check out Parslet - it has a great homepage with some useful documentation. …

rubyinside.com Read
  Source Favicon
Email

Convention (stolen from Ruby) says that we should name our spec files ClassUnderTestSpec.m . Specs for categories will be named FoundationClass ExtensionSpec.m . We don't need public headers for specs.

The testing syntax itself is very block heavy. But other than that, it follows RSpec's syntax almost exactly.

The category method: Starting with the desired end state

We'll start in the same place as we would in Ruby. Given a string ("example string"), we expect …

robots.thoughtbot.com Read
  Source Favicon
By Adam of Transcending Frontiers 3 years ago.
Email

…convention this weekend! @ CaseyF is the # Ruby # Rails guru behind @ Ravelry

Thanks to the following participants:

xfitzyx , davidahood , maybegenius , mariestroughter , jdunbar100 , karlbright , mariovisic , gnoll110 , tfg_dan , ByrneNick , keithpitt , MarkKithcart , davidjrice , imagemechanics , elithrar …

thefrontiergroup.com.au Read
  Source Favicon
By Adam of Transcending Frontiers over 3 years ago.
Email

…Locomotive? http://www.locomotivecms.com/ Awesome # ruby # rails CMS in early development.

@ davidahood : Just jumping in to # newwebfrontier twitter party from Melbourne ( Aust.) using tweetchat.com

@ hillaryhopper : @ xfitzyx Well @ dribbble is a great resource and brings the web design community together. Also gives me a lot of clients.

@ jammbox : just a quickie. Discovr is now # …

thefrontiergroup.com.au Read
  Source Favicon
By Matt Swasey of Viget.com Blogs almost 5 years ago.
Email

The idea for Hackday was simple: provide a free-of-charge, guided discussion on Ruby- and Rails-related topics that was open to the community. Our first topic, ' Refactoring Rails Controllers,' was chosen in response to conversations that had taken place during previous Hacknight events.

At Viget we get to work with Ruby and Rails everyday with other developers doing the same thing. This generates tremendous growth within each of us in the development lab. However, there …

viget.com Read
  Source Favicon
By Simon Taranto of Giant Robots Smashing Into Other Giant Robots 2 days ago.
Email

Then in Ruby (at the application layer), we run the map to get the amounts and the inject to get the sum. Done. Not that bad but we can do better.

Using SQL sum

We want to avoid pulling all this data into memory just to get a single number. Let's have the database do the heavy lifting. class Campaign < ActiveRecord::Base # ... def funds_raised loans.sum(:amount) end end

With this implementation we have the database do the calculation. We get access to sum from ActiveRecord

robots.thoughtbot.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup 3 days ago.
Email

Introducing Hound - Service to automatically nag you about Ruby style guide violations in your GitHub commits.

Heartbleed should bleed X.509 to death - Great rant about the state of internet security, though I don't believe the web of trust approach is workable either.

Surviving APIs with Rails - New course from Codeschool.

afreshcup.com Read
  Source Favicon
By Matt Reider of Engine Yard Developer Blog over 3 years ago.
Email

Tweet the following: Learn # Ruby on # Rails with @ engineyard http://bit.ly/02ror # Ride4Ruby [distance] [your gist] Extra credit. Obviously, the distance your bike will be traveling is farther than the distance between the start and end points. Share Ruby code for calculating the shortest distance between all points, for an extra special prize, which will be announced next week after we look through the submissions.

Ready. Set. Go!

Note: Submissions are closed at midnight tomorrow …

engineyard.com Read
  Source Favicon
By Khan of Engine Yard Developer Blog over 3 years ago.
Email

Ruby Forum Ruby on Rails in StackOverflow RailsBridge RubyFlow Ruby Meetups IRC freenode channels: # ruby, # rubyonrails

If you want to take a class to learn more about Ruby on Rails, check out the next Zero to Rails 3 Class offered virtually January 24 to January 27, 2011.

engineyard.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup 7 days ago.
Email

Ruby 2.1 Garbage Collection: ready for production - A look at the internals of ruby GC, some of the cases where it fails, and what you can do about it.

How to Build a Ruby Gem With Bundler, Test-Driven Development, Travis CI And Coveralls, Oh My! - A good walkthrough of the current state of gem building.

Heartbleed Test - Find out whether a server is vulnerable to the recent devastating OpenSSL bug.

afreshcup.com Read