Ruby In Enterprise Development

860 views
764 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
860
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Ruby In Enterprise Development

  1. 1. Ruby/Rails in Enterprise Development Ye Zheng yzheng@thoughtworks.com © ThoughtWorks 2008
  2. 2. ThoughtWorks • Enterprise Development Experience • Ruby/Rails Development Experience • Agile Methodology © ThoughtWorks 2008
  3. 3. Agenda • Language/Framework in Enterprise Development • Ruby in Enterprise Development • Last Mile in Enterprise Development © ThoughtWorks 2008
  4. 4. Language in Software Development © ThoughtWorks 2008
  5. 5. class User include Permission set_super_role Role::GlobalAssurance deny :add_comment, Role::DepartmentHead ... grant :manage_groups, Role::GlobalAssurance ... end © ThoughtWorks 2008
  6. 6. Framework in Software Development © ThoughtWorks 2008
  7. 7. MVC C onv Test entio n Ov er C o nfigu ration Automation Directory Structure … © ThoughtWorks 2008
  8. 8. Enterprise Development © ThoughtWorks 2008
  9. 9. Polyglot Programming (I) © ThoughtWorks 2008
  10. 10. Polyglot Programming (II) © ThoughtWorks 2008
  11. 11. Ruby as a … • Development Language • Glue Language • Language for Legacy System • … © ThoughtWorks 2008
  12. 12. Ruby App Ruby App Ruby App Ruby App Ruby App … Java EE Server © ThoughtWorks 2008
  13. 13. Legacy System Case New Ruby Application Legacy Database Legacy Application Procedure Asset 3rd Party Search Management Components © ThoughtWorks 2008
  14. 14. Last Mile in Enterprise Development • People • Automation • Design for Automated Testing of Nonfunctional Requirements • Decouple Design from Production Environment • … © ThoughtWorks 2008
  15. 15. Automation namespace :svn do task :add do sh %(svn st | grep quot;^?quot; | awk -F quot; quot; '{printf quot;quot;%squot;nquot;, $2}' | xargs -r svn add) end task :commit do sh %(svn stat --ignore-externals) require 'readline' comment = Readline.readline(quot;[Comment]: quot;) sh %(svn ci -m quot;#{comment}quot;) end task :up do sh %(svn up}) end end task :commit => %w(svn:up default svn:add svn:commit) © ThoughtWorks 2008
  16. 16. User Acceptance Test Environment © ThoughtWorks 2008
  17. 17. Enjoy Programming! © ThoughtWorks 2008

×