From: Daniel Tse Date: 2005-08-02T16:57:00+09:00 Subject: Re: Style question: when to use underscores Sometimes tradition (read: C function names) overrides any other concerns, but the libraries are usually named such that words are separated by underscores. Variable names seem to be a matter of choice but I use the same convention. Class names, I believe, mandatorily begin with a capital in Ruby. jogloran francisrammeloo@hotmail.com wrote: >When should you use underscores to >separate words in variable names or >function definitions? Always? > >I tend to use them always for >function definitions like: > >calculate_sum >extract_lines >.... > >But the Ruby built in classes >do not always use them. >For example: IO#readlines >Why not: IO#read_lines ? > >Are there any guidelines on this >subject? How do think they should >be used? > > > > > >