• Home
  • About
  • Contact
  • Reviews
  • Welcome

Sazbean

Internet Marketing & Strategy

Feeds:
Posts
Comments

Ruby on Rails: My advice

Monday, May 5, 2008 by Aaron Worsham

Lets continue our theme of Ruby on Rails reviews with the advice I give clients thinking of trying out RoR for a project.

My first piece of advice when evaluating a new language or technology is for a company to get dirty early on; get at least one small project under your belt before reaching out to a consulting group. Sure its strange advice from a consultant but it’s grounded in solid personal experience. Companies that have had first hand experience with a product or language are often more comfortable with the advantages and limitations of said product or language. That means their expectations are correctly grounded in reality. Here are some expectations that I’ve found to be true through personal experience:

  • Rails is good for delivering dynamically generated textual content over the web. Really good, actually. Really really good.
  • Rails is not as good at maintaining session state as other languages, such as Java Swing. This makes it a poor platform to replace that desktop accounting app. Better to look at a Java Hybrid product like Oracle Application Server with Forms and Reports.
  • Rails can handle Interactive Media, but not as well as Adobe Flex.
  • Rails can do AJAX well but the Scriptaculous tends to be a weighty download. It is cache-able, though so your experience may differ. I prefer JQuery Having said that, the RJS libraries in Rails makes writing JavaScript much less painful.
  • If something is working in one language, don’t redo it in Rails just to keep the source code in one silo. If PHPBB works for you, great! Stick with it.
  • The Rails Persistence layer ActiveRecord is very cool. It can greatly simplify database access for new users. However, don’t expect it to solve all data access woes.

My second piece of advice is to break the Test Once Live habit. This one is a tough sell since people love the time saved in development using Dynamic Languages and loath the trade off spent writing solid tests. Here is the reality, your application will run just well enough to get everyone excited about it. It will also fail you the moment you show it off to someone you want to impress. Here are some testing tips that I have learned the hard way.

  • Write RSpec tests before you show it to anyone. RSpec, once you learn it, can be the stories given to a consultant. We’ll love ya for it.
  • Do end user testing with JMeter and FireBug. JMeter will to load testing and FireBug will tell you more about what your browser is getting from the server.
  • Once you have a working application start running AutoTest on startup. Let it sit in the background and just forget its there. Then, when you have the last second really important change you need to make before 8AM, it can catch and alert you to a test failure before you find out live.

Posted in B2B, B2C, Business, Code, Tips | Tagged ruby rails tips b2b | 1 Comment

One Response

  1. on Tuesday, May 6, 2008 at 3:04 am Webiest : Links for May 6th

    [...] Sazbean » Ruby on Rails: My advice – My second piece of advice is to break the Test Once Live habit. This one is a tough sell since people love the time saved in development using Dynamic Languages and loath the trade off spent writing solid tests. Here is the reality, your application will [...]



Comments are closed.

  • Helping businesses reach their goals using the Internet - via strategy, marketing, design, and technology.
  • Subscribe via RSS
    Subscribe via Email
    Subscribe to Newsletter
    Go mobile
    Get Sazbean on the Kindle
    Sazbean's Calendar



  • Sazbean Consulting
    Is your website working for your business? We’ll take a look at your website and offer tips to increase sales, generate leads, satisfy your customers and improve your return on investment.

    Services
    Process
    Testimonials
    Referrals
    Contact Us
    Website Evaluation
    Newsletter

    Call 248.707.9666
    Email Saz@sazbean.com






  • RSS Twitter

    • sazbean: @muradlakhdhir ty for the rt - what do you think? can social media be taught? Friday, Jul 10, 2009
    • sazbean: Blogging Builds Trust, Demonstrates Expertise | Practical eCommerce http://bit.ly/1LGASg Thursday, Jul 9, 2009
    • sazbean: Twitter's FollowFriday jumped the shark (but we can fix it) | F. Andy Seidl http://bit.ly/sCx6k Thursday, Jul 9, 2009
    • sazbean: @HighEndMLM @STi_Tweet thanks for the rts - what do you think? Thursday, Jul 9, 2009
    • sazbean: ReadWriteWeb Interview With Tim Berners-Lee, Part 2: Search Engines, User Interfaces for Data, Wolfram Alpha, An.. http://bit.ly/10KvdW Thursday, Jul 9, 2009
  • Recent Comments

    johnnyb719 on Can People Be Taught How to Us…
    Insights Group … on What Your Website Visitors Ini…
    SandiMaki on 12 Ways to Get Ideas for Busin…
    Sarah Worsham on Ask Sazbean – Why Should…
    Angela on Internet Marketing, Strategy …
  • Recent Posts

    • Can People Be Taught How to Use Social Media?
    • Internet Marketing, Strategy & Technology Links – July 9, 2009
    • Book Review – Purple Cow: Transform Your Business By Being Remarkable by Seth Godin
    • Internet Marketing, Strategy & Technology Links – July 8, 2009
    • Your Website is Your Business Card
  • Top Posts

    • Rich Media Ads - Advantages & Disadvantages
    • Quick bite - show / hide button in Rails, RJS
    • Advantages & Disadvantages of Different Branding Strategies
    • Good B2C Websites
    • Types of Online Advertising
    • Can People Be Taught How to Use Social Media?
    • 11 Ways to use Social Media for your Business
    • Internet Marketing, Strategy & Technology Links - July 9, 2009
    • Using Facebook to Promote Your Business
    • DIY SEO - Hubspot
  • Categories

    • Analytics
    • B2B
    • B2C
    • Book Reviews
    • Business
    • Case Studies
    • Code
    • Content
    • Design
    • eCommerce
    • Hosting
    • Implementation
    • Internet Advertising
    • internet advertising
    • Interview
    • ISFSummit
    • Marketing
    • mobile
    • News & Notes
    • Opinion
    • Quick Bites
    • Reviews
    • SEO
    • Social Media
    • Social Networks
    • Strategy
    • Tips
    • Usability
    • web2expo
  • Archives

  • RSS Internet Marketing, Strategy & Technology Links

    • Wal-Mart Embraces Twitter, but Not Brevity [MediaMemo]
    • ReadWriteWeb Interview With Tim Berners-Lee, Part 2: Search Engines, User Interfaces for Data, Wolfram Alpha, And More...
    • Bing More Popular Than Twitter, CNN, and Digg
    • Why Google's iPhone Ads Are Bad News For Advertisers, And How To Opt Out
    • Nielsen: Global Ad Spend Down 7% in Q109
    • CoTweet Now in Public Beta; Get the Same Twitter CRM Tools as Big Brands
    • Five steps to help create your universal lead definition
    • How I Tweet- A FAQ
    • Keep Your Media Making Alive During Vacations
    • Mobile Marketing Association Releases New Version of US Consumer Best Practices for Cross-Carrier Mobile Content Services
  • Networks

    View Sarah Worsham's profile on LinkedIn

    Add to Tech
norati Favorites
    Business Blogs - BlogCatalog Blog Directory
    Join My Community at MyBloglog!


    Blog Flux Directory
    Blog Directory for White Lake, Michigan





    Featured in Alltop

    Big List - Search Marketing Blogs

    Blog Directory


    Cutting through the Blog Smog

Blog at WordPress.com.

Theme: Mistylook by Sadish.