Your SlideShare is downloading. ×
What's up in ruby for Java developers
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

What's up in ruby for Java developers

1,243

Published on

Show to Java developers how things are developed in Ruby and the Ruby/Rails equivalent of Java frameworks. …

Show to Java developers how things are developed in Ruby and the Ruby/Rails equivalent of Java frameworks.

Presentation I gave at the Tours Java User Group (Wednesday, the 20th of April 2010).

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
1,243
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. What's up in Ruby for Java Developers Tours JUG 2011.04 Thomas Queste www.tomsquest.com
  • 2. Rspec
    • Junit : loooong test methods
    • public myMethod_ should DoSomething_ when Something()
  • 3. Rspec
    • Rspec : test contexts
    • describe ”MyClass”
    • describe ”MyMethod”
    • context ”With something”
    • it ”should do something”
    • context ”With something else”
    • it ”should do something else”
  • 4. Rspec
    • Search
    • #find_offers
    • when a spread type is specified
    • should filter by spread_type
    • for the currency pair 'EUR/USD'
    • should search by min spread
    • should search by typical spread
    • should search by min OR typical spread
    • should ignore a spread of 0
  • 5. Factory Girl
    • Generate test data
    • my_user = Factory(:user)
    • Factory.define :user do |b|
    • email ” [email_address] ”
    • # email Faker::Internet.email
    • end
  • 6. Active Record
    • Relations
      • class Article < ActiveRecord::Base
      • has_many :authors
    • Query
      • Article
      • .where( :language => ”en” )
      • .order(”updated_at desc”)
  • 7. Migration
    • Versionned database
      • class CreateArticles < ActiveRecord::Migration
      • def self.up
      • create_table :articles do |t|
      • t.string :title
      • t.text :body
      • t.timestamps
      • end
      • end
      • def self.down
      • drop_table :articles
      • end
      • end
  • 8. Bundler
    • Dependency management
      • gem 'rails', '3.0.6'
      • gem 'formtastic', '~> 1.1.0'
      • group :test do
      • gem 'factory_girl_rails'
      • end
  • 9. Heroku
    • Simple Cloud deployment
      • heroku create myapp
      • git push heroku master
    • Addons
      • heroku addons:add sendgrid
  • 10. GitHub
    • Souce management
    • Social
    • Fork/Pull Request
    • ...
  • 11. Thanks Thomas Queste www.tomsquest.com @ThomasQueste [email_address]

×