Vaguery + ruby   137

Home - GitHub
"CukeSalad is a Cucumber extension that allows you to focus on the task at hand - expressing examples, the roles involved in those examples and what those roles can do with the product under development."
Cucumber  behavior-driven-design  test-driven-design  Ruby  toolkit  rubygem 
may 2011 by Vaguery
Speeding up Rails startup time - Xavier Shay's Blog
"In which I provide easy instructions to try a new patch that drastically improves the start up time of Ruby applications, in the hope that with wide support it will be merged into the upcoming 1.9.3 release. Skip to the bottom for instructions, or keep reading for the narrative."
Ruby  performance  speed  Rails  hacks 
may 2011 by Vaguery
Twitter Engineering: Faster Ruby: Kiji Update
"0.11 is a much more performant and operable runtime than Kiji 0.10. However, through this work we identified a practical strategy for making an even better, fully-generational version that would apply well to Ruby 1.9. Time will tell if we get to implement it."
Ruby  software-engineering  interpreter  performance 
may 2011 by Vaguery
Usage - GitHub
"Jekyll at its core is a text transformation engine. The concept behind the system is this: you give it text written in your favorite markup language, be that Markdown, Textile, or just plain HTML, and it churns that through a layout or series of layout files. Throughout that process you can tweak how you want the site URLs to look, what data gets displayed on the layout and more. This is all done through strictly editing files, and the web interface is the final product."
Ruby  library  GitHub  web-design  markup  toolkit 
may 2011 by Vaguery
rQRCode, a Ruby library for encoding QR Codes
"rQRCode is a library for encoding QRCodes in Ruby. It has a simple interface with all the standard qrcode options. It was adapted from the Javascript library by Kazuhiko Arase."
QR-code  ruby  library  rubygem  algorithm  project 
may 2011 by Vaguery
mojombo/grit - GitHub
"Grit gives you object oriented read/write access to Git repositories via Ruby. The main goals are stability and performance. To this end, some of the interactions with Git repositories are done by shelling out to the system's git command, and other interactions are done with pure Ruby reimplementations of core Git functionality. This choice, however, is transparent to end users, and you need not know which method is being used."
version-control  Ruby  git  GitHub  library  programming  documents 
may 2011 by Vaguery
Compass Help | Compass Documentation
"Compass is an open-source CSS authoring framework which uses the Sass stylesheet language to make writing stylesheets powerful and easy. If you're not familiar with Sass, you can take a look at these simple tutorials to get caught up."
css  web-design  framework  SASS  Ruby 
may 2011 by Vaguery
Faye: Simple pub/sub messaging for the web
Faye is an easy-to-use publish-subscribe messaging system based on the Bayeux protocol. It provides message servers for Node.js and Rack, and clients for use in Node and Ruby programs and in the browser.
distributed-processing  publish-and-subscribe  architecture  software-development  Ruby  javascript 
may 2011 by Vaguery
Friday fun projects | (R news & tutorials)
At some point, I’ll turn to my favourite web application combo: Sinatra + MongoDB + Highcharts, to visualize these data dynamically on a web page. For now though, we can get a quick idea and create even more Friday fun by learning how to use RApache to run and view R code in the browser.
Ruby  R-language  visualization  statistics  programming  learning-by-doing 
may 2011 by Vaguery
ashleyw/phrasie - GitHub
Determines important terms within a given piece of content. It uses linguistic tools such as Parts-Of-Speech (POS) and some simple statistical analysis to determine the terms and their strength.
Ruby  library  tagging  natural-language-processing  NLP  statistics  text-mining 
may 2011 by Vaguery
aruba - Cucumber steps for testing your command line apps - The Changelog - Open Source moves fast. Keep up.
"Terminal junkies rejoice! Now you can use Cucumber to test your command line interfaces just like you do for your web apps.…"
ruby  command-line  cucumber  testing  bdd 
september 2010 by Vaguery
gist: 503660 - What's wrong with Ruby libraries for CouchDB?- GitHub
"It is my opinion, that anybody should be able to use Couch in Rails or Sinatra or plain Ruby application as easily as using ActiveRecord, or, maybe more importantly, the highly faved MongoDB. Please share your opinion in the comments."
CouchDB  ruby  NoSQL  library  call-to-action  rubygem 
august 2010 by Vaguery
CASS
"In the social sciences, it is useful to understand the relative similarities of concepts that are embedded in a particular text (from a particular group or a particular person). For example, in trying to estimate conservative bias in FoxNews, one might estimate its tendency to associate conservative concepts (conservative, republican) and good concepts (good, positive, etc.), compared to conservative and bad concepts. The output would indicate conservative favoritism. This comparison could be further refined by taking into account important "baseline" information about the valences associated with liberal, namely liberal and good in comparison to liberal and bad.…"
text-mining  natural-language-processing  data-mining  machine-learning  Ruby  library 
june 2010 by Vaguery
Ruby Gem Management with RVM and Bundler
"When I started learning Ruby, managing gems was a huge problem to the point I would make fun of it. Now I use RVM which helps you install multiple versions of ruby on one computer. Not only does it do that, but it makes gem management a breeze as well! Beyond RVM, Rails 3 provides us with bundler, which allows you to install gems based on a list of dependancies automatically. Very slick.

Here I will outline how to install and configure RVM as well as manage your gems with RVM and the Rails 3 bundler."
ruby  rvm  gem  system-administration  software-development  advice  tutorial 
june 2010 by Vaguery
What Pythonistas Think of Ruby | Free PeepCode Blog
"The main attraction (and last presentation) was from my friend Gary Bernhardt1. Gary spent a few months contracting on a Rails project for four hours in the morning and a Django project for four hours in the afternoon. So when he speaks of either, it’s not in ignorance.

At the end, I couldn’t find a single criticism of Ruby that I disagreed with. I did pick up a new appreciation for unique features of the Ruby language that I previously took for granted."
ruby  python  scripting  programming-language  cultural-dynamics  software-development 
april 2010 by Vaguery
Intridea Blog: The Future's Pretty Cool, or Why I Love Ruby
"For me, being a part of the Ruby community feels like getting a sneak peek at where software development is going six months to two years from now. That’s not to say it’s all rainbows and daisies…the constantly changing landscape requires a real passionate dedication to keep up or you’ll quickly fall behind, and not all technologies are meant to immediately be deployed to massive-scale production environments (restraint is a skill a good Rubyist must learn and exercise on a regular basis). But I love Ruby because I feel confident that I will be made aware of trends in software development long before I would otherwise be expected to understand them."
ruby  programming-culture  software-development  communities-of-practice  community-formation 
april 2010 by Vaguery
mperham's bayes_motel at master - GitHub
"BayesMotel is a multi-variate Bayesian classification engine. There are two steps to Bayesian classification:

Training You provide a set of variables along with the proper classification for that set.
Runtime You provide a set of variables and ask for the proper classification according to the training in Step 1.
Commonly this is used for spam detection. You will provide a corpus of emails or other data along with a "Spam/NotSpam" classification. The library will determine which variables affect the classification and use that to judge future data."
Ruby  rubygem  Bayesian  classification  statistics  learning-from-data  machine-learning  algorithms 
april 2010 by Vaguery
Heroku | Experimental Node.js Support
"Node.js is evented I/O for JavaScript, built on top of the blazingly fast V8 engine. It makes handling event-driven I/O incredibly simple, and aligns perfectly with our maniacal focus on simplicity and developer productivity. The Ruby community has quickly adopted node, and with great reason. Complimenting existing apps with node.js for components that require real-time event handling or massive concurrency is both easy and elegant – in part thanks to the availability of frameworks such as express."
Ruby  Javascript  heroku  cloud-computing  distributed-processing  framework  software-development  hosting 
april 2010 by Vaguery
Developer Trends: Ruby in the Cloud with Enterprise Class SLAs - ReadWriteCloud
"This post is part of our ReadWriteCloud channel, which is dedicated to covering virtualization and cloud computing. The channel is sponsored by Intel and VMware. As you're planning your Cloud Architecture, check out this helpful resource from our sponsors: Using a Data Center Relocation To Create A Virtual Infrastructure."
heroku  cloud-computing  ruby  deployment  performance  software-development 
april 2010 by Vaguery
apotonick's active_helper at master - GitHub
"Helpers suck. They’ve always sucked, and they will suck on if we keep them in modules.

ActiveHelper is an attempt to pack helpers into classes. This brings us a few benefits

inheritance helpers can be derived other helpers
delegation helpers are no longer mixed into a target- the targets use the helper, where the new
methods are delegated to the helper instances
proper encapsulation helpers don’t rely blindly on instance variables – a helper defines its needs, the target has to provide readers
interfaces a helper clearly provides methods and might use additional helpers
Note that ActiveHelper is a generic helper framework. Not coupled to anything like Rails or Merb. Not providing any concrete helpers. Feel free to use clean helpers in any framework (including Rails and friends)!"
software-development  Rails  design  library  plugin  ruby 
april 2010 by Vaguery
CannedCukes - Awesome Feature Hosting
"CannedCukes is all about one thing: helping people make better BDD tests. CannedCukes is a place where BDD testers from across the world can upload Cucumber features and scenarios and share them with other testers."
good-ideas  cucumber  BDD  testing  Ruby  community  should-be-open-though 
april 2010 by Vaguery
How To Write Your First Ruby Web Bot In Watir
"Time for the fun stuff now. The holy grail for a lot of Internet Marketers is automation. This can be obtained through simple iMacros scripts, some PHP scripts on a server, or with a little tool called Watir using the Ruby programming language. All of these combos have their own inherent advantages and disadvantages, but that’s not something I’m going to go over here. I like to use Watir for a lot of botting needs, so that’s what I’m going to show you how to do today."
spidering  screen-scraping  automation  ruby  scripting 
april 2010 by Vaguery
Patch Engineering - RakeServer is a client-server Rake architecture for fast task invocation
"Enter RakeServer, a tool Cedric and I hacked up this week. The idea here is to run Rake tasks using a client-server architecture, with a long-running server that responds to requests from clients to invoke tasks. The crucial feature of RakeServer is that it can also invoke tasks greedily when the server first starts — in particular the :environment task, which loads the Rails environment. That way, when the client invokes Rails-dependent tasks, the server is able to respond immediately without waiting all that time for the environment to load."
rake  Ruby  software-development  system-administration  deployment  sysadmin  task-management  library  gem 
april 2010 by Vaguery
(My) RSpec best practices and tips | EggsOnBread
"After a year using RSpec, I’m happy to share “(My) RSpec Best Practices and Tips”. Let’s make your specs easier to maintain, less verbose, more structured and covering more cases!"
rspec  Ruby  programming  BDD  behavior-driven-design  best-practices  tips  testing 
march 2010 by Vaguery
Apotomo Cookbook » Blog Archive » Onfire brings bubbling events to your Ruby objects
"In the current refactoring of Apotomo I finally extracted the bubbling event library into a separate ruby gem Onfire.

Bubbling events is, in contrast to Ruby’s own Observable module, focused on observing events triggered by business objects, not watching the objects themselves.

In addition, a triggered event will bubble up the tree branch and subsequently inform all ancestors- you get automatic organic event filtering.

Complete instructions are on the github page."
message-passing  design-patterns  Ruby  gem  software-development 
march 2010 by Vaguery
Numerical Ruby NArray
"NArray is an Numerical N-dimensional Array class. Supported element types are 1/2/4-byte Integer, single/double-precision Real/Complex, and Ruby Object. This extension library incorporates fast calculation and easy manipulation of large numerical arrays into the Ruby language. NArray has features similar to NumPy, but NArray has vector and matrix subclasses."
Nudge  Ruby  numerics  numerical-methods  matrix  mathematics  library 
march 2010 by Vaguery
“Deploying to Heroku” by John Barnette
"Deploying to Heroku with git push is awesome. I’m running a couple of different environments, though, and there’s extra stuff that I want to do when I deploy. Rake to the rescue!"
heroku  ruby  software-development  deployment  GitHub  workflow  tips  cloud-computing 
march 2010 by Vaguery
Redis: Data Cheeseburgers - GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS
"Explaining Redis is tough, it’s easy to say “a data structures server” or “memcached on steroids” or something more jargon filled. It’s not exactly a key value store, it’s definitely not a relational or document-oriented database. The biggest selling point of Redis is that usually as programmers we have to bend our data into a table or document to save it, but with Redis we can persist data as we conceptually visualize it. Tasty!"
data  database  NoSQL  distributed-processing  virtual-memory  library  Ruby  architecture 
march 2010 by Vaguery
RDoc Documentation
"lazy.rb provides lazy evaluation and futures in Ruby.

For lazy evaluation, the facilities are similar to those provided by R5 Scheme. There are two functions: Kernel.promise (similar to Scheme’s delay) which takes a block for later evaluation, and Kernel.demand (similar to Scheme’s force), which forces its evaluation (if necessary) and returns its cached result."
Ruby  software-development  library  lazy-evaluation  idioms  Nudge 
march 2010 by Vaguery
Google SketchUp Ruby API - Google Code
"Google SketchUp is software that you can use to create 3D models of anything you like. With its embedded Ruby application programming interface (API), you can extend and customize the program to suit your needs. If you love SketchUp but ever thought "I just wish it did XYZ," then there's a good chance the Ruby API can make it happen. "
SketchUp  Google  Ruby  API  Google-apps  software-development  extensibility  CAD  engineering-design  architecture  rendering  via:thetrek  nudge 
march 2010 by Vaguery
Ruby Best Practices - Ruby Tuesdays: RBP Chapter 6
"Readers are encouraged to fight RBP as they read it, rather than just soaking up the information. Although I claim this book is about “Best Practices”, the only reason that is true is that it’s a result of countless conversations with folks who are deep in the Ruby trenches getting stuff done. The only way for RBP to remain current and relevant is to continue these discussions, using its content as a jumping off point for fresh ideas."
open-access  software-development  ruby  best-practices  programming  O'Reilly  conversation-trumps-lecturing 
march 2010 by Vaguery
fingernails in oatmeal, Metaprogramming: Ruby vs. Javascript
"To be honest, there’s not much to say about the Javascript example because it is so simple. We avoid the whole metaclass business because Javascript uses prototypal inheritance. This means that Javascript does not distinguish between classes/prototypes and instances and, therefore, we can add our desired behavior directly to the instance. We use the exact same technique for adding a method to the prototype, but this time we simply add the function directly to the instance. Again, this function is a closure. And again, this function has access to the instance’s state using this.…
Closures are so ingrained in the language’s design that metaprogramming seems to happen without even trying. This little exercise has left me very excited about the potential of Javascript not only as a great language for the web, but also as a powerful server-side language. You should be excited too."
metaprogramming  javascript  ruby  OOP  scripting  tutorial  comparison 
march 2010 by Vaguery
Numerical Ruby NArray
"NArray is an Numerical N-dimensional Array class. Supported element types are 1/2/4-byte Integer, single/double-precision Real/Complex, and Ruby Object. This extension library incorporates fast calculation and easy manipulation of large numerical arrays into the Ruby language. NArray has features similar to NumPy, but NArray has vector and matrix subclasses."
matrices  library  ruby  mathematics  gem  engineering  nudge 
march 2010 by Vaguery
AI4R :: Artificial Intelligence for Ruby
"AI4R is a collection of ruby algorithms implementations, covering several Artificial intelligence fields, and simple practical examples using them. A Ruby playground for AI researchers. It implements:..."
artificial-intelligence  clustering  Ruby  AI  algorithms  library  open-source  languishing? 
march 2010 by Vaguery
Mark Turner - Amerine.net - Rails 3.0 Setup using rvm & Ruby 1.9.2
"Some people want to start doing some Rails 3.0 Beta work on Ruby 1.9.2 on their development machines. I’m tossing this up here to have something to point people to when they have questions."
ruby  rails  development  software-development  installation 
february 2010 by Vaguery
Layouts and Rendering in Rails
"The main body of the view will always render into the unnamed yield. To render content into a named yield, you use the content_for method."
Rails  Ruby  programming  notes  web-design  software-development 
february 2010 by Vaguery
RPCFN: Mazes (#5)
"There are a number of ways to “solve” mazes but there’s a wide scope for you to be as straightforward or as clever as you like with this challenge (tip: I’d love to see some clever/silly solutions!). Your “solvable?” and “steps” methods could share algorithms or you might come up with alternate ways to be more efficient in each case. Good luck!"
ruby  programming  challenges  contest  learning-by-doing 
december 2009 by Vaguery
G: Like Kernel#p but outputs to Growl on OS X : RubyFlow
""g" is a new library that provides a global "g" method that you can use to inspect objects much in the same way as Kernel#p. The difference is that the output goes to Growl, a popular OS X global notifications tool. It's technically an easy gem install and go, but if you have problems with it not finding Growl, this blog post about getting ruby-growl working should salve your distress."
Growl  Ruby  gem  library  software-development  user-experience 
november 2009 by Vaguery
rubigen
"A framework to allow Ruby applications to generate file/folder stubs (like the rails command does for Ruby on Rails, and the ‘script/generate’ command within a Rails application during development)."
Ruby  generator  software-development  distribution  automation  user-experience  metaprogramming  coding  gem  via:thetrek 
november 2009 by Vaguery
The Pragmatic Bookshelf | 40% off Thanksgiving PragSale now through 11/25
"It’s Thanksgiving, and we’re very thankful for the continuing kind words and terrific support you all have shown us this year.

We know it’s been a tough year for a lot of folks out there. So we’d like to help. Before the madness of retail’s Black Friday hits, with all kind of crazy “get up at 4am to get in line” sales, we have a much simpler alternative for you.

40% off all our titles. Now through Wed Nov 25. Just use the coupon code PRAGTHANKS40 when checking out. Please note that orders placed on or after Tuesday may not get shipped until Monday, November 30, as our shipping facilities will be closed for the holiday. So order now, and stock up for some dynamite holiday reading. Feel free to use the coupon as many times as you need to before it expires, and pass it on to your friends and relatives."
pragmatic-press  Ruby  programming  software-development  sale  discount 
november 2009 by Vaguery
Ruby Development
"The Ruby Development Center contains sample code, documentation, tools, and additional resources to help you build applications on Amazon Web Services."
Amazon  Amazon-Web-Services  cloud-computing  Ruby  software-development  grid-computing  development  community 
november 2009 by Vaguery
You're An Idiot For Not Using Heroku // RailsTips by John Nunemaker
"It is true. You are. Go try it now. That is an order. I can wait for you to come back and finish reading this post. I could end the post now, but I suppose I’ll go on and tell you a bit about my experience with Heroku yesterday."
ruby  web2.0  cloud-computing  deployment  software-development  infrastructure  rails  production 
november 2009 by Vaguery
Rich Frog: DataMapper adapter for FluidDB
"I've built and released a DataMapper adapter for FluidDB. This was a fun project because it was actually my first time using memcache and it is also my first rubygem. You can read the details on github or checkout the Quickstart:..."
FluidDB  Ruby  library  toolkit  database  programming  software-development  gem 
november 2009 by Vaguery
Webbynode
"Recently here at Webbynode we had a demand for validating HTML without going as far as driving a browser. We have an internal library that generates HTML after compiling HAML templates. To fulfill our BDD needs, we wanted a simple, straightforward way to validate HTML tags without the need of a full blown browser driving engine, since we don’t have an HTTP server running while testing this library."
BDD  Rails  WebRat  cucumber  testing  programming  Ruby 
november 2009 by Vaguery
Limelight
"Let's face it, plain app apps don't cut it any more. These days, users have to be thrilled and entertained. Limelight promotes this attitude to the core. In Limelight you don't build applications, you build theatrical Productions. Limelight provides a Theater in which you open Scenes, build Props, and cast Players to bring your Production to life and razzle-dazzle your audience."
programming  applications  software-development  Ruby  Java  tools  opensource  GUI  DSL  CSS 
november 2009 by Vaguery
Introducing Resque - GitHub
"It boils down to this: GitHub is a warzone. We are constantly overloaded and rely very, very heavily on our queue. If it's backed up, we need to know why. We need to know if we can fix it. We need workers to not get stuck and we need to know when they are stuck.

We need to see what the queue is doing. We need to see what jobs have failed. We need stats: how long are workers living, how many jobs are they processing, how many jobs have been processed total, how many errors have there been, are errors being repeated, did a deploy introduce a new one?

We need a background job system as serious as our web framework. I highly recommend DelayedJob to anyone whose site is not 50% background work.

But GitHub is 50% background work."
parallel  grid-computing  distributed-processing  GitHub  Ruby  process-control  system-administration  library  open-source 
november 2009 by Vaguery
RSpec and Sinatra Quick Start // iamneato.com
"Are you familiar with RSpec, new to Sinatra, and can’t get the two to cooperate? This article maybe of use to you. Alternatively, if you’re like me and you’re simply new to this universe all together, this article can certainly be of use."
RSpec  BDD  behavior-driven-design  Sinatra  testing  tutorial  how-to  ruby 
november 2009 by Vaguery
japh(r): RSpec with Sinatra & CouchDB
"I left off last night moving into the guts of the application. The plan was to start BDDing with RSpec. It occurred to me, however, that I had no idea how to do it. Happily, Sinatra's testing documentation includes RSpec information."
BDD  behavior-driven-design  rspec  Sinatra  Ruby  web-applications  CouchDB 
november 2009 by Vaguery
onChange - Explaining the Value of Agile, Rails and the Cloud
"The question should not be, “is Rails a safe choice,” but “[how long] can we justify the expense of traditional development approaches.”"
Rails  cloud-computing  Ruby  RoR  economics  project-management  business-practice 
november 2009 by Vaguery
rvm: Ruby Version Manager - rvm Home
"Use rvm . Easy installation and switching between available Ruby versions and runtimes, without messing up your current Ruby install! rvm also allows you to use multiple versions of ruby in separate terminals concurrently!"
Ruby  programming  system-administration  version-control  development  mac  gem 
october 2009 by Vaguery
Astrails Yes We Can. "require" over HTTP, That Is.
"Wouldn’t it be cool if you could just require “http://my-host/my-lib.rb” in ruby?
Now You Can! Using our “http_require” gem!"
Ruby  programming  library  gem  distributed-processing 
september 2009 by Vaguery
Red Artisan: Attachment_fu magic with Core Image and Ruby Cocoa!
"Create an image manipulation class that uses Core Image
Integrate this new class into attachment_fu, by writing a new attachment_fu processor module
Optionally, update attachment_fu’s automatic image processing list, or rely on using the :processor directive in our has_attachment model definitions."
Ruby  CoreImage  Nudge  programming  software  Apple  MacOS 
september 2009 by Vaguery
tpope's pickler at master - GitHub
"Synchronize user stories in Pivotal Tracker with Cucumber features."
Cucumber  Pivotal-Tracker  BDD  collaboration  Ruby  agile  project-management  tools 
september 2009 by Vaguery
Riding Rails: Gem Packaging: Best Practices
"When you call load or require a new file, Ruby searches through the files in its load path. This allows you to require files relative to the load path without specifying the files full system path."
programming  Ruby  tutorial  tips  best-practices 
september 2009 by Vaguery
A Wealth Of Ruby Loops And Iterators
"I classify looping and iterating in Ruby into two distinct buckets:

simple ways to loop/iterate – this is where we loop over elements and work with each element as we iterate over it, but we basically don’t need to retain any knowledge of what we did to a particular element once we move on to the next unless we explicitly decide to store some info (this is how the basic loops and iterators operate)
complex ways to loop/iterate – this is where in addition to iterating over elements we transform the elements we are iterating over in some way and retain this information when we complete the loop (this is how more complex iterator-style methods such as map, collect etc. work)"
Ruby  programming  iteration  examples 
september 2009 by Vaguery
rdoc.info :: treetop
"Languages can be split into two components, their syntax and their semantics. It’s your understanding of English syntax that tells you the stream of words "Sleep furiously green ideas colorless" is not a valid sentence. Semantics is deeper. Even if we rearrange the above sentence to be "Colorless green ideas sleep furiously", which is syntactically correct, it remains nonsensical on a semantic level. With Treetop, you’ll be dealing with languages that are much simpler than English, but these basic concepts apply. Your programs will need to address both the syntax and the semantics of the languages they interpret."
rdocs  Ruby  parsing  programming  documentation  treetop  Nudge 
august 2009 by Vaguery
Rifgraf
"Rifgraf is a fire-and-forget web service for displaying graphs of data collected over time. Post your data points periodically via rest calls. Then view a graph of the data at any time in the future."
via:thetrek  Ruby  REST  visualization  programming  web-applications  graphs 
july 2009 by Vaguery
RubyForge: RSRuby: Project Info
"RSRuby is a bridge between Ruby and the R interpreted language. When RSRuby is called in a Ruby script, a full R interpreter is embedded into the Ruby interpreter, allowing the Ruby script to call functions from any R library the user wishes."
Ruby  R  R-language  via:jhofman  interoperability  library  extension  programming  statistics  scripting 
may 2009 by Vaguery
Agile Ajax » Rails Testing Frequently Asked Questions — The Non-Code Version » Pathfinder Development
"Things to keep in mind.

No matter where you start, start with one simple test. One assertion, if you can manage it.
Write the code to make that test pass
Then refactor -- this part is critical, this is where the creative design is with a TDD process.
Then write the next test.
In Rails, you'll often start in the controller then realize that code needs to be written in the model (or vice-versa). Write a separate test for the model -- testing models from the controller makes it hard to test all the model logic.
It's okay to plan the tests in advance, but you should only work on one test at a time. (Sometimes I'll write the series of tests, then comment out all but one)"
test-driven-development  TDD  testing  Rails  Ruby  programming-culture  advice  getting-hired 
may 2009 by Vaguery
Ruby Best Practices - Fun with Class.new
"I think you’ll agree that this second sample induces the kind of familiar sugar shock that Ruby coders know and love. It accomplishes the same goals and actually wraps the lower level code rather than replacing it. But is there some sort of dark magic behind this? Let’s peek behind the curtain:..."
programming  Ruby  metaprogramming  tips  Nudge 
may 2009 by Vaguery
FakeWeb API Documentation
"FakeWeb is a helper for faking web requests in Ruby. It works at a global level, without modifying code or writing extensive stubs."
Ruby  programming  mocks-and-stubs  TDD  BDD  development  testing 
april 2009 by Vaguery
btakita's rr at master - GitHub
"RR (Double Ruby) is a test double framework that features a rich selection of double techniques and a terse syntax."
mocks  programming  testing  TDD  BDD  rspec  framework  ruby 
april 2009 by Vaguery
How To: Setup RSpec, Cucumber, Webrat, RCov and Autotest on Leopard | Clayton Lengel-Zigich
"RSpec, Cucumber, Webrat, RCov and Autotest are a powerful combination of tools for testing your Rails app. Unfortunately getting them to all work nicely together can be a bit of challenge. I recently configured a development environment from scratch on OS X 10.5 Leopard and kept track of all of the little details."
how-to  rspec  Rails  Ruby  Leopard  MacOS  TDD  BDD  autotest 
april 2009 by Vaguery
An Hpricot Showcase - hpricot - GitHub
"A dictionary of common tasks that people (kids especially) love to do with Hpricot."
ruby  html  XML  screenscraping  parsing  bookphile 
april 2009 by Vaguery
Rubx
"Rubx, a.k.a. Ruby Boobie, is your personal Ruby interpreter in Twitter. Whether you are trying to test some Ruby code, play around with it or see what's capable of, Rubx is here for you.

Think of Rubx as IRB (the Interactive Ruby Shell), built-in on Twitter."
twitter  Ruby  interactivity  amusing  project  bot 
april 2009 by Vaguery
Oscar Del Ben: How to deploy your rails application with ruby 1.9
[Installing on Leopard Server seems even simpler, when I think about it]

"...And now you can start your server as usual with script/server. If you see any error, check the backtrace to see which plugin/gem is causing it and try to google about it, but hopefully your application will run smoothly from the first time."
ruby  rails  RoR  deployment 
april 2009 by Vaguery
The Rubyist - February 2009 by The Rubyist (Book) in Computers & Internet
[noting this in particular for the publishing business model it shadows]
Rails  Ruby  magazines  publishing  POD  print-on-demand  free  PDF 
april 2009 by Vaguery
Green is Good : software, science, etc
"Thanks to O'Reilly and the RailsConf organisers, we're introducing ActiveResearch, an extended satellite meeting at this year's RailsConf in Las Vegas. ActiveResearch is a great opportunity to meet and greet others working with Ruby and Rails in a scientific or technology discipline. We'll have some special guest speakers, a series of more informal lightning talks, finishing things up with a round table discussion of the state of the art, and some drinks and nibbles."
Ruby  Rails  science  scientific-computing  conferences 
march 2009 by Vaguery
http://treetop.rubyforge.org/semantic_interpretation.html
"This is a parse tree whose nodes are instances of Treetop::Runtime::SyntaxNode. What if we could define methods on these node objects? We would then have an object-oriented program whose structure corresponded to the structure of our language. Treetop provides two techniques for doing just this."
Ruby  grammar  parsing  languages  programming  library  Nudge 
march 2009 by Vaguery
notahat's machinist at master - GitHub
"Machinist generates data for the fields you don't care about, and constructs any necessary associated objects, leaving you to only specify the fields you do care about in your tests."
BDD  mocks  stubs  Ruby  programming  software-development  test-driven-development  library  TDD  factory 
march 2009 by Vaguery
Agile Ajax » Using Cucumber for Acceptance Testing » Pathfinder Development
"My experience so far, as I explore what Cucumber can do, has been largely positive. Where I was starting with Cucumber and only a vague idea of how the user interaction would play out, writing the scenarios at the Cucumber level felt very valuable and gave the development a clear path that I wouldn't have otherwise had. That said, there is extra code being written, and it's clearly possible to get really tangled in getting the step definitions right."
Cucumber  BDD  behavior-driven-design  Ruby  TDD  Machinist  testing  agility  software-development 
march 2009 by Vaguery
Ruby Polyglot: Talking with Erlang - igvita.com
"Turns out, Scott Fleckenstein and Tom Preston-Werner have already solved this problem for us, allowing bi-directional data exchange between Erlang and Ruby via Erlang Ports. As far as Erlang is concerned, this communication pattern is seen as direct communication with another Erlang process, which also means we can transparently invoke our Ruby interpreter whenever we need it! To get started, gem install erlectricity: Erlectricity allows a Ruby program to receive and respond to Erlang messages sent over the Erlang binary protocol."
Erlang  Ruby  programming  language  scripting  functional-programming  concurrency  gem  Nudge 
march 2009 by Vaguery
tasteb.in - All Recipes
Nice, elegant interface from Brandon Dimcheff, with pastebin functionality and standard recipe semantic inference (a bit)
recipes  software  Ruby  user-experience 
march 2009 by Vaguery
« earlier      

related tags

3D  abstraction  acceptance-testing  ADC  administration  adoption  advice  agile  agile-management  agility  AI  aircraft  AJAX  algorithm  algorithms  Amazon  Amazon-Web-Services  amusing  analysis  analytics  API  Apple  Applescript  applications  architecture  archive  Arduino  artificial-intelligence  assumptions  automation  autonomous  autotest  Bayesian  bdd  behavior-driven  behavior-driven-design  behavior-driven-development  benchmarking  best-practices  bias  book  bookphile  bot  business  business-culture  business-model  business-plan  business-practice  CAD  call-to-action  challenges  classification  cloud-computing  clustering  coding  collaboration  command-line  communication  communities-of-practice  community  community-formation  comparison  compatibility  computer-science  concurrency  conferences  contest  conversation-trumps-lecturing  CoreImage  CouchDB  css  cucumber  cucumberish  cultural-dynamics  cultural-norms  data  data-driven  data-mining  database  deployment  design  design-automation  design-pattern  design-patterns  development  discount  distributed-processing  distribution  documentation  documents  DSL  dynamic  economics  electronics  emergent-design  engineering  engineering-design  Erlang  evolutionary-algorithms  examples  extensibility  extension  extreme-programming  factory  finite-state-machine  fixes  FluidDB  formats  framework  free  freeware  functional-programming  GE  gem  generator  genetic-programming  geography  getting-hired  git  GitHub  good-ideas  Google  Google-apps  GPU  grammar  grammatical-evolution  graphics  graphs  grid-computing  Growl  growlnotify  GUI  hacks  Haml  hardware  helper  heroku  history  hosting  how-to  html  idioms  image  image-processing  imagemagick  infrastructure  inheritance  installation  instructions  interactivity  interface  interoperability  interpreter  introduction  iteration  java  javascript  language  languages  languishing?  lazy-evaluation  learning-by-doing  learning-by-watching  learning-from-data  legacy-code  leopard  libraries  library  local  mac  machine-learning  Machinist  MacOS  magazines  making  management  manual  markdown  markup  Martin-Fowler  mathematics  matrices  matrix  meeting  merb  message-passing  metadata  metaheuristics  metaprogramming  Michigan  microsoft  mocks  mocks-and-stubs  models  MVC  namespaces  natural-language-processing  NLP  NoSQL  notes  nudge  numerical-methods  numerics  O'Reilly  object  OCaml  OOP  open-access  open-source  openGl  OpenGL  opensource  optimization  organization  osx  parallel  parsing  patch  PDF  PeepCode  performance  Pivotal-Tracker  planning  plugin  POD  pragmatic-press  presentation  print-on-demand  process-control  production  productivity  programming  programming-culture  programming-language  project  project-management  projects  publish-and-subscribe  publishing  python  QR-code  R  R-language  rails  rake  rb-appscript  rdocs  realtime  recipes  refactoring  reference  Regex-is-your-scary-friend  rendering  requirements  REST  RMagick  robotics  RoR  rspec  rtfm  ruby  rubygem  rubyonrails  rvm  sale  Sass  SASS  science  scientific-computing  scraper  screen-scraping  screencasts  screenscraping  scripting  should-be-open-though  shoulda  Sinatra  SketchUp  small-town  software  software-development  software-engineering  specification  speed  spidering  standards  statistics  structure  stubs  summary  svn  sysadmin  system-administration  tagging  task-management  TDD  technical  templating  test-driven-design  test-driven-development  testing  text  text-mining  timeline  tips  tool  toolkit  tools  treetop  tutorial  twitter  unicode  unit-testing  upgrade  usability  user-experience  utilities  version-control  via:arsyed  via:bkerr  via:iamsidd2k7  via:jhofman  via:plindberg  via:slaniel  via:thetrek  video  virtual-memory  visualization  web  web-applications  web-design  web2.0  webapp  WebRat  wiki  workflow  XML  XMPP  XP  YAML  ZenTest  Zentest 

Copy this bookmark:



description:


tags: