recentpopularlog in

mcherm : ruby   34

PyPy Status Blog: Announcing Topaz, an RPython powered Ruby interpreter
An implementation of Ruby in RPython (the same implementation as PyPy). Results are "promising" although incomplete at this stage. This is part of the real promise of the PyPy project.
programming  languagedesign  pypy  ruby 
february 2013 by mcherm
Dependency injection is not a virtue in Ruby (DHH)
Dependency injection isn't useful in Ruby because it's so loose you can just have your test modify the object instead of having to inject.
programming  ruby  via:HackerNews  languagedesign 
january 2013 by mcherm
Never create Ruby strings longer than 23 characters - Pat Shaughnessy
Ruby allows very short strings to be embedded directly in the string data structure. On a 64 bit machine it's as many as 23 characters that's extra fast because of this.
via:HackerNews  ruby  languagedesign 
january 2012 by mcherm
mamememo: The Qlobe
An astonishingly fancy quine in Ruby. Makes the world turn.
programming  ruby  quine  via:HackerNews 
september 2010 by mcherm
Monkey-Patching, Single Responsibility Principle, and Scala Implicits | James on Software
Comparing Scala's implicit and Ruby's open classes as alternative ways of "monkeypatching". Scala's wins for enhanced locality.
programming  ruby  scala  monkeypatching  implicit 
february 2010 by mcherm
LEGOs, Play-Doh, and Programming: the { buckblogs :here }
You can build with Legos and with PlayDoh. Building blocks with PlayDoh and stacking them is *lousy*, you need a different approach to build with PlayDoh. Similarly, Ruby requires a different approach than Java. Also illustrated with repeated versions of a dependency injection framework in Ruby, each far more "rubyesque" than the last.
programming  ruby  metaphor  JamisBuck  via:HackerNews  java  languagedesign 
january 2010 by mcherm
John Resig - Eulogy to _why
A major figure in the Ruby world, who has always stayed anonymous but has written books, tutorials, code, comics and more, suddenly disappeared from the web entirely.
via:HackerNews  identity  anonyminity  internet  ruby 
august 2009 by mcherm
Why Ruby is an acceptable LISP
Claims that Ruby can do SOME of the things LISP can do with Macros. Not exactly strong praise, but it's something.
ruby  languages 
july 2009 by mcherm
Ruby at ThoughtWorks
A review of the Ruby language (and Rails) in practical use, which is thoughtful and helpful. People using it say it's 2x more productive (than what?); there's a common evolution over exposure time of a developer's attitude toward "meta-programming"; unittesting DB accesses is difficult with Rails because there's no easy place to insert mocks; there are a few issues that separate teams are still handling in different ways.
ruby  programming  via:MartinFowler  martinfowler  fowler  rails 
june 2009 by mcherm
A Painful Decision « A Fresh Cup
A presenter at a Rails conference used a running joke about pornography, and a number of people objected. (See also http://martinfowler.com/bliki/SmutOnRails.html) Leadership in the Rails community seems largely to be defending the presenter. Here, a long-time member of that community is publicly resigning over it. Observing the social interaction is highly educational... would I do better?
socialcomputing  ruby  opensource  gender 
may 2009 by mcherm
2009-04-08/sick.md at master from raganwald's homoiconic - GitHub
A rant on how Ruby's modification of core classes causes problems and how it's just not good practice. I already knew that.
via:HackerNews  ruby  programming  metaprogramming  monkeypatching 
april 2009 by mcherm
Mending The Bitter Absence of Reasoned Technical Discussion — Alex Payne
How to AVOID getting into "religious wars" while discussing technical subjects, like comparing Ruby and Scala.
scala  programming  ruby 
april 2009 by mcherm
Twitter jilts Ruby for Scala • The Register
Apparently Twitter decided that for back-end and middleware stuff, ruby just didn't scale -- largely because of limitations in its VM. So they rewrote it all in Scala and now are big fans. The front end was left in Rails.
scala  twitter  programming  languages  scalability  ruby  virtualmachine 
april 2009 by mcherm
And I for one welcome our new insect overlords - raganwald's homoiconic
One person's comments on the effect of adding #try to rails. It makes it the standard solution for that kind of problem in Ruby, even as the community was still debating the best solution. Frankly, I think I prefer the BDFL approach of Python. Certainly this is a result of the "modify globals" design of ruby.
languagedesign  ruby  via:raganwald  raganwald  socialcomputing  programming 
march 2009 by mcherm
Integrating Scala into JRuby - Code Commit
Illustration (including code) of calling Scala from Ruby on the JVM. The tricky bit is that both languages have numerous features that Java lacks, and so Daniel needs to use some clever Ruby hacks to manage to invoke the Scala features in an idiomatic Ruby fashion. Oh, and it explains how Scala traits are implemented, which is simple and clever.
programming  scala  ruby  java  jvm  languagedesign  DanielSpiewak 
september 2008 by mcherm
Headius: The Elephant
JRuby developer complains that he gets no love, even outright vilification from the Ruby community.
ruby  programminglanguages  languages  jython  java 
september 2008 by mcherm
"L" is not a code smell
Some things aren't code smells, they're language smells. For instance, if you feel the need to use strategy pattern too much in Java. Perhaps wanting to abbreviate lambda as L: in Ruby ('cause it's shorter) is a language smell.
programming  ruby  raganwald  via:raganwald  languagedesign 
july 2008 by mcherm
I've seen things you people wouldn't believe
This is an excellent in-depth example of why monkeypatching is a BAD idea.
metaprogramming  raganwald  ruby  monkeypatching 
july 2008 by mcherm
The Brilliance of BDD - Code Commit
"Behavior Driven Development", says Daniel Spiewak, is a more readable format for declaring unit tests. He gives examples in scala and ruby.
testing  unittest  scala  programming  DanielSpiewak  ruby 
june 2008 by mcherm
Why we are the biggest obstacles to our own growth
It's not his main point, but what *I* noticed was that overloading a particular language syntax TOO heavily causes people to kind of miss it -- they forget everything it can do. (That's not even mentioning readability.)
languagedesign  ruby  raganwald 
april 2008 by mcherm
Code Commit: XMLBuilder: A Ruby DSL Case Study
An excellent introduction to Domain Specific Languages. It explains the idea behind DSLs, then walks through creating one in Ruby. The motivation is clear, the example small enough to follow yet useful enough to inspire. Great work!
dsl  domain_specific_languages  programming  tutorial  ruby 
march 2008 by mcherm
Ruby, a message to you » You might be able to stop trying to call methods on nil
I agree with this one. Lots of people (especially Ruby users) have been discussing various syntaxes to handle chained calls on something that might (at each step in the chain) be nil. I think most of the options described value terseness over readability.
programming  ruby  languagedesign 
march 2008 by mcherm
Virtuous Code › Monkeypatching is Destroying Ruby
Another view of monkey patching (open classes) in Ruby. Says it's a bad idea and tells why.
ruby  programming  languagedesign 
february 2008 by mcherm
(1..100).inject(&:+)
One cryptic line of code gives excellent insights into the culture and practice of Ruby (especially open classes). Discusses the language design choices of allowing users to mess with the language vs prohibiting it.
languagedesign  ruby  programming  raganwald 
february 2008 by mcherm
Ruminations of a Programmer: Why I like Scala's Lexically Scoped Open Classes
Open classes (like Ruby) are neat but they tend to pollute the global namespace. Scala's approach is implicit conversions: make wrappers adding the extra features and scope them lexically; implicit syntax avoids naming them at each use. Good examples.
languagedesign  scala  ruby  programming  blogentry 
february 2008 by mcherm
Dominiek.com | Building a .com in 24 hours
Seriously, he describes how he built a whole .com in 24 hrs at almost no cost by using available web services. Astonishing: this is a new paradigm!
programming  webdevelopment  webdesign  webhosting  webservices  web2.0  startup  ruby 
january 2008 by mcherm
Technology As If People Mattered : Weblog
Describes "what happens when you write 'x.y'" in Ruby.
programming  ruby  tutorial 
january 2008 by mcherm
Digging into Ruby Symbols - O'Reilly Ruby
A useful essay on Ruby. Starts by talking about how you can use eval to generate code at runtime, with easy-to-follow examples that are very well-written. Then he gets into a description of Lisp macros and how THEY could be put into Ruby. Overall, a VERY
ruby  languages  languagedesign  metaprogramming  programming  essay  macros  articles/programming 
december 2007 by mcherm
Ola Bini on Java, Lisp, Ruby and AI: ObjectSpace: to have or not to have
Some comments on things defined in Ruby that are a REAL PAIN to implement in the JVM or CLR and aren't really needed anyway, like the ability to iterate through all objects in the VM.
languages  ruby  languagedesign  blogentry 
july 2007 by mcherm
caboose Heresy and turtles (all the way down) with Avi Bryant
Smalltalk, web design, and implementing ruby in a smalltalk VM.
webdevelopment  blogentry  smalltalk  REST  ruby 
april 2007 by mcherm

Copy this bookmark:





to read