On Sat, May 9, 2009 at 3:01 AM, 7stud --
<[email protected]>wrote:

>
> Jian Lin wrote:
> > Conrad Taylor wrote:
> >
> >>
> >> Jian, I use Xcode sometimes when I'm doing MacRuby development with
> >> Monaco font and a size of 14pt.  Xcode allows you to change the font
> >> size as
> >> do most applications that allow you enter text.
> >
> > so there is no need to spend 39 euro to buy TextMate?  I was wondering
> > if other editors can open up a folder and put it on the left panel like
> > TextMate does...  that's kind of handy for RoR development.
>
> I think rails.vim and project will do that for you.
>
> Since Xcode is not able to properly indent braces used in this style:
>
> somefunc()
> {
>    while true
>    {
>
>    }
> }
>
> I find it the most frustrating IDE I've ever used.  That is just basic
> functionality that every IDE has to have.  Not being able to get that
> right is pretty pathetic.  So I try not to use Xcode for anything.
>
>
This is very easy to do in Xcode.  Thus, I can easily do both the following:

int someFunction() {

...

}

or

int someFunction()
{

...

}

The convention for braces in most C based languages (C, C++, Java) is

int someFunction() {

}

Why?  It allows you to save a line for each block of code.  This is very
similar
to Ruby in this regard for both function and blocks.  For example,

def some_function( some_arguments )

   some_arguments.each do | argument |

     ...

   end

end

-Conrad


>
>
>
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to