Professional Web Applications Themes

vimrc for Ruby or rubytidy - Ruby

Does someone have a '.vimrc' file they will share that will help me keep my Ruby code all cleanly organized ? When I programmed in Perl, I was highly addicted to perltidy. Has anyone wrote a rubytidy ? -- ------------------------------------------ Ted Knab Chester, MD 21619 ------------------------------------------ 35570707f6274702478656021626f6c6964796f6e602f66602 478656 02e6164796f6e60237471647560216e6460276c6f62616c602 57e696 4797e2a0...

  1. #1

    Default vimrc for Ruby or rubytidy

    Does someone have a '.vimrc' file they will share
    that will help me keep my Ruby code all cleanly organized ?

    When I programmed in Perl, I was highly addicted to perltidy.

    Has anyone wrote a rubytidy ?

    --
    ------------------------------------------
    Ted Knab
    Chester, MD 21619
    ------------------------------------------
    35570707f6274702478656021626f6c6964796f6e602f66602 478656
    02e6164796f6e60237471647560216e6460276c6f62616c602 57e696
    4797e2a0


    Theodore Guest

  2. #2

    Default Re: vimrc for Ruby or rubytidy

    > Does someone have a '.vimrc' file they will share 

    Look in VimExtensions and VimRubySupport in the Ruby Wiki. Then reply to
    this thread and summarize what you've learned and what information you
    think would be valuable. I'd like to gather as much helpful information
    in http://vim-ruby.rubyforge.org as I can.

    I'm not sure what you mean by "all cleanly organized" though.
     

    Never heard of perltidy. I'll Google it sometime.

    Some Vim settings I use for Ruby:

    set ts=2 sts=2 et ai tw=95
    set fo+=ro

    And a bunch of mappings you'd probably be interested in but I don't have
    them handy and can't remember them and they're probably on the Wiki
    anyway.

    Cheers,
    Gavin




    Gavin Guest

  3. #3

    Default Re: vimrc for Ruby or rubytidy

     
    >
    > Never heard of perltidy. I'll Google it sometime.[/ref]

    Having done that, I'll say that: (a) perltidy looks extremely useful; (b)
    no rubytidy exists AFAIK; (c) I've proposed such a program for Ruby in the
    past, believing that to be better than editor-dependent solutions.

    I'm taking a look at perltidy to see if it can be adapted. Low
    expectations...

    Cheers,
    Gavin




    Gavin Guest

  4. #4

    Default Re: Project: in Ruby, Perl?

    Readability and re-usability will be better with Ruby.

    I lump Perl, Python, and Ruby into the same class of interpreted
    languages. However, I don't like Python because I find the
    'white space' in it too restrictive. Perl is good, but after using
    it for over two years I feel as if I find Perl a little
    frustrating. Perl is like learning a Foreign language.
    Right when you think you mastered the foreign language, you find
    that there are dialects that you can not understand. PERL has too
    many dialects. Languages evolve, but PERL has went through many
    transformations. I feel there are too many exceptions and syntax
    variations in PERL.

    As for object oriented code support, I think Larry Wall added that late.
    I do not think that PERL was originally designed to be an OO programming
    language. Both Ruby and Python seem to be better designed for OO coding.
    Also Ruby and Python seem to work with C extensions. Perl does not last
    time I used it.

    As for your programmers, I feel they will get more satisfaction out of
    programming in Ruby than in PERL. If you had the money to test three
    teams, the Ruby team would be the happiest and create the most reusable code, the
    Python team would be happy but slower, the Perl team would create code
    at the same rate as the Ruby people but only they would understand it.

    With that Perl and Python will have a large following for many years.
    They are entrenched programmers. However, in near future more will learn
    Ruby for the same reasons I did. Eventually, Ruby will dominate the
    OO interpreted languages until something better comes out.

    On 29/01/04 12:25 +0900, Zach Dennis wrote: 

    --
    ------------------------------------------
    Ted Knab
    Chester, MD 21619
    ------------------------------------------
    35570707f6274702478656021626f6c6964796f6e602f66602 478656
    02e6164796f6e60237471647560216e6460276c6f62616c602 57e696
    4797e2a0


    Theodore Guest

Similar Threads

  1. global vimrc file
    By FreeBSD in forum FreeBSD
    Replies: 4
    Last Post: March 4th, 09:48 AM
  2. Replies: 0
    Last Post: November 1st, 05:21 PM
  3. Replies: 1
    Last Post: October 29th, 07:52 PM
  4. RubyConf, Ruby Central, Ruby Garden temporary outage
    By dblack@superlink.net in forum Ruby
    Replies: 1
    Last Post: September 10th, 03:46 PM
  5. [ANN] ruby-freedb, ruby-serialport, ruby-mp3info moved to Rubyforge
    By guillaume.pierronnet@ratp.fr in forum Ruby
    Replies: 0
    Last Post: August 31st, 11:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139