I’m writing Ruby code with a C++ accent, while Ruby’s core is small, it’s programming style is much more fluid and harder to get used, especially after coding in C++/Java/C# for the last 6 years.

Share and Enjoy:
  • del.icio.us
  • Reddit
  • Facebook
  • Identi.ca
  • TwitThis

Related posts:

  1. Language Limbo
  2. Install sqlite3 for RoR on Windows Vista
  3. Learning Ruby
  4. JSR-310

10 Comments on 'Ruby with a C++ Accent' read them below or add one

Subscribe to comments with RSS or TrackBack to 'Ruby with a C++ Accent'.

  1. I’m having the exact same problem with Ruby; it’s quite difficult to throw away 10+ years of C/C++/Java development habits overnight. One example – the first correctly operational version of my (lightweight) spellcheck program was well over 30+ lines of code. After less than hour of refactoring, I was able to reduce it to just eight lines, mostly by replacing loops and long switch statements with iterators and line conditionals.

    Senor Pablo - 2 Oct 06 at 12:26 pm

  2. My brain says closures and iterators are helpful, but I have to keep reminding myself to use them, it’s hard to break the C/C++/Java/C# habit.

    Shey's Rebellion - 3 Oct 06 at 1:11 am

  3. If you can answer this without breaking an NDA – is this project of yours a Ruby/Ruby-Tk desktop app, an RoR site, or something totally different perchance?

    Senor Pablo - 7 Oct 06 at 1:59 pm

  4. The project is an app that will be run with a Cron job. I haven’t done anything serious with RoR or Ruby-TK. What about you?

    Shey's Rebellion - 9 Oct 06 at 1:13 am

  5. I have two RoR apps more or less complete; the first is a TinyURL type app that was fairly simple to write that I sold commercially to some idiot who – for some reason – wanted one (for $70, ha). The other is a site that allows users to post code samples, which others will be able to view with appropriate syntax highlighting. I want to deploy this one myself sometime soon.

    As for Ruby/Tk, nothing much, the whole binding mechanism is a bit of a mess there.

    NB: Have you seen the new PGH fifth floor lab? O tempora, o mores, just awful.

    -SP

    Senor Pablo - 9 Oct 06 at 3:24 pm

  6. How do you find the people to sell your apps to? The other site, is it anything like this?

    Shey's Rebellion - 9 Oct 06 at 7:20 pm

  7. I just found it on a message board post a couple a months ago. He wanted either a PHP/MySQL based solution or RoR. I’ve found nothing since though…

    As for the code viewer, something like that (albeit much less fancy) – but this is what inspired me:
    http://pastie.caboo.se/
    I think that’s doable.

    Senor Pablo - 11 Oct 06 at 11:10 am

  8. Speaking of which Shey – have you ever looked at or worked with Haskell?

    Senor Pablo - 11 Oct 06 at 11:18 am

  9. Nope, I’ve done some lisp though, but the lisp community scares me; I’m afraid to ask questions.

    sheysrebellion - 14 Oct 06 at 10:02 pm

  10. Vis-a-vis the LISP freak show, I couldn’t agree more. Wow.

    I’ve long thought that the success of languages had less to do with the actual quality of the language itself than that of the quality of the community that builds itself around the language. The strength of the Perl community is a case in point, the language is far from optimal but the general consensus there is to actually give back to others. Hence, Perl is wildly successful and LISP is used in a handful of really neat AI university research projects.

    -SP

    Senor Pablo - 15 Oct 06 at 5:35 pm

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Search