16 April 2014

The Ruby Reflector

Topic

Smalltalk

  Source Favicon
By Giles Bowkett of Giles Bowkett 28 days ago.
Email

…fine. I'm learning C because it's the foundation for Objective-C (along with Smalltalk), and because I ultimately would like to be able to build synthesizers for iOS with Objective-C. I'm pretty certain that if/when I do that, I'll want to drop down to C for some of the heavy lifting. Most of the serious literature on writing synths uses C or C++, and although I haven't been able to find a link for this post, I once saw John Carmack say that …

gilesbowkett.blogspot.com Read
  Source Favicon
Email

Ruby comes with many fantastic Enumerable methods, but the two most useful ones come through Smalltalk via LISP: #map and # inject . What follows are some lengthy method definitions followed by rewrites that are not only more concise but also more clear in their intentions.

Building an array

Requirement:

As a user with a PGP key I want to see the list of key ids for all my signers so I can quickly import them from the keyserver.

The initial implementation is a little lengthy and overly explicit: def signer_key_ids result = []

robots.thoughtbot.com Read
  Source Favicon
By Giles Bowkett of Giles Bowkett 7 months ago.
Email

…company at the time, DabbleDB, demonstrated that you could build a great web app with Smalltalk.

All you really have to do is write good software.

However, if there's any extent to which this Ruby skepticism needs any response, I think the response should be a more honest appraisal of " the omakase stack ," or the odd differences between Rails's official "conventions" and the standard deviations from those "conventions" which people who …

gilesbowkett.blogspot.com Read
  Source Favicon
On Coding Horror 1 year ago.
Email

Matz took the best of list processing from Lisp, and the best of OO from Smalltalk and other languages, and the best of iterators from CLU, and pretty much the best of everything from everyone.

And he somehow made it all work together so well that you don't even notice that it has all that stuff. I learned Ruby faster than any other language, out of maybe 30 or 40 total; it took me about 3 days before I was more comfortable using Ruby than I was in Perl, after eight years …

codinghorror.com Read
  Source Favicon
By Jeff Atwood of Coding Horror 1 year ago.
Email

Matz took the best of list processing from Lisp, and the best of OO from Smalltalk and other languages, and the best of iterators from CLU, and pretty much the best of everything from everyone.

And he somehow made it all work together so well that you don't even notice that it has all that stuff. I learned Ruby faster than any other language, out of maybe 30 or 40 total; it took me about 3 days before I was more comfortable using Ruby than I was in Perl, after eight years …

codinghorror.com Read
  Source Favicon
By Adam Keys of The Real Adam over 1 year ago.
Email

…1.8 as a transition from "better Perl or Java" to "better Smalltalk".

Ruby 1.9 brought us features that make some functional programming idioms easier . Lambdas, i.e. anonymous functions, require less syntax and are better defined. Enumerators make it possible to use features of Enumerable, itself a very functional-esque feature, in more places. Symbol-to-proc makes it easier to pass methods around as blocks, another FP-esque practice. I might say that Ruby

therealadam.com Read
  Source Favicon
By David of Signal vs. Noise over 1 year ago.
Email

…: Incredibly practical advice for what constitutes good OO code. It's done in Smalltalk, but the principles are mostly universal. Probably my favorite nuts'n'bolts of programming design book. Very granular.

Refactoring : The fundamental before/after book. Here's some code that could be better, here's how to make it better. The trick to reading this book is to carefully read through every single refactoring pattern and then try to apply it on your code …

37signals.com Read
  Source Favicon
By Matthew Bass of Matthew Bass over 1 year ago.
Email

A Ruby implementation sitting on a Smalltalk VM, sporting a baked-in ORM that transparently persists your Ruby objects to the database. No more ActiveRecord wrangling!

Implementation Details of Ruby 2.0 VM by Koichi Sasada

The 20th anniversary edition of Ruby was previewed at RubyConf and boy howdy does it have some nice features. Besides better method dispatch performance, the ability to prepend a module is very handy. The target release month for Ruby 2.0 …

matthewbass.com Read
  Source Favicon
Email

…it. They take a quick trip through Mike's experiments in Ruby and Smalltalk in creating his own programming language. The three codecateers then take on the really important topic of method order and code organization, and finally they reflect on how their code has changed over the years, how no solution is foolproof, and how to move to the next level as a programmer. These topics and more, in this installment of the GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS podcast!

Listen Now …

robots.thoughtbot.com Read
  Source Favicon
By asynchrotron of DevChix almost 2 years ago.
Email

…required to generate Views. The MVC pattern isn't new (it can be traced back to Smalltalk), but it was popularized, along with the REST style of client-server API design by server-side web frameworks such as Rails and Django.

So what's all the fuss about JavaScript MVC frameworks ( Backbone, Ember, et. al.)?

If you think of the screens - or pages - in your application as different "states" in your application, server-side frameworks require a round trip back …

devchix.com Read