introduction to camping presentation

commenting

Commenting is fixed, better than ever. As an experiment, try making a duplicate post.

10 Comments

  1. Dr Nic
    Posted August 20, 2007 at 8:28 PM | Permalink

    That’s a grand introduction.

    Is running Camping in production as simple as starting it with mongrel and pointing apache @ the port? I’m a spaz at this sort of thing.

  2. evan
    Posted August 20, 2007 at 8:29 PM | Permalink

    It can be. It depends if you need per-application database configuration.

    I am going to release an init.d script later this week that makes it super easy.

  3. Dr Nic
    Posted August 20, 2007 at 8:30 PM | Permalink

    I made the homepage.rb example work. I feel like a god.

    I shall cease asking questions til I have an intelligent one to ask.

  4. Fred
    Posted August 20, 2007 at 8:31 PM | Permalink

    Some people other than that one Ubuntu64 dude just hate flash. Or they appreciate stuff like a BACK button or a working PGup PGdown. People like me.

  5. Tap
    Posted August 20, 2007 at 8:32 PM | Permalink

    You might want to set the MIME type of the PDF to something more accurate than text/plain. Say, application/pdf.

  6. evan
    Posted August 20, 2007 at 8:33 PM | Permalink

    Fixed, thanks. They were getting mistakenly proxied through to mongrel.

  7. ubuntu64dude
    Posted August 20, 2007 at 8:34 PM | Permalink

    No, seriously, thanks.

  8. Devin Ben-Hur
    Posted August 20, 2007 at 8:35 PM | Permalink

    The slides worked fine on my Ub64. Some mixed arch magic.

    I really like the look of Markaby vs erb soup. Anyone have numbers on how the rendering performance compares?

  9. mark
    Posted August 20, 2007 at 8:36 PM | Permalink

    Can you expand a bit on the “like HAML, but older, better” comparison for Markaby. I am currently trying to decide which one to use or, better yet, in what situations each one is preferable.

  10. evan
    Posted August 20, 2007 at 8:37 PM | Permalink

    Devin, Mark:

    Markaby’s performance compared to ERb is not good. Markaby requires rendering steps for every tag and property, whereas rhtml can dump the tag text directly into the response since it’s prerendered. With page/fragment caching in Rails this can be somewhat mitigated. It depends a lot on your application and server resources.

    I like Markaby over HAML because Markaby doesn’t create its own syntax. It’s not whitespace-sensitive; it can be highlighted by your editor already; and because it executes in Rubyspace instead of being parsed (like HAML) it supports all existing Ruby techniques, metaprogramming, and overrides (unlike HAML). This is very valuable to me. Speedwise I would guess they are comparable but I don’t have real data to go by. Unless there is a big speed difference, there is no situation in which I would use HAML over Markaby. That’s partly my personal preference, though.

    A big benefit of Markaby is that strings passed as parameters get escaped by default. This means you tend to overescape rather than under, and makes it very easy to write an XSS-secure app.

Follow

Get every new post delivered to your Inbox.

Join 66 other followers