![]() |
![]() OCAU News - Wiki - QuickLinks - Pix - Sponsors |
|
|||||||
| Notices |
|
Sign up for a free OCAU account and this ad will go away! Search our forums with Google: |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Member
Join Date: May 2009
Location: chermside.bris.qld.au:80
Posts: 2,575
|
I found this interesting.
I know this probably isn't the place and site discussion would be more suited, but I propose a thread for general software development banter, much similar to f=48's general photography banter. It would be a thread for posting interesting articles, whitepapers, blogs etc related to development. I'm not sure how much traffic it would attract but I'm willing to copy-pasta interesting stuff I see and discuss. |
|
|
|
| Join OCAU to remove this ad! |
|
|
#2 |
|
Member
Join Date: Jun 2002
Location: bellevue hill!
Posts: 4,391
|
hardly surprising, the target isnt exactly a cheap device which can be thrown away or reset if it crashes
__________________
ROCKbox, OSS alternative firmare for ipod, iriver, archos, gigabeat, sansa, olympus, cowan and iaudio mp3 players <- Android, meamo and OpenPandora ports in development
|
|
|
|
|
|
#3 |
|
SLATYE, not SLAYTE
Join Date: Nov 2002
Location: Canberra
Posts: 25,773
|
It'd be interesting to see what the performance difference is between highly-optimised code (ignoring these guidelines) and code that rigidly sticks to the guidelines. Lots of assertions and sanity checks must take a fair bit of processing power.
Not that it matters for Curiosity - it moves slowly anyway and it's got a relatively large amount of processing power available.
__________________
Main system: Phenom II X4 920 | 8GB (4x 2GB) DDR2-800 | Gigabyte M57SLI-S4 v2.0 | Leadtek Geforce 9600GSO 384MB | Enermax Modu82+ 525W | 1TB Hitachi HDD | 3.5" + 5.25" FDD Laptop: Compal EL80 | C2D T7200 | 320GB Fujistu HDD | 2GB DDR2-667 | GF Go 7600 |
|
|
|
|
|
#4 | |
|
Member
Join Date: Aug 2001
Location: London
Posts: 497
|
Interesting to note that even sticking to these standards, the number of bugs found in the code wasnt noticeably reduced:
http://www.theregister.co.uk/2012/08...ware_coverity/ Quote:
|
|
|
|
|
|
|
#5 |
|
SLATYE, not SLAYTE
Join Date: Nov 2002
Location: Canberra
Posts: 25,773
|
Most of the requirements aren't really to prevent mistakes in the code - humans make mistakes in any code, and this is no different.
Instead they're designed so that mistakes in the code don't have far-reaching consequences. For example, a mistake might cause an incorrect result, but it won't cause an infinite loop because loops have verifiable bounds. It might cause an incorrect input to one function, but the function will immediately throw an error rather than continuing to propagate the incorrect data. This system also allows the code to be more easily checked by automated tools; it's very possible that other software would have 2000 bugs that were found plus another 500 that were never spotted because there's no straightforward way to check.
__________________
Main system: Phenom II X4 920 | 8GB (4x 2GB) DDR2-800 | Gigabyte M57SLI-S4 v2.0 | Leadtek Geforce 9600GSO 384MB | Enermax Modu82+ 525W | 1TB Hitachi HDD | 3.5" + 5.25" FDD Laptop: Compal EL80 | C2D T7200 | 320GB Fujistu HDD | 2GB DDR2-667 | GF Go 7600 |
|
|
|
|
|
#6 |
|
Member
Join Date: Jan 2002
Location: Sleepwithyourdadelaide
Posts: 23,642
|
A bug is better than a bug that causes the software to crash or require a watchdog timer to reset, that is all that these guidelines really prevent.
__________________
I like to construct strong views on random things, and then argue for absolutely no reason about them. |
|
|
|
|
|
#7 | |
|
Member
Join Date: Jan 2002
Posts: 2,305
|
Brings me back to systems engineering. It's better to have bugs that fail gracefully than ones that cause total failure, and it's much better to be able to know about the ones that do exist. In complex software it's about impossible to reach zero defects, and as defects approach zero more defects are likely to be reintroduced.
It's also probably for a bureaucratic paper-trail too. Quote:
|
|
|
|
|
|
|
#8 |
|
Member
Join Date: Jun 2001
Location: Brisbane
Posts: 945
|
If you have time to read it, this is an interesting insight : http://www.fastcompany.com/28121/they-write-right-stuff
|
|
|
|
|
|
#9 | |
|
Member
Join Date: May 2009
Location: chermside.bris.qld.au:80
Posts: 2,575
|
Quote:
At least they use C99. |
|
|
|
|
|
|
#10 | |
|
Member
Join Date: Feb 2004
Posts: 1,096
|
I linked the coding standards document in the curiosity science thread too, but it didn't see much discussion there.
Quote:
The rationale behind the power of ten rule 5 (assertion density), indicates that in typical industrial code one defect is found every 10 to 100 lines of code - rather than every 1000 as Coverity reports in that article. So going on the 10-100 figure the number of bugs has been significantly reduced. |
|
|
|
|
![]() |
| Bookmarks |
|
Sign up for a free OCAU account and this ad will go away! |
| Thread Tools | |
|
|