Ruby


Friday, April 27th, 2012

Rails cache sweeper redux

Category: Ruby

Michael Mahemoff writes: To be effective, Rails cache sweepers need to be more fully understood.  They know no standard, so you must employ art. He goes on: Sweepers observe both your models and your controllers, but most workarounds focus on their controller nature.  Importantly: the sweeper must be explicitly added as an observer. Even more Read the rest…

Posted by jvaughan at 10:03 pm
Comment here

+++--
3.4 rating from 200 votes

Monday, March 8th, 2010

modulr: a CommonJS module implementation in Ruby for client-side JavaScript

Category: JavaScript, Ruby

modulr is a CommonJS module implementation in Ruby for client-side JavaScript Ruby? what does that have anything to do with it? Ah, its from one of those Prototype guys isn’t it…. Yup, Tobie is at it again, this time with modulr: modulr accepts a singular file as input (the program) on which is does static Read the rest…

Posted by Dion Almaer at 6:28 am
7 Comments

++---
2.2 rating from 33 votes

Wednesday, February 17th, 2010

Harmony: Bringing together great libraries to enable awesome JS testing in Ruby

Category: JavaScript, Rails, Ruby, Testing

Martin Aumont has released Harmony, which “provides a simple DSL to execute JavaScript and DOM code within Ruby.” This enables you to do very cool things such as unit test JavaScript in the same area as your Ruby tests: ruby < view plain text > require ‘test/unit’ require ‘harmony’   class JavascriptTest < Test::Unit::TestCase   Read the rest…

Posted by Dion Almaer at 6:05 am
3 Comments

+++--
3.1 rating from 21 votes

Thursday, November 19th, 2009

Vienna; Ruby in the browser again?

Category: Ruby

Whether you love JavaScript or not, folks are diverse and want to use a range of languages to code the client. I have played with ruby in the browser via JRuby back in the day, and there have been lots of experiments much beyond that. Adam Beynon just released Vienna and we were very excited Read the rest…

Posted by Dion Almaer at 5:17 am
2 Comments

++++-
4 rating from 8 votes

Friday, June 12th, 2009

JS.Class 2.1 released

Category: JavaScript, Ruby

James Coglan has updated JS.Class, his implementation of Ruby’s object system in JavaScript. This release includes a Hash implementation, HashSet, an updated Ruby 1.9 Enumerable module with enumerators and Symbol#to_proc functionality, and an improved package loader that supports parallel downloads and runs on SpiderMonkey, Rhino and V8. Detailed Changes New libraries: ConstantScope, Hash and HashSet, Read the rest…

Posted by Dion Almaer at 6:37 am
9 Comments

+++--
3.1 rating from 23 votes

Friday, February 20th, 2009

Sprockets: Build time JavaScript dependancy management

Category: JavaScript, Ruby, Utility

Sprockets is a build time Ruby tool that reads in your JavaScript files, preprocesses and concatenates: It takes any number of source files and preprocesses them line-by-line in order to build a single concatenation. Specially formatted lines act as directives to the Sprockets preprocessor, telling it to require the contents of another file or library Read the rest…

Posted by Dion Almaer at 12:01 am
3 Comments

+++--
3.4 rating from 30 votes

Monday, November 10th, 2008

Redshift: What Ruby and a nice API can do in the browser

Category: Rails, Ruby

Red writes like Ruby and runs like JavaScript That is the tagline for Red, and they mean it: The all-new Red is a Ruby-to-JavaScript transliterator backed by a custom ruby.js library designed to let your code run in the browser exactly* the way Ruby would run on your machine. The JavaScript output is optimized to Read the rest…

Posted by Dion Almaer at 8:08 am
16 Comments

++++-
4.5 rating from 21 votes

Wednesday, August 13th, 2008

Prefer Ruby syntax? See Red, and your Ruby will convert to JS

Category: JavaScript, Ruby

I am a fan of Ruby, and when I saw Red the framework that allows you to write Ruby and get JavaScript out the other end I was excited. It allows you to write this: ruby < view plain text > class MyClass    @@my_var = 500        def initialize(arg)      @arg Read the rest…

Posted by Dion Almaer at 6:28 am
10 Comments

+++--
3 rating from 35 votes

Monday, July 14th, 2008

Interview with the Gears on Rails team

Category: Gears, JavaScript, Podcasts, Rails, Ruby

With my Google hat on, I got to interview Michael Marcus and Rui Ma, two recent graduates from a masters program at NYU. They joined me to discuss Gears on Rails, their open source framework that makes it easier than ever to take a Rails code-base offline. They take the approach of giving you a Read the rest…

Posted by Dion Almaer at 4:29 pm
1 Comment

+++--
3 rating from 21 votes

Monday, June 9th, 2008

Johnson: Wrapping JavaScript in a loving Ruby embrace, and ARAX

Category: JavaScript, Ruby

John Resig pointed us to Johnson, a project that “wraps JavaScript in a loving Ruby embrace.” It seems to give you a JavaScript interpreter that you can pass a context into to. The simple examples are: ruby < view plain text > require "johnson"   Johnson.evaluate("4 + 4") # => 8 Johnson.evaluate("4 + foo", :foo Read the rest…

Posted by Dion Almaer at 6:05 am
5 Comments

+++--
3.6 rating from 22 votes

Wednesday, May 21st, 2008

classy_inputs: Rails plugin to add autoclass names

Category: CSS, Ruby

We all want to use input[type=text] but browser support doesn’t seem to quite be there (IE 6?). This lead James Coglan down the path of creating a teeny Rails plugin, classy_inputs: Good lord do I ever hate input tags. (YUI hates them too, but I’ll leave that story for another time). All the different types Read the rest…

Posted by Dion Almaer at 9:50 am
6 Comments

++---
2.8 rating from 11 votes

Thursday, March 27th, 2008

HotRuby: Run Ruby on a JavaScript interpreter?

Category: JavaScript, Library, Ruby, Showcase

This is from the “wow, really?” department. HotRuby is an implementation of Ruby in JavaScript! The way it works is that a HotRuby “VM” takes the resulting output from YARV and can grok it via JSON: ruby < view plain text > VM::InstructionSequence.compile(cgi['src'], "src", 1, OutputCompileOption).to_a.to_json Thus, you can embed Ruby by doing something like Read the rest…

Posted by Dion Almaer at 8:01 am
3 Comments

+++--
3.4 rating from 29 votes

Wednesday, March 5th, 2008

Dynamic Silverlight Launched: Ruby and more in the browser

Category: Microsoft, Ruby

John Lam has posted about a new release, DSL: Dynamic Silverlight. I can’t believe that Microsoft is going to take the DSL TLA ;) Our team is happy to announce Dynamic Silverlight (DSL), which integrates our DLR dynamic languages with Silverlight. It requires Silverlight 2, which includes the cross-platform CLR and a set of libraries Read the rest…

Posted by Dion Almaer at 10:43 am
2 Comments

+++--
3.5 rating from 22 votes

Thursday, February 14th, 2008

Nextpoint: Taking Ajax to Court

Category: Prototype, Ruby, Scriptaculous, Showcase

I used to work in the healthcare sector, and was always amazed to see the amount of paperwork that was required. Literally paper work that is. The industry was full of drawers overflowing with paper. I imagine that the legal profession has its fair share of this too, but one company Nextpoint, is trying to Read the rest…

Posted by Dion Almaer at 9:01 am
5 Comments

++++-
4.1 rating from 44 votes

Sunday, February 10th, 2008

Heroku: Web based Rails Hosting

Category: Prototype, Rails, Ruby, Showcase

Heroku is a new YCombinator startup that joins the growing number of “use your browser to build your apps” type of applications. You can create new Rails applications, and they are magically hosted up in the cloud. You can import your own Rails application, or you can use the inline editor and tools to built Read the rest…

Posted by Dion Almaer at 9:28 am
7 Comments

+++--
3.2 rating from 30 votes

Wednesday, January 23rd, 2008

Ext Scaffold Generator Plugin for Rails

Category: Examples, Rails, Ruby, Sencha

Martin Rehfeld has released a Rails plugin that generates Ext JS scaffolds The Ext Scaffold Generator Plugin provides a custom MIME type alias :ext_json to be able to handle requests from the Ext frontend separately. The generated controllers show how to do this. To make data delivery to the Ext frontend easy, the plugin extends Read the rest…

Posted by Dion Almaer at 6:54 am
3 Comments

+++--
3.8 rating from 36 votes