Linux Today: Linux News On Internet Time.





More on LinuxToday


This Week on Github: Stupid Ruby Tricks

Jul 16, 2009, 19:03 (0 Talkback[s])
(Other stories by Jeremy McAnally)
irb(main):014:0> "Jeremy" <+ "McAnally"
=> "yllanAcMymereJ"

"Such a wild hack probably shouldn’t ever be used in production code (with the exception of some sort of exotic, domain-specific language or something), but nonetheless it’s really interesting. Check out the code at the repository or simply execute gem install superators to get started.

"Heresy! ‘Tis unholy!

"The fine gentleman known as why the lucky stiff is a bit of a fixture in the Ruby community. All his code (located at http://github.com/why) is something of a testament to good and proper Ruby style, but a little library named unholy (http://github.com/why/unholy) is by far the, ahem, most blasphemous hack he’s released. unholy lets you compile Ruby code into Python bytecode (then back into actual Python code using decompyle)."

Complete Story

Related Stories: