May 21, 2024, 07:09:12 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Design By Contract

Started by Steven Picard, April 18, 2006, 08:04:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Steven Picard

April 18, 2006, 08:04:38 AM Last Edit: April 18, 2006, 08:51:35 AM by stevenp
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?

Ionic Wind Support Team

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.

Ionic Wind Support Team

Steven Picard

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

Parker

Interesting... but it seems to me that the way you design software isn't a part of the language, but your decision.

Rock Ridge Farm (Larry)

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.