# Naming suggestion required

**URL:** <https://www.ruby-forum.com/t/naming-suggestion-required/170097>\
**Category:** Ruby\
**Created:** [June 12, 2009, 9:21am UTC](https://www.ruby-forum.com/t/naming-suggestion-required/170097 "2009-06-12T09:21:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srijayanth\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e95f7d/32.png) [@Srijayanth\_S](https://www.ruby-forum.com/u/Srijayanth_S)\
**Post date:** [June 12, 2009, 9:21am UTC](https://www.ruby-forum.com/t/naming-suggestion-required/170097/1 "2009-06-12T09:21:21Z")

</div>

Hello,

I am writing a program that will fetch me lyrics from any one of a  
possible  
number of sites. For this I have the following setup:

class AbstractLyricFooBarSomething(this is the name suggestion I  
require)  
def init  
@artist=""  
@title=""  
@lyric=""  
end  
attr\_reader :lyric,:artist,:title  
end

class MetroLyrics \< FooBarSomething  
def init url  
#do magic  
end  
end

and so on. There’ll be a factory that takes in the search queries and  
returns an appropriate object(s)

What should I call FooBarSomething? I thought of the following and none  
of  
them seemed to fit the paradigm.

Lyrics  
LyricEngine  
LyricsParser  
Lyricalizer

Thank you,

Jayanth

---

<div class="post-metadata">

**Author:** ![Srijayanth\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e95f7d/32.png) [@Srijayanth\_S](https://www.ruby-forum.com/u/Srijayanth_S)\
**Post date:** [June 12, 2009, 9:21am UTC](https://www.ruby-forum.com/t/naming-suggestion-required/170097/2 "2009-06-12T09:21:57Z")

</div>

Umm, sorry, read init as initialize, too much Python happening on the  
side  
😉

Jayanth

On Fri, Jun 12, 2009 at 12:48 PM, Srijayanth S.

---

<div class="post-metadata">

**Author:** ![Srijayanth\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e95f7d/32.png) [@Srijayanth\_S](https://www.ruby-forum.com/u/Srijayanth_S)\
**Post date:** [June 12, 2009, 12:08pm UTC](https://www.ruby-forum.com/t/naming-suggestion-required/170097/3 "2009-06-12T12:08:38Z")

</div>

On Jun 12, 3:18 am, Srijayanth S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> end  
> returns an appropriate object(s)
> 
> What should I call FooBarSomething? I thought of the following and none of  
> them seemed to fit the paradigm.
> 
> Lyrics  
> LyricEngine  
> LyricsParser  
> Lyricalizer

Generally speaking go with just “Lyrics”. But also have you wrapped  
everything in a name space? Eg.

module LyricsLicker

```
class Lyrics
  ...
end

class MetroLyrics < Lyrics
  ...
end

```

end

T.

---

<div class="post-metadata">

**Author:** ![Srijayanth\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e95f7d/32.png) [@Srijayanth\_S](https://www.ruby-forum.com/u/Srijayanth_S)\
**Post date:** [June 12, 2009, 12:12pm UTC](https://www.ruby-forum.com/t/naming-suggestion-required/170097/4 "2009-06-12T12:12:10Z")

</div>

> class MetroLyrics \< Lyrics  
> …  
> end
> 
> end
> 
> T.

Thanks for the suggestion. I will wrap it up in a namespace.

I actually dig LyricsLicker. Pretty cool.

Thanks,

Jayanth
