ruby-mine

exploring the mine

Ruby Job DSL

von bovi am 11.09.2009 (06 Uhr)

Wer in Zukunft auf der Suche nach einem Ruby Entwickler ist, kann sich ja dieser DSL bedienen:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
class Applicant < ActiveEngineer
  require 'ruby'
  require 'mad_skills'
  require 'oo_design'
  require 'mysql'
  validates :bachelors_degree

  def qualified?
    [:smart, :highly_productive, 
    :curious, :driven, 
    :team_player ].all? do |attr|
      self.send attr
    end
  end
end

class ShopItToMe
  include TopTalent

  has_millions :subscribers, :include=>:mostly_women
  has_many :profits, :revenue
  has_many :recent_press, :through=>[:today_show, :good_morning_america,
                                     :new_york_times, :oprah_magazine]

  belongs_to :south_park_sf
  has_many :employees, :limit=>10

  def apply(you)
    unless you.build_successful_startups
      raise "Not wanted"
    end

    unless you.enjoy_working_at_scale
      raise "Don't bother"
    end
  end

  def work
    with small_team do
      our_offerings.extend you
      subscribers.send :thrill

      [:scaling, :recommendation_engines].each do |challenge|
        assert intellectual_challenges.include? challenge
      end

      %w(analytics ui collaborative_filtering scraping).each do |task|
        task.build
      end
    end
  end
end

def to_apply
  include CoverLetter
  include Resume
end


Kommentar schreiben

Name (notwendig)

Mail (wird nicht veröffentlicht)

Webseite