# Ridiculously cool Ruby snippets?

**URL:** <https://www.ruby-forum.com/t/ridiculously-cool-ruby-snippets/135536>\
**Category:** Ruby\
**Created:** [April 22, 2008, 10:46pm UTC](https://www.ruby-forum.com/t/ridiculously-cool-ruby-snippets/135536 "2008-04-22T22:46:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![stedwick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90ced4/32.png) [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Post date:** [April 22, 2008, 10:46pm UTC](https://www.ruby-forum.com/t/ridiculously-cool-ruby-snippets/135536/1 "2008-04-22T22:46:00Z")

</div>

I came across this site:  
[http://gilesbowkett.blogspot.com/2008/04/ruby-golf-ascii-sierpinski-triangle.html](http://gilesbowkett.blogspot.com/2008/04/ruby-golf-ascii-sierpinski-triangle.html)

And it got me thinking. Is there a site somewhere dedicated solely to  
ridiculously cool ruby snippets? Also, it would be nice if they  
explained it 🙂

I’m not talking about useful snippets, or important snippets, I’m  
talking about purely “cool” or purely “beautiful” or whatever  
snippets.

I came across another site where somebody wrote a boggle solver in  
Ruby and five lines of code. I thought that was pretty cool too.

---

<div class="post-metadata">

**Author:** ![stedwick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90ced4/32.png) [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Post date:** [April 22, 2008, 11:10pm UTC](https://www.ruby-forum.com/t/ridiculously-cool-ruby-snippets/135536/2 "2008-04-22T23:10:15Z")

</div>

Dunno about that, but really, that snippet he posted is an easy one to  
expand to understand 🙂

The ruby quiz site has lots of cool little snippets in the way of  
answers to problems, and this list itself has alot of cool snippets.

Maybe make a site on your own?  
–Kyle

---

<div class="post-metadata">

**Author:** ![stedwick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90ced4/32.png) [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Post date:** [April 23, 2008, 1:35am UTC](https://www.ruby-forum.com/t/ridiculously-cool-ruby-snippets/135536/3 "2008-04-23T01:35:59Z")

</div>

Philip B. wrote:

> I came across this site:  
> [http://gilesbowkett.blogspot.com/2008/04/ruby-golf-ascii-sierpinski-triangle.html](http://gilesbowkett.blogspot.com/2008/04/ruby-golf-ascii-sierpinski-triangle.html)
> 
> And it got me thinking. Is there a site somewhere dedicated solely to  
> ridiculously cool ruby snippets? Also, it would be nice if they  
> explained it 🙂
> 
> I’m not talking about useful snippets, or important snippets, I’m  
> talking about purely “cool” or purely “beautiful” or whatever  
> snippets.
> 
> I came across another site where somebody wrote a boggle solver in  
> Ruby and five lines of code. I thought that was pretty cool too.

The ones I’ve found useful:

[http://codegolf.com](http://codegolf.com)  
[http://www.slickorslack.com](http://www.slickorslack.com)

> **[About - Project Euler](https://projecteuler.net/)**
>
> A website dedicated to the fascinating world of mathematics and programming

---

<div class="post-metadata">

**Author:** ![stedwick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90ced4/32.png) [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Post date:** [April 23, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/ridiculously-cool-ruby-snippets/135536/4 "2008-04-23T20:00:55Z")

</div>

On Apr 22, 5:09 pm, Kyle S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Dunno about that, but really, that snippet he posted is an easy one to  
> expand to understand 🙂

It may be easy to understand, but it’s still hard to believe! that a  
single line could create that picture 🙂

---

<div class="post-metadata">

**Author:** ![stedwick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90ced4/32.png) [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Post date:** [April 23, 2008, 6:54am UTC](https://www.ruby-forum.com/t/ridiculously-cool-ruby-snippets/135536/5 "2008-04-23T06:54:53Z")

</div>

Check out [programmingishard.com](http://programmingishard.com) 😉

Kyrre

----- Original Message -----  
From: Kyle S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Date: Wednesday, April 23, 2008 5:10 am  
Subject: Re: Ridiculously cool Ruby snippets?  
To: removed\_email\_address@domain.invalid (ruby-talk ML)

---

<div class="post-metadata">

**Author:** ![stedwick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90ced4/32.png) [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Post date:** [April 23, 2008, 8:34pm UTC](https://www.ruby-forum.com/t/ridiculously-cool-ruby-snippets/135536/6 "2008-04-23T20:34:05Z")

</div>

Granted 🙂
