/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

zverok.space
| | blog.djy.io
4.9 parsecs away

Travel
| | [AI summary] The author rediscovered Rubeque, a Ruby-based problem set, and solved a specific challenge to build an S-expression evaluator by leveraging Ruby's dynamic symbol-to-method mapping and monkey patching.
| | cbabhusal.wordpress.com
5.5 parsecs away

Travel
| | The*is thesplatoperator.It expands anArrayinto a list of arguments, in this case a list of arguments to theHash.[]method. (To be more precise, it expands any object that responds toto_ary/to_a, orto_ain Ruby 1.9.) To illustrate, the following two statements are equal: method_name arg1, arg2, arg3 method_name *[arg1, arg2, arg3] It can also be used in a different...
| | byparker.com
9.7 parsecs away

Travel
| | In responding to a Jekyll pull request, I went digging around the way Ruby handles sorting. The problem was that we were trying to sort a list of objects which don't all have a given property. The contributor was using sort_by which throws an ArgumentError if the block returns a nil value at all. We had a sparse property we wanted to sort by.
| | www.blackbytes.info
12.4 parsecs away

Travel
| What are Ruby blocks and how do they work? What about Ruby procs & lambdas? What are the differences between these? Find the answers in this post!