Ruby
Friday, April 27th, 2012
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…
Monday, March 8th, 2010
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...
Wednesday, February 17th, 2010
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: PLAIN TEXT RUBY: require 'test/unit' require 'harmony' class JavascriptTest <Test::Unit::TestCase def setup @page Read the rest...
Thursday, November 19th, 2009
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...
Friday, June 12th, 2009
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...
Friday, February 20th, 2009
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...
Monday, November 10th, 2008
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...
Wednesday, August 13th, 2008
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: PLAIN TEXT RUBY: class MyClass @@my_var = 500 def initialize(arg) @arg = arg Read the rest...
Monday, July 14th, 2008
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...
Monday, June 9th, 2008
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: PLAIN TEXT RUBY: require "johnson" Johnson.evaluate("4 + 4") # => 8 Johnson.evaluate("4 + foo", :foo => 4) # Read the rest...
Wednesday, May 21st, 2008
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...
Thursday, March 27th, 2008
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: PLAIN TEXT RUBY: VM::InstructionSequence.compile(cgi['src'], "src", 1, OutputCompileOption).to_a.to_json Thus, you can embed Ruby by doing something like this: PLAIN TEXT Read the rest...
Wednesday, March 5th, 2008
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...
Thursday, February 14th, 2008
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...
Sunday, February 10th, 2008
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...
Wednesday, January 23rd, 2008
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...