Refactoring Ruby on Rails Applications

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Refactoring Ruby on Rails Applications - Presentation Transcript

    1. Refactoring Rails Applications Jonathan Weiss, 26.05.2009 Peritor GmbH
    2. Who am I ? Jonathan Weiss •  Consultant for Peritor GmbH in Berlin •  Specialized in Rails, Scaling, Deployment, and Code Review •  Webistrano - Rails deployment tool •  FreeBSD Rubygems and Ruby on Rails maintainer http://www.peritor.com http://blog.innerewut.de 2
    3. Refactoring A Definition: Refactoring is the process of changing internal structure without modifying its external functional behavior or existing functionality with the goals of readability, maintainability, performance, extensibility, and simplicity. Wikipedia 3
    4. From 4
    5. To 5
    6. (To) 6
    7. How? 7
    8. Live Coding Experiment 8
    9. Principles 9
    10. MVC 10
    11. Model Core business model Domain logic Reusable 11
    12. View Dumb representation to the outside Targeted at specific use case Displays desired information Different views of one model 12
    13. Controller Conductor & connector Brokers client requests to backend Decide & delegate rather then labor 13
    14. DRY Principles 14
    15. You Ain’t Gonna Need It Ron Jeffries: Always implement things when you actually need them, never when you just foresee that you need them. 15
    16. Live Coding Experiment 16
    17. Redmine •  A load-balancer distributes the incoming requests •  Some load-balancers will deliver static requests themselves •  Several Rails instances handle all requests •  Number of concurrent requests equals number of Rails instances 17
    18. Redmine •  Multiple projects support •  Flexible role based access control •  Flexible issue tracking system •  Gantt chart and calendar •  News, documents & files management •  Feeds & email notifications •  Per project wiki •  Per project forums •  Time tracking •  SCM integration (SVN, CVS, Git, Mercurial, Bazaar and Darcs) 18
    19. Q&A 19
    20. Peritor GmbH Teutonenstraße 16 14129 Berlin Telefon: +49 (0)30 69 20 09 84 0 Telefax: +49 (0)30 69 20 09 84 9 Internet: www.peritor.com E-Mail: kontakt@peritor.com 20 Peritor GmbH - Alle Rechte vorbehalten 20

    + Jonathan WeissJonathan Weiss, 5 months ago

    custom

    498 views, 0 favs, 0 embeds more stats

    Writing good, maintainable code is hard. You need a more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 498
      • 498 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 11
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories