I'd be particularly happy if we could get more 3-10 minute talks that quickly and casually showcase a method, tool, library or coding technique.
See you soon!
-igal
###
View map to venue and add the vent to your calendar: http://calagator.org/events/1250457975
ABOUT: he Portland Ruby Brigade is a user group for Ruby programmers in the Portland Oregon, area. Join other developers for presentations and discussions about Ruby and its uses.
VENUE: This meeting’s space is kindly provided by Robert Half Technology at their 2nd Floor Conference Room. Enter the KOIN Tower from SW Columbia between 2nd and 3rd Avenue, take the back elevators to the 2nd floor, and then follow the pdxruby signs.
I may or may not be able to make it. But, if I do, I'd be happy to talk about a moderately clever technique I used to build what Rubyists call an "internal DSL"*, which allows methods to be defined in one block and invoked from child blocks.
-Sam
* (and everyone else just calls "an API")
> what Rubyists call an "internal DSL"
> [...]
> * (and everyone else just calls "an API")
And for making that declaration, you are also tasked with explaining at
the meeting how a DSL API is different than a non-DSL API and what the
pros/cons of each option are. :D
-igal
Sure. Just as soon as you explain to me what a "DSL API" is. Do you mean you want a compare/contrast on:
- so-called "internal" vs "external" DSLs, or
- Ruby-style block abuse vs. a more Java-like API, or
- abused blocks that take arguments vs. abused blocks that use instance_eval? (the latter, btw, is what I picked; the hack I used takes advantage of instance_eval.)
...though I'll almost certainly go over 10 minutes if I have to do both. ;>
(Really, I'm just reflecting someone else's crankiness here; see: http://www.oreillynet.com/onlamp/blog/2007/05/the_is_it_a_dsl_or_an_api_ten.html )
-Sam
--
You received this message because you are subscribed to the Google Groups "pdxruby" group.
To post to this group, send email to pdx...@googlegroups.com.
To unsubscribe from this group, send email to pdxruby+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pdxruby?hl=en.
New slogan! "Ruby: She'll eat your eye out!" (Also known as "garbage collection.")
[Note for the voices outside my head: this references http://www.cafepress.com/rubyshootout ]
-Sam
Looking back over the past decade I noticed a disturbing trend. The
ruby hangman puzzles have been roughly following an exponential growth
pattern, from essentially non-existent in 2000 to the spec-ed out
behemoth we had in December. The New Year seems like as good a time
as any for a reset, a return to a simpler day when I could just have
the sucker memorized when I went to write it on the whiteboard.
So this month, I give you:
a = 1
b = {nil=>a}
c = b.invert
puts _-_
When I run it, it prints "false" (with, as always, the proper choices
for the "_"s).
-- Markus
Markus-
Can we assume anything about the command line used to invoke this? (=
-Sam
Reid
I can talk some about adventures in spam fighting using:
- rakismet: Ruby Akismet client
- rdefensio: Ruby Defensio client
- bishop: Ruby Bayes classifier
- classifier: Ruby Bayes classifier
See you tonight.
-igal
Gosh, I'm really sorry about this. It appears I typoed. The last
line should be:
puts __-
-- Markus