IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Steven Picard on April 18, 2006, 08:04:38 AM

Title: Design By Contract
Post by: Steven Picard on April 18, 2006, 08:04:38 AM
Paul,

I am wondering what you think about Design By Contract.  I have read that it helps make near bug free code.  There are times when this functionality could really be useful:
http://en.wikipedia.org/wiki/Design_by_contract

Any chance this could be implemented in Aurora?
Title: Re: Design By Contract
Post by: Ionic Wind Support Team on April 18, 2006, 08:41:26 AM
I prefer design by TE :)  (trial and error).   Tried "design by HitMan" once, but got tired of being wacked in the knees everytime I made a coding mistake.  ;D

Seriously though my methodology is more the opposite.  The language makes sure you don't step on your toes too much.  If you pass a method bad data the method/subroutine should deal with it in a predetermined manner.  Failing silently without crashing for example.

Paul.

Title: Re: Design By Contract
Post by: Steven Picard on April 18, 2006, 08:50:24 AM
I've never worked with it before so I am not completely familiar with how it works but I like your description "design by Hitman".  :D
Title: Re: Design By Contract
Post by: Parker on April 18, 2006, 09:18:56 AM
Interesting... but it seems to me that the way you design software isn't a part of the language, but your decision.
Title: Re: Design By Contract
Post by: Rock Ridge Farm (Larry) on May 31, 2006, 06:19:08 AM
I have always been a top down type programmer.
Not pretty but works. My end goal is a working executable that does not crash.
I like the way Paul does Aurora and his code always looks much better than mine.