February 25, 2007

rubydbc

Design by Contract for Ruby is now a Rubyforge project. Version 1.0.0 is available as a gem:

gem install rubydbc

Labels:

31 Comments:

Blogger jkauzlar said...

Martin,

Thanks for the brilliant coding on this.. I wanted to *figure out* how to code it more than I really wanted the features :) I learned a ton of new technique just studying your code over the last couple days. I'm coding a version for myself and thought of an interesting application of your code...

It would be trivial to add another version of #pre that would specify and validate parameter types. E.g.

params(String, Integer, Proc)

Now, imagine doing this for two methods of the same name with different parameter types-- method overloading in Ruby!

Not exactly the most useful addition given how simple it is to check types, but, theoretically, it's interesting :)

What do you think?

August 16, 2007 10:15 PM  
Blogger Gaël Marziou said...

Very useful even if I prefer the Eiffel syntax which I found more expressive: 'require' for 'pre', 'ensure' for 'post'.

September 21, 2007 3:42 PM  
Blogger nasha said...

Why was there no follow on bankruptcy then? The bailout of AIG FP went to (wow power leveling) hedge funds that bound credit swaps on Lehman failing or others betting on rating (wow power leveling) declines. AIG has drained over 100 billion from the government. Which had to go to (wow power leveling) those who bet on failures and downgrades. Many of whom (power leveling)were hedge funds. I-banks that had offsetting swaps needed the money from the AIG bailout or they would have been caught. Its an (wow powerleveling) insiders game and it takes just a little bit too much time for most people to think (wow gold) through where the AIG 100 billion bailout money went to, hedge funds and players, many of whom hire from the top ranks of DOJ, Fed, Treasury, etc. ZHANG XIAO CHEN

April 19, 2009 9:59 PM  
Blogger marry said...

I can see that you are putting a lot of time and effort into your blog and detailed articles! I am deeply in love with every single piece of information you post here. Will be back often to read more updates! Please come visit my site Alexandria Virginia yellow pages when you got time.

July 21, 2009 11:23 PM  
Blogger marry said...

You do have a point here :) I admire the stuff you post and the quality information you offer in your blog! Keep up the good work dude. Please come visit my site Lakewood Colorado business directory when you got time.

July 21, 2009 11:24 PM  
Blogger pimpinkicks said...

As a Newbie, I am always searching online for information that can help me. Thank you. Please come visit my site business directory when you got time.

July 29, 2009 12:31 AM  
Blogger pimpinkicks said...

I found your site on google, great site, keep it up. Will return in the future. Submitted this post to Google News Reader. Please come visit my site company search when you got time.

July 29, 2009 12:33 AM  
Blogger poll said...

I wanted to thank you for this great read!! I definitely enjoying every little bit of it :) I have you bookmarked to check out new stuff you post. Please visit my Please visit my blog when you have time Please come visit my site Fresno Yellow Page Business Directory when you got time.

July 29, 2009 5:40 AM  
Blogger poll said...

I am not much into reading, but somehow I got to read lots of articles on your blog.
Its amazing how interesting it is for me to visit you very often :)
Please come visit my site Sacramento Yellow Page Business Directory when you got time.

July 29, 2009 5:41 AM  
Blogger pimpinkicks said...

This is just another reason why I like your website. I like your style of writing you tell your stories without out sending us to 5 other sites to complete the story. Please come visit my site North Dakota,when you got time.

August 14, 2009 3:50 AM  
Blogger pimpinkicks said...

I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me. Thanks for all your help and wishing you all the success in your business. Please come visit my site Ohio when you got time.

August 14, 2009 3:52 AM  
Blogger 伊凡姐姐 said...

酒店打工

酒店兼職

台北酒店

打工兼差

酒店工作

酒店經紀

禮服店

酒店兼差

酒店上班

酒店PT

酒店

August 30, 2009 1:50 AM  
Blogger cheap wow gold said...

cheap wow gold buy wow power leveling cheap cheap wow gold

September 06, 2009 7:30 PM  
Blogger poll said...

Such interesting read and information, thanks for sharing this post. I will check back to read your other new posts. Please come visit my site breast feed when you got time.

October 02, 2009 7:08 AM  
Blogger poll said...

I really liked your blog! Please visit my site stroke symptoms when you got time

October 02, 2009 7:09 AM  
Blogger rr8004 said...

Would you mind terribly if I put up a backlink from my site to your site? Please come visit my site San Diego Business Directory Forum Blog Classifieds when you got time.

October 17, 2009 8:45 PM  
Blogger rr8004 said...

Would you mind terribly if I put up a backlink from my site to your site? Please come visit my site Business Trade Guide of San Diego California CA when you got time.

October 17, 2009 8:46 PM  
Blogger rr8004 said...

Such interesting read and information, thanks for sharing this post. I will check back to read your other new posts. Please come visit my site Business Directory Listings Of Charlotte North Carolina NC when you got time.

October 25, 2009 3:09 AM  
Blogger rr8004 said...

Such interesting read and information, thanks for sharing this post. I will check back to read your other new posts. Please come visit my site Phone Book Directory Charlotte when you got time.

October 25, 2009 3:09 AM  
Blogger rr8004 said...

I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business Thanks for all your help and wishing you all the success in your business Please come visit my site Norfolk Phone Book when you got time.

November 02, 2009 1:23 AM  
Blogger rr8004 said...

I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business Thanks for all your help and wishing you all the success in your business Please come visit my site Norfolk Business Directory Forum Blog Classifieds when you got time.

November 02, 2009 1:23 AM  
Blogger nike said...

Nice work and thanks!
Running
Adidas currently manufactures several running shoesNike shoes, including the adiStar Control 5, the adiStar Ride
Cheap nike shoes
Discount nike shoes
the Supernova Sequence and the Supernova Cushion 7, among others.
Nike shox r4
nike shox shoes
Adidas also uses kangaroo leather to make their more expensive shoes.
Association football
One of the main focuses of Adidas is football kit and associated equipment.
puma cat
cheap sport shoes
Adidas also provides apparel and equipment for all teams in Major League Soccer. Adidas remain a major company in the supply of team kits for international football teams.
cheap nike shox
cheap nike max
Adidas also makes referee kits that are used in international competition and by many countries and leagues in the world. In the United States, referees wear the Adidas kits in MLS matches even though the primary referee supplier is Official Sports.
nike tn dollar
nike running shoes
The company has been an innovator in the area of footwear for the sport with notable examples including development of the Copa Mondial moulded boot on firm dry pitches for forty years.
nike air max tn
puma shoes
Adidas became renowned for advancing the "Predator" boot design.This design featured a ribbed rubber structure for the upper leather of the shoe, used to accent the movement of the ball.
discount puma shoes
puma mens shoes
The Predator also features the Craig Johnston invented "Traxion" sole. As the development and popularity of Football continued Adidas played a leading role in shaping the style of the play itself.
puma running shoes
puma shoes
FIFA, the sports governing body, commissioned specially designed footballs for use in its own World Cup tournaments to favour more attacking play.
ghd hair straighteners mk4
hair straightners
ghd iv styler hair straightener
ghd hair straightners
cheap ghd hair straighteners

December 08, 2009 6:53 PM  
Blogger nike said...

Clothing has always been a thing that has been given a great importance by human beings. It displays the attitude that the people exhibit.
ed hardy clothes
ed hardy shirts
Lots of brands have been existent in the clothing industry and a famous one among them is the Ed hardy clothing brand.
ed hardy jackets
ed hardy hoodies
The brand got its name from the famous American tattoo artist Ed Hardy. He was a very famous tattoo artist and has published many books on tattooing techniques.
ed hardy boots
ed hardy polo shirts
But his tattooing turned into a brand by the efforts of a company called Christian Audiger. This company was a very famous and very powerful company in the field of clothing.
ed hardy shoes
ed hardy jeans
They felt that it would be appropriate to create a brand called Ed hardy and use Hardy's art as the main selling point for the brand. This venture had turned out to be a very successful one and Ed hardy clothing is one of the most famous brands in the clothing industry.
ed hardy outerwear
ed hardy long sleeve shirts
The brand became very famous because it was worn by many famous celebrities like Madonna, Britney spears and also Sylvester Stallone.
ed hardy bags
ed hardy winter boots
The brand has clothes for men, women, and kids. They have also diversified their business by having a lot of accessories to support their clothing business.
ed hardy love kills slowly shirts
ed hardy love kills slowly shoes
ed hardy love kills slowly boots
for men they have a variety of products such as active wear, denim, outwear, swim trucks, sweaters, t-shirts, tops etc.
ed hardy trousers
ed hardy mens
the accessories include things such as belts, caps, scarves, shoes, socks, jeweler, sunglasses, ties and even wallets.
The art works is a unique combination of American and Japanese cultures. The unique selling proposition of the brand is the way in which the company has used the art works of Ed hardy.
ed hardy womens
ed hardy t shirts
ed hardy sunglasses

December 08, 2009 6:54 PM  
Blogger rr8004 said...

I enjoyed reading your work! GREAT post! I looked around for this… but I found you! Anyway, would you mind if I threw up a backlink from my site?
Please come visit my site Virginia VA Phone Directory when you got time. Thanks.

December 21, 2009 2:16 AM  
Blogger rr8004 said...

Please come visit my site Chesapeake Phone Book when you got time. Thanks.

December 21, 2009 2:17 AM  
Blogger rr8004 said...

Yeah it is a great and nice article looking forward to have such article it is so useful. Please come visit my site Laredo Business Phone Listing when you got time.

December 27, 2009 10:56 PM  
Blogger rr8004 said...

Couldn't be written any better. Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thanks for sharing! Please come visit my site Sacramento Business Search Engine when you got time.

January 06, 2010 2:07 AM  
Blogger rr8004 said...

Couldn't be written any better. Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thanks for sharing! Please come visit my site City Guide Sacramento when you got time.

January 06, 2010 2:07 AM  
Blogger jyoti said...

Me and my friend were arguing about an issue similar to this! Now I know that I was right. lol! Thanks for the information you post. Please come visit my site Scottsdale Business Services And Classifieds when you got time.

January 11, 2010 1:43 AM  
Blogger jyoti said...

Me and my friend were arguing about an issue similar to this! Now I know that I was right. lol! Thanks for the information you post. Please come visit my site Scottsdale Phone Book when you got time.

January 11, 2010 1:43 AM  
Blogger Life & things.... said...

What are the main reasons for people using ruby ? I've dabbled in many languages but not sufficiently enough in Ruby. Is there a best way to get to grips with this language ?
Online PhD Degree Programs

January 28, 2010 11:08 PM  

Post a Comment

Links to this post:

Create a Link

<< Home