Questions tagged [robustness]

Robustness is the ability of a system to continue to run after it detects an error (Steve McConnell, "Code Complete").

Robustness is the ability of a system to continue to run after it detects an error.
/Steve McConnell, "Code Complete"/

As per wikipedia:

In computer science, robustness is the ability of a computer system to cope with errors during execution or the ability of an algorithm to continue to operate despite abnormalities in input, calculations, etc.

The opposite of robust code is fragile code; an example of fragile code would be having a class with all its member variables marked as public.


The benefits of having robust code are many, some of the most important ones are:
1. Easy to change. Robust code is easier to change because external factors don’t affect its behaviour.
2. Less bugs. The more robust the code is, the less combinations that cause a bug in the code.
3. Better integration. Robust code is predictable, so from an integrator point view, is always going to have the same behavior. 4. Consistency. Robust code works fine no matter who, when or how it gets called.
/Robustness, the forgotten code quality/

Several links by theme:
Examples for Robustness Requirements
10 characteristics of a robust application or service

134 questions
3
votes
1 answer

Good practice for app that times when it crashes

my app doesn't currently crash BUT we are trying to make it very robust and one thing we are doing is keeping track of the time of "some event" until it is manually stopped by the user. My Intended Implementation This is how I was planning on…
Jono
  • 3,393
  • 6
  • 33
  • 48
3
votes
1 answer

Unsubscribing event handlers using GetInvocationList

I have some events in my base class that I want to apply the following pattern to within IDisposable or in the Finalizer. var onCategorizedMessage = this.OnCategorizedMessage.GetInvocationList().ToList(); foreach (var item in onCategorizedMessage) …
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
2
votes
1 answer

How to write a robust, customizable app for executing tasks on files?

I want to write a program that will run recursively through a given input directory and will execute pre-defined tasks on what it encounters into. I want it to be robust, so that I can develop the app and don't have to go into the core code if I…
AAaa
  • 3,659
  • 7
  • 35
  • 40
2
votes
5 answers

Must web apps support back button?

I did a system test on a new ASP.NET app. I encountered several exceptions when using the BACK button in my browser (IE 7). I stated in a review-record that the web-app must support the use of a BACK button (or at least handle it gracefully with for…
Patrick Peters
  • 9,456
  • 7
  • 57
  • 106
2
votes
1 answer

Sourcing methods to an environment different than .GlobalEnv

Is it possible to source methods to an environment other than .GlobalEnv? I'm slowly getting a bit frustrated over R's masking mechanism (I'll probably be back with an own question in this respect, but if you're interested, for the moment just try…
Rappster
  • 12,762
  • 7
  • 71
  • 120
2
votes
1 answer

Acid testing a http server

Is there any apps that can test a http server for robustness. It would be great if it can send corrupt headers, missing headers, thrashing, attempting to keep connections open etc.. I'm writing a embedded http server in C..
user967007
2
votes
9 answers

How to build a distributed robust linked list on several computers on the net?

I was thinking about building a program that use a raid(disk) like algorithms. If one computer dies. The next will step in. In it's place. And it need to scale from 1 - 1000 computers. I need some advice. What the name of the algorithms I'm need to…
Flinkman
  • 17,732
  • 8
  • 32
  • 53
2
votes
1 answer

Java ListIterator Robustness

I hava a simple LinkedList in Java, that has, say, 10 elements. At that state, I get an ordinary ListIterator, say .listIterator(3). If I then insert/remove other elements into the list, without touching the element on which I have the ListIterator…
Vlladz
  • 185
  • 1
  • 12
2
votes
3 answers

Robust WCF service

What is the best way to ensure service robustness to prevent a service becoming unavailable, if it does become unavaliable is there a way of restarting the service? thanks in advance.
CodeMonkey
  • 630
  • 5
  • 17
2
votes
4 answers

Option type encoding / robustness in Lisp

(define (nth n lst) (if (= n 1) (car lst) (nth (- n 1) (cdr lst) ))) is an unsafe partial function, n may go out of range. An error can be helpful, (define (nth n lst) (if (null? lst) (error "`nth` out of range") (if (=…
user6428287
2
votes
7 answers

Do you accept interfaces as constructor parameters?

Does Krzysztof's recommendation apply to constructors? If so, how do you implement it properly? We recommend using Collection, ReadOnlyCollection, or KeyedCollection for outputs and properties and interfaces IEnumerable, ICollection, IList for…
Anthony Mastrean
  • 21,850
  • 21
  • 110
  • 188
2
votes
3 answers

Converting a filepath to a url securely and reliably

I'm using php and I have the following code to convert an absolute path to a url. function make_url($path, $secure = false){ return (!$secure ? 'http://' : 'https://').str_replace($_SERVER['DOCUMENT_ROOT'], $_SERVER['HTTP_HOST'], $path); } My…
navitronic
  • 563
  • 3
  • 15
2
votes
2 answers

Fragmented line fitting

I want to fit a line to line fragments, i.e. a small number (often less than 10) of line segments that approximately belong to the line. The line has a small slope. But there are outliers: segments (usually smaller) outside the line. The figure…
user1196549
2
votes
1 answer

Building reliability in Spring JPA webapp

I am trying to find a solution to build reliability into our webapp. The plan is to dump sql along with data if network connectivity/database connection is lost. In current implementation we have Rest controller, Service, DAO. The DAO throws…
HereToLearn
  • 153
  • 1
  • 2
  • 10
2
votes
0 answers

Robust optimization packages in R

I am currently working on Mixed integer linear programming problem and I was wondering if there is any software packages available about Robust Optimization in R. Thanks in advance.
cananan
  • 21
  • 2
1 2
3
8 9